summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/stm32_it.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-01-29 22:31:56 +0000
committerDamien George <damien.p.george@gmail.com>2016-01-29 22:31:56 +0000
commitea89b80ff4f842b010f9f8ec3280675f81bc6bc5 (patch)
treee3879bcf6d78ee5efeb8cfea32ccad80cf5763e6 /stmhal/stm32_it.c
parentd3631339176b768ce1ffdc535223385245ff906b (diff)
downloadmicropython-ea89b80ff4f842b010f9f8ec3280675f81bc6bc5.tar.gz
micropython-ea89b80ff4f842b010f9f8ec3280675f81bc6bc5.zip
stmhal: Make TIM3 available for use by the user.
TIM3 is no longer used by USB CDC for triggering outgoing data, so we can now make it available to the user. PWM fading on LED(4) is now gone, but will be reinstated in a new way.
Diffstat (limited to 'stmhal/stm32_it.c')
-rw-r--r--stmhal/stm32_it.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/stmhal/stm32_it.c b/stmhal/stm32_it.c
index 57b5d85302..4d3ffdffe2 100644
--- a/stmhal/stm32_it.c
+++ b/stmhal/stm32_it.c
@@ -278,12 +278,6 @@ void SysTick_Handler(void) {
// be generalised in the future then a dispatch table can be used as
// follows: ((void(*)(void))(systick_dispatch[uwTick & 0xf]))();
- #if defined(MICROPY_HW_USE_ALT_IRQ_FOR_CDC)
- if (((uwTick) & 7) == 4) { // every 8ms
- NVIC->STIR = PVD_IRQn;
- }
- #endif
-
if (STORAGE_IDLE_TICK(uwTick)) {
NVIC->STIR = FLASH_IRQn;
}
@@ -479,8 +473,6 @@ void EXTI15_10_IRQHandler(void) {
void PVD_IRQHandler(void) {
IRQ_ENTER(PVD_IRQn);
- #if defined(MICROPY_HW_USE_ALT_IRQ_FOR_CDC)
- #endif
Handle_EXTI_Irq(EXTI_PVD_OUTPUT);
IRQ_EXIT(PVD_IRQn);
}
@@ -539,11 +531,7 @@ void TIM2_IRQHandler(void) {
void TIM3_IRQHandler(void) {
IRQ_ENTER(TIM3_IRQn);
- #if defined(MICROPY_HW_USE_ALT_IRQ_FOR_CDC)
timer_irq_handler(3);
- #else
- HAL_TIM_IRQHandler(&TIM3_Handle);
- #endif
IRQ_EXIT(TIM3_IRQn);
}