summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/main.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/main.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/main.c')
-rw-r--r--stmhal/main.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/stmhal/main.c b/stmhal/main.c
index 0e5fc44af3..882de6e1a4 100644
--- a/stmhal/main.c
+++ b/stmhal/main.c
@@ -395,12 +395,6 @@ int main(void) {
// basic sub-system init
pendsv_init();
- #if defined(MICROPY_HW_USE_ALT_IRQ_FOR_CDC)
- HAL_NVIC_SetPriority(PVD_IRQn, 6, 0); // same priority as USB
- HAL_NVIC_EnableIRQ(PVD_IRQn);
- #else
- timer_tim3_init();
- #endif
led_init();
#if MICROPY_HW_HAS_SWITCH
switch_init0();