![]() |
ISSDK
1.7
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 57 of file driver_pit.c.
Referenced by pit_init().
#define PIT_LED_HANDLER PIT0_IRQHandler |
Definition at line 54 of file driver_pit.c.
#define PIT_SOURCE_CLOCK CLOCK_GetFreq(kCLOCK_BusClk) |
Definition at line 59 of file driver_pit.c.
Referenced by pit_init().
void pit_init | ( | uint32_t | microseconds | ) |
Definition at line 70 of file driver_pit.c.
References PIT_IRQ_ID, and PIT_SOURCE_CLOCK.
Referenced by main().
void PIT_LED_HANDLER | ( | void | ) |
Definition at line 63 of file driver_pit.c.
References pitIsrFlag.
volatile bool pitIsrFlag = false |
Definition at line 61 of file driver_pit.c.
Referenced by main(), and PIT_LED_HANDLER().