![]() |
ISSDK
1.8
IoT Sensing Software Development Kit
|
Provides a simple abstraction for a periodic interval timer. More...
#include "issdk_hal.h"
#include "board.h"
#include "fsl_pit.h"
#include "pin_mux.h"
#include "clock_config.h"
Go to the source code of this file.
Macros | |
#define | PIT_LED_HANDLER PIT0_IRQHandler |
#define | PIT_IRQ_ID PIT0_IRQn |
#define | PIT_SOURCE_CLOCK CLOCK_GetFreq(kCLOCK_BusClk) |
Functions | |
void | PIT_LED_HANDLER (void) |
void | pit_init (uint32_t microseconds) |
Variables | |
volatile bool | pitIsrFlag = false |
Provides a simple abstraction for a periodic interval timer.
Bare metal implementations of the sensor fusion library require at least one periodic interrupt for use as a timebase for sensor fusion functions. The Periodic Interval Timer (PIT) is one such module that is commonly found on NXP Kinetis MCUs. The PIT functions are only referenced at the main() level. There is no interaction within the fusion routines themselves.
Definition in file driver_pit.c.
#define PIT_IRQ_ID PIT0_IRQn |
Definition at line 31 of file driver_pit.c.
Referenced by pit_init().
#define PIT_LED_HANDLER PIT0_IRQHandler |
Definition at line 28 of file driver_pit.c.
#define PIT_SOURCE_CLOCK CLOCK_GetFreq(kCLOCK_BusClk) |
Definition at line 33 of file driver_pit.c.
Referenced by pit_init().
void pit_init | ( | uint32_t | microseconds | ) |
Definition at line 44 of file driver_pit.c.
References BUS_CLK_FREQ, CTIMER, PIT_IRQ_ID, and PIT_SOURCE_CLOCK.
void PIT_LED_HANDLER | ( | void | ) |
Definition at line 37 of file driver_pit.c.
References pitIsrFlag.
volatile bool pitIsrFlag = false |
Definition at line 35 of file driver_pit.c.
Referenced by PIT_LED_HANDLER().