ISSDK  1.8
IoT Sensing Software Development Kit
Functions | Variables
driver_pit.h File Reference

Provides a simple abstraction for a periodic interval timer. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void pit_init (uint32_t microseconds)
 

Variables

volatile bool pitIsrFlag
 

Detailed Description

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.h.

Function Documentation

◆ pit_init()

void pit_init ( uint32_t  microseconds)

Definition at line 64 of file driver_ctimer.c.

References BUS_CLK_FREQ, CTIMER, PIT_IRQ_ID, and PIT_SOURCE_CLOCK.

Referenced by main().

Here is the caller graph for this function:

Variable Documentation

◆ pitIsrFlag

volatile bool pitIsrFlag

Definition at line 49 of file driver_ctimer.c.

Referenced by ctimer_callback(), main(), and PIT_LED_HANDLER().