1 /* 2 * Copyright (c) 2012 Travis Geiselbrecht 3 * 4 * Use of this source code is governed by a MIT-style 5 * license that can be found in the LICENSE file or at 6 * https://opensource.org/licenses/MIT 7 */ 8 #include <lk/debug.h> 9 #include <lk/trace.h> 10 #include <lk/err.h> 11 #include <sys/types.h> 12 #include <kernel/thread.h> 13 #include <platform.h> 14 #include <platform/timer.h> 15 #include <stm32f2xx_rcc.h> 16 #include <stm32f2xx_tim.h> 17 #include <misc.h> 18 #include <arch/arm/cm.h> 19 20 #define LOCAL_TRACE 0 21 stm32_tim_irq(uint num)22static void stm32_tim_irq(uint num) { 23 TRACEF("tim irq %d\n", num); 24 PANIC_UNIMPLEMENTED; 25 } 26 stm32_TIM3_IRQ(void)27void stm32_TIM3_IRQ(void) { 28 stm32_tim_irq(3); 29 } 30 stm32_TIM4_IRQ(void)31void stm32_TIM4_IRQ(void) { 32 stm32_tim_irq(4); 33 } 34 stm32_TIM5_IRQ(void)35void stm32_TIM5_IRQ(void) { 36 stm32_tim_irq(5); 37 } 38 stm32_TIM6_IRQ(void)39void stm32_TIM6_IRQ(void) { 40 stm32_tim_irq(6); 41 } 42 stm32_TIM7_IRQ(void)43void stm32_TIM7_IRQ(void) { 44 stm32_tim_irq(7); 45 } 46 47 /* time base */ stm32_TIM2_IRQ(void)48void stm32_TIM2_IRQ(void) { 49 stm32_tim_irq(2); 50 } 51 stm32_timer_early_init(void)52void stm32_timer_early_init(void) { 53 } 54 stm32_timer_init(void)55void stm32_timer_init(void) { 56 } 57