diff options
author | Perry Hung <iperry@gmail.com> | 2011-02-27 15:49:51 -0500 |
---|---|---|
committer | Perry Hung <iperry@gmail.com> | 2011-02-27 15:56:40 -0500 |
commit | 214941537f2211d5e2ef16e34440485d7e872d1a (patch) | |
tree | af951df8867ab47bc474828d57a0bd22eed36ae0 /libmaple/timers.c | |
parent | 43c5092d944ee1aa1424f2743c31bf33cb860c27 (diff) | |
download | librambutan-214941537f2211d5e2ef16e34440485d7e872d1a.tar.gz librambutan-214941537f2211d5e2ef16e34440485d7e872d1a.zip |
Refactor linker scripts. Rename irq and exception handlers.
Add common linker scripts for ram and rom. Add medium and high density
libraries for libcs3.
Diffstat (limited to 'libmaple/timers.c')
-rw-r--r-- | libmaple/timers.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libmaple/timers.c b/libmaple/timers.c index ff548c0..c561d39 100644 --- a/libmaple/timers.c +++ b/libmaple/timers.c @@ -382,7 +382,7 @@ void timer_generate_update(timer_dev_num timer_num) { * registers /or/ has overflowed. * * This is a rather long implementation... */ -void TIM1_CC_IRQHandler(void) { +void __irq_tim1_cc(void) { timer_port *timer = (timer_port*)TIMER1_BASE; uint16 sr_buffer; sr_buffer = timer->SR; @@ -418,7 +418,7 @@ void TIM1_CC_IRQHandler(void) { //timer->EGR = 1; } } -void TIM2_IRQHandler(void) { +void __irq_tim2(void) { /* This is a rather long implementation... */ timer_port *timer = (timer_port*)TIMER2_BASE; uint16 sr_buffer; @@ -453,7 +453,7 @@ void TIM2_IRQHandler(void) { //timer->EGR = 1; } } -void TIM3_IRQHandler(void) { +void __irq_tim3(void) { /* This is a rather long implementation... */ timer_port *timer = (timer_port*)TIMER3_BASE; uint16 sr_buffer; @@ -489,7 +489,7 @@ void TIM3_IRQHandler(void) { } } -void TIM4_IRQHandler(void) { +void __irq_tim4(void) { /* This is a rather long implementation... */ timer_port*timer = (timer_port*)TIMER4_BASE; uint16 sr_buffer; |