diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/arch/msp430fr5994lp/driver/counter.cc | 11 | 
1 files changed, 11 insertions, 0 deletions
| diff --git a/src/arch/msp430fr5994lp/driver/counter.cc b/src/arch/msp430fr5994lp/driver/counter.cc index 62ac778..98a2c4f 100644 --- a/src/arch/msp430fr5994lp/driver/counter.cc +++ b/src/arch/msp430fr5994lp/driver/counter.cc @@ -5,3 +5,14 @@  #endif  Counter counter; + +#ifndef __acweaving +__attribute__((interrupt(TIMER2_A1_VECTOR))) void handle_timer2_overflow() +{ +	if (TA2IV == 0x0e) { +		if (counter.overflow < 255) { +			counter.overflow++; +		} +	} +} +#endif | 
