9 #include "contiki-conf.h"
16 static volatile rtimer_clock_t next_trigger;
41 TPM0_C0SC = TPM_CnSC_CHF_MASK
63 void TPM0_IRQHandler(
void)
69 ENERGEST_ON(ENERGEST_TYPE_IRQ);
78 ENERGEST_OFF(ENERGEST_TYPE_IRQ);
__STATIC_INLINE void NVIC_EnableIRQ(IRQn_Type IRQn)
Enable External Interrupt.
__STATIC_INLINE void NVIC_DisableIRQ(IRQn_Type IRQn)
Disable External Interrupt.
TPM0 single interrupt vector for all sources.
#define RTIMER_NOW()
Get the current clock time.
rtimer_clock_t rtimer_arch_now()
Returns the current real-time clock time.
__STATIC_INLINE void NVIC_ClearPendingIRQ(IRQn_Type IRQn)
Clear Pending Interrupt.
void rtimer_arch_init(void)
We don't need to explicitly initialise anything but this routine is required by the API...
Header file for the MKL25Z-specific rtimer code
void rtimer_run_next(void)
Execute the next real-time task and schedule the next task, if any.
void gpio_tgl_pin(GPIO_Type *Port, uint32_t Pin_Mask)
Toggle pins with Pin_Mask of port with GPIOn_BASE_PTR low.
void rtimer_arch_schedule(rtimer_clock_t t)
Schedules an rtimer task to be triggered at time t.
Header file for the MKL25Z NVIC functions.
uint32_t port_pin_to_mask(uint8_t pin)
Convert a pin number (0 to 31) to a pin mask.
rtimer_clock_t rtimer_arch_next_trigger()
Get the time of the next scheduled rtimer trigger.