69 ti_lib_prcm_peripheral_run_enable(PRCM_PERIPH_TIMER0);
70 ti_lib_prcm_peripheral_sleep_enable(PRCM_PERIPH_TIMER0);
71 ti_lib_prcm_peripheral_deep_sleep_enable(PRCM_PERIPH_TIMER0);
72 ti_lib_prcm_load_set();
73 while(!ti_lib_prcm_load_get());
80 HWREG(GPT0_BASE + GPT_O_TAMR) = (TIMER_CFG_A_PWM & 0xFF) | GPT_TAMR_TAPWMIE;
92 ti_lib_timer_disable(GPT0_BASE, TIMER_A);
95 load = (GET_MCU_CLOCK / freq);
97 ti_lib_timer_load_set(GPT0_BASE, TIMER_A, load);
98 ti_lib_timer_match_set(GPT0_BASE, TIMER_A, load / 2);
101 ti_lib_timer_enable(GPT0_BASE, TIMER_A);
118 ti_lib_timer_disable(GPT0_BASE, TIMER_A);
132 ti_lib_prcm_peripheral_run_disable(PRCM_PERIPH_TIMER0);
133 ti_lib_prcm_peripheral_sleep_disable(PRCM_PERIPH_TIMER0);
134 ti_lib_prcm_peripheral_deep_sleep_disable(PRCM_PERIPH_TIMER0);
135 ti_lib_prcm_load_set();
136 while(!ti_lib_prcm_load_get());
#define LPM_MODULE(n, m, s, w, l)
Declare a variable to be used in order to get notifications from LPM.