RTEMS 6.1-rc6
|
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. | |
typedef enum _pit_chnl pit_chnl_t |
List of PIT channels.
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.
enum _pit_chnl |
enum _pit_status_flags |
void PIT_Deinit | ( | PIT_Type * | base | ) |
Gates the PIT clock and disables the PIT module.
base | PIT peripheral base address |
brief Gates the PIT clock and disables the PIT module.
param base PIT peripheral base address
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.
base | PIT peripheral base address |
config | Pointer 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