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 <platform/stm32.h> 16 #include <arch/arm/cm.h> 17 18 #define LOCAL_TRACE 0 19 stm32_tim_irq(uint num)20static void stm32_tim_irq(uint num) { 21 TRACEF("tim irq %d\n", num); 22 PANIC_UNIMPLEMENTED; 23 } 24 stm32_TIM3_IRQ(void)25void stm32_TIM3_IRQ(void) { 26 stm32_tim_irq(3); 27 } 28 stm32_TIM4_IRQ(void)29void stm32_TIM4_IRQ(void) { 30 stm32_tim_irq(4); 31 } 32 stm32_TIM5_IRQ(void)33void stm32_TIM5_IRQ(void) { 34 stm32_tim_irq(5); 35 } 36 stm32_TIM6_IRQ(void)37void stm32_TIM6_IRQ(void) { 38 stm32_tim_irq(6); 39 } 40 stm32_TIM7_IRQ(void)41void stm32_TIM7_IRQ(void) { 42 stm32_tim_irq(7); 43 } 44 45 /* time base */ stm32_TIM2_IRQ(void)46void stm32_TIM2_IRQ(void) { 47 stm32_tim_irq(2); 48 } 49 stm32_timer_early_init(void)50void stm32_timer_early_init(void) { 51 } 52 stm32_timer_init(void)53void stm32_timer_init(void) { 54 } 55