diff options
| author | Daniel Campora <daniel@wipy.io> | 2015-09-07 09:23:46 +0200 |
|---|---|---|
| committer | Daniel Campora <daniel@wipy.io> | 2015-09-10 07:59:47 +0200 |
| commit | f91f212d9fef66e515935a52712613550a04ca65 (patch) | |
| tree | 9f76d61531c575272928b2bfcb9b209add10a5ef /cc3200/mods/pybtimer.c | |
| parent | 36821d095a2657ab370a8f413f471f4c9ad9a8b5 (diff) | |
cc3200: New UART API plus related test.
Diffstat (limited to 'cc3200/mods/pybtimer.c')
| -rw-r--r-- | cc3200/mods/pybtimer.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/cc3200/mods/pybtimer.c b/cc3200/mods/pybtimer.c index 69e1c827c..bd3a93565 100644 --- a/cc3200/mods/pybtimer.c +++ b/cc3200/mods/pybtimer.c @@ -142,26 +142,6 @@ void timer_init0 (void) { mp_obj_list_init(&MP_STATE_PORT(pyb_timer_channel_obj_list), 0); } -void timer_disable_all (void) { - pyb_timer_obj_t timer = { - .timer = TIMERA0_BASE, - .intflags = TIMER_CAPB_EVENT | TIMER_CAPB_MATCH | - TIMER_TIMB_TIMEOUT | TIMER_CAPA_EVENT | - TIMER_CAPA_MATCH | TIMER_TIMA_TIMEOUT, - .peripheral = PRCM_TIMERA0 - }; - - for (uint32_t i = 0; i < PYBTIMER_NUM_TIMERS; i++) { - // in case it's not clocked - MAP_PRCMPeripheralClkEnable(timer.peripheral, PRCM_RUN_MODE_CLK | PRCM_SLP_MODE_CLK); - timer_disable(&timer); - // timer base offset according to hw_memmap.h - timer.timer += 0x1000; - // peripheral offset according to prcm.h - timer.peripheral++; - } -} - void pyb_timer_channel_callback_enable (mp_obj_t self_in) { pyb_timer_channel_obj_t *self = self_in; MAP_TimerIntClear(self->timer->timer, self->timer->intflags & self->channel); |
