RTEMS 6.1-rc2
Loading...
Searching...
No Matches
Data Structures
Pit

Data Structures

struct  _pit_config
 PIT configuration structure. More...
 

Driver version

enum  _pit_chnl { kPIT_Chnl_0 = 0U , kPIT_Chnl_1 , kPIT_Chnl_2 , kPIT_Chnl_3 }
 List of PIT channels. More...
 
enum  _pit_interrupt_enable { kPIT_TimerInterruptEnable = PIT_TCTRL_TIE_MASK }
 List of PIT interrupts. More...
 
enum  _pit_status_flags { kPIT_TimerFlag = PIT_TFLG_TIF_MASK }
 List of PIT status flags. More...
 
typedef enum _pit_chnl pit_chnl_t
 List of PIT channels.
 
typedef enum _pit_interrupt_enable pit_interrupt_enable_t
 List of PIT interrupts.
 
typedef enum _pit_status_flags pit_status_flags_t
 List of PIT status flags.
 
typedef struct _pit_config pit_config_t
 PIT configuration structure.
 
#define FSL_PIT_DRIVER_VERSION   (MAKE_VERSION(2, 0, 4))
 PIT Driver Version 2.0.4.
 

Initialization and deinitialization

void PIT_Init (PIT_Type *base, const pit_config_t *config)
 Ungates the PIT clock, enables the PIT module, and configures the peripheral for basic operations.
 
void PIT_Deinit (PIT_Type *base)
 Gates the PIT clock and disables the PIT module.
 

Detailed Description

Typedef Documentation

◆ pit_chnl_t

typedef enum _pit_chnl pit_chnl_t

List of PIT channels.

Note
Actual number of available channels is SoC dependent

◆ pit_config_t

typedef struct _pit_config pit_config_t

PIT configuration structure.

This structure holds the configuration settings for the PIT peripheral. To initialize this structure to reasonable defaults, call the PIT_GetDefaultConfig() function and pass a pointer to your config structure instance.

The configuration structure can be made constant so it resides in flash.

Enumeration Type Documentation

◆ _pit_chnl

enum _pit_chnl

List of PIT channels.

Note
Actual number of available channels is SoC dependent
Enumerator
kPIT_Chnl_0 

PIT channel number 0

kPIT_Chnl_1 

PIT channel number 1

kPIT_Chnl_2 

PIT channel number 2

kPIT_Chnl_3 

PIT channel number 3

◆ _pit_interrupt_enable

List of PIT interrupts.

Enumerator
kPIT_TimerInterruptEnable 

Timer interrupt enable

◆ _pit_status_flags

List of PIT status flags.

Enumerator
kPIT_TimerFlag 

Timer flag

Function Documentation

◆ PIT_Deinit()

void PIT_Deinit ( PIT_Type base)

Gates the PIT clock and disables the PIT module.

Parameters
basePIT peripheral base address

brief Gates the PIT clock and disables the PIT module.

param base PIT peripheral base address

◆ PIT_Init()

void PIT_Init ( PIT_Type base,
const pit_config_t config 
)

Ungates the PIT clock, enables the PIT module, and configures the peripheral for basic operations.

Note
This API should be called at the beginning of the application using the PIT driver.
Parameters
basePIT peripheral base address
configPointer to the user's PIT config structure

brief Ungates the PIT clock, enables the PIT module, and configures the peripheral for basic operations.

note This API should be called at the beginning of the application using the PIT driver.

param base PIT peripheral base address param config Pointer to the user's PIT config structure