void config_ramp2c(void) { #if (ENABLE_FAULT_BALNKING == true) configure_eic(); configure_ac(); #endif configure_tcc_ramp2c_mode(); #if (ENABLE_FAULT_BALNKING == true) configure_evsys(); PORT->Group[0].DIRSET.reg = PORT_PA14; PORT->Group[0].OUTCLR.reg = PORT_PA14; TCC0->INTENSET.reg = TCC_INTFLAG_MC1; NVIC_EnableIRQ(TCC0_IRQn); __enable_irq(); #endif }
int main(void) { system_init(); //! [setup_init] configure_tcc(); configure_tcc_callbacks(); configure_eic(); configure_event(); //! [setup_init] //! [main] //! [enable_global_interrupts] system_interrupt_enable_global(); //! [enable_global_interrupts] //! [main_loop] while (true) { } //! [main_loop] //! [main] }