This section describes functions and macros of the driver's API.
#define PIT_SetLoadVal |
( |
|
module, |
|
|
|
ch, |
|
|
|
val |
|
) |
| |
This macro sets new load register value.
- Parameters
-
module | PIT0,PIT1. |
ch | CH0,CH1. |
val | uint32 load register value. |
- Note
- Implemented as an inline macro.
#define PIT_Enable |
( |
|
module, |
|
|
|
ch |
|
) |
| |
This macro enables PIT channel operation.
- Parameters
-
module | PIT0,PIT1. |
ch | CH0,CH1. |
- Note
- Implemented as an inline macro.
- See also
- PIT_Disable
#define PIT_Disable |
( |
|
module, |
|
|
|
ch |
|
) |
| |
This macro disables PIT channel operation.
- Parameters
-
module | PIT0,PIT1. |
ch | CH0,CH1. |
- Note
- Implemented as an inline macro.
- See also
- PIT_Enable
#define PIT_DebugFreezeOn |
( |
|
module, |
|
|
|
ctrl |
|
) |
| |
This macro controls operation mode of the PIT module in the debug mode.
- Parameters
-
module | PIT0,PIT1. |
ctrl | TRUE (Timer module runs in Debug mode)
FALSE (Timer module stopped in Debug mode). |
- Note
- Implemented as an inline macro.
#define PIT_InstallCallback |
( |
|
ip, |
|
|
|
callback |
|
) |
| |
This function install callback function for interrupt vector 27.
- Parameters
-
- Note
- Implemented as a function call.
- Warning
- PIT0 and PIT1 interrupt sources are OR'ed into single interrupt vector.
- See also
- PIT_Init
#define PIT_Init |
( |
|
module, |
|
|
|
ch, |
|
|
|
cfg, |
|
|
|
val |
|
) |
| |
This function initializes selected Timer channel of the Periodic Interrupt Timer (PIT) block.
- Parameters
-
- Note
- Implemented as a function call.
- See also
- PIT_InstallCallback