void radiotimer_start(PORT_RADIOTIMER_WIDTH period) { // source ACLK from 32kHz crystal //user bsp_timer. timer_init(TIMER_NUM3); timer_enable(TIMER_NUM3); LPC_PINCON->PINSEL1 |= 0x3<<14; // CAP3.0 mode // LPC_GPIO0->FIODIR |= 1<<23; // set as output // LPC_GPIO0->FIOCLR |= 1<<23; // set to 0 timer_set_capture(TIMER_NUM3,TIMER_CAPTURE_REG0);//configures capture register so that when pin cap3.0 is toggled a capture is triggered (raising edge)- (cap3.0 is in) radiotimer_setPeriod(period); }
void radio_setTimerPeriod(uint16_t period) { radiotimer_setPeriod(period); }
void radio_setTimerPeriod(PORT_TIMER_WIDTH period) { radiotimer_setPeriod(period); }