![]() |
MKM34Z256VLx7 Bare Metal Software Drivers
R4.1.6
Reference Manual
|
This section describes default configuration structures for PDB module. Create a new configuration structure if default ones don't initialize on-chip peripheral in required operating mode (see Creating Configuration Structure).
Macros | |
| #define | PDB_MODULE_DEFAULT_CONFIG |
| Default PDB configuration - PDB disabled. More... | |
| #define | PDB_MODULE_SWTRG_ONESHOT_CONFIG(presc, mult, modulo, idly) |
| PBD init with SW trigger. More... | |
| #define | PDB_MODULE_SWTRG_CONT_CONFIG(presc, mult, modulo, idly) |
| PBD init with SW trigger. More... | |
| #define | PDB_MODULE_SWTRG_ONESHOT_IRQ_CONFIG(presc, mult, modulo, idly) |
| PBD init with SW trigger. More... | |
| #define | PDB_MODULE_SWTRG_CONT_IRQ_CONFIG(presc, mult, modulo, idly) |
| PBD init with SW trigger. More... | |
| #define | PDB_MODULE_SWTRG_ONESHOT_DMA_CONFIG(presc, mult, modulo, idly) |
| PBD init with SW trigger. More... | |
| #define | PDB_MODULE_SWTRG_CONT_DMA_CONFIG(presc, mult, modulo, idly) |
| PBD init with SW trigger. More... | |
| #define | PDB_MODULE_HWTRG_ONESHOT_CONFIG(trgs, presc, mult, modulo, idly) |
| PBD init with HW trigger. More... | |
| #define | PDB_MODULE_HWTRG_CONT_CONFIG(trgs, presc, mult, modulo, idly) |
| PBD init with HW trigger. More... | |
| #define | PDB_MODULE_HWTRG_ONESHOT_IRQ_CONFIG(trgs, presc, mult, modulo, idly) |
| PBD init with HW trigger. More... | |
| #define | PDB_MODULE_HWTRG_CONT_IRQ_CONFIG(trgs, presc, mult, modulo, idly) |
| PBD init with HW trigger. More... | |
| #define | PDB_MODULE_HWTRG_ONESHOT_DMA_CONFIG(trgs, presc, mult, modulo, idly) |
| PBD init with HW trigger. More... | |
| #define | PDB_MODULE_HWTRG_CONT_DMA_CONFIG(trgs, presc, mult, modulo, idly) |
| PBD init with HW trigger. More... | |
| #define PDB_MODULE_DEFAULT_CONFIG |
Default PDB configuration - PDB disabled.
| #define PDB_MODULE_SWTRG_ONESHOT_CONFIG | ( | presc, | |
| mult, | |||
| modulo, | |||
| idly | |||
| ) |
Delay registers are updated when the counter reaches the MOD register value, SW trigger is enabled, interrupt is disabled, DMA is disabled, PDB is enabled, one-shot mode is configured.
| presc | Select one of the PDB Prescaler Dividers. |
| mult | Select one of the PDB Prescaler Multiplication Factors. |
| modulo | PDB modulus (0 - 65535). |
| idly | PDB interrupt delay (0 - 65535). |
| #define PDB_MODULE_SWTRG_CONT_CONFIG | ( | presc, | |
| mult, | |||
| modulo, | |||
| idly | |||
| ) |
Delay registers are updated when the counter reaches the MOD register value, SW trigger is enabled, interrupt is disabled, DMA is disabled, PDB is enabled, continuous mode is configured.
| presc | Select one of the PDB Prescaler Dividers. |
| mult | Select one of the PDB Prescaler Multiplication Factors. |
| modulo | PDB modulus (0 - 65535). |
| idly | PDB interrupt delay (0 - 65535). |
| #define PDB_MODULE_SWTRG_ONESHOT_IRQ_CONFIG | ( | presc, | |
| mult, | |||
| modulo, | |||
| idly | |||
| ) |
Delay registers are updated when the counter reaches the MOD register value, SW trigger is enabled, interrupt is enabled, DMA is disabled, PDB is enabled, one-shot mode is configured.
| presc | Select one of the PDB Prescaler Dividers. |
| mult | Select one of the PDB Prescaler Multiplication Factors. |
| modulo | PDB modulus (0 - 65535). |
| idly | PDB interrupt delay (0 - 65535). |
| #define PDB_MODULE_SWTRG_CONT_IRQ_CONFIG | ( | presc, | |
| mult, | |||
| modulo, | |||
| idly | |||
| ) |
Delay registers are updated when the counter reaches the MOD register value, SW trigger is enabled, interrupt is enabled, DMA is disabled, PDB is enabled, continuous mode is configured.
| presc | Select one of the PDB Prescaler Dividers. |
| mult | Select one of the PDB Prescaler Multiplication Factors. |
| modulo | PDB modulus (0 - 65535). |
| idly | PDB interrupt delay (0 - 65535). |
| #define PDB_MODULE_SWTRG_ONESHOT_DMA_CONFIG | ( | presc, | |
| mult, | |||
| modulo, | |||
| idly | |||
| ) |
Delay registers are updated when the counter reaches the MOD register value, SW trigger is enabled, interrupt is disabled, DMA is enabled, PDB is enabled, one-shot mode is configured.
| presc | Select one of the PDB Prescaler Dividers. |
| mult | Select one of the PDB Prescaler Multiplication Factors. |
| modulo | PDB modulus (0 - 65535). |
| idly | PDB interrupt delay (0 - 65535). |
| #define PDB_MODULE_SWTRG_CONT_DMA_CONFIG | ( | presc, | |
| mult, | |||
| modulo, | |||
| idly | |||
| ) |
Delay registers are updated when the counter reaches the MOD register value, SW trigger is enabled, interrupt is disabled, DMA is enabled, PDB is enabled, continuous mode is configured.
| presc | Select one of the PDB Prescaler Dividers. |
| mult | Select one of the PDB Prescaler Multiplication Factors. |
| modulo | PDB modulus (0 - 65535). |
| idly | PDB interrupt delay (0 - 65535). |
| #define PDB_MODULE_HWTRG_ONESHOT_CONFIG | ( | trgs, | |
| presc, | |||
| mult, | |||
| modulo, | |||
| idly | |||
| ) |
Delay registers are updated when the counter reaches the MOD register value, HW trigger is enabled, interrupt is disabled, DMA is disabled, PDB is enabled, one-shot mode is configured.
| trgs | Select one of the PDB Trigger Input Sources. |
| presc | Select one of the PDB Prescaler Dividers. |
| mult | Select one of the PDB Prescaler Multiplication Factors. |
| modulo | PDB modulus (0 - 65535). |
| idly | PDB interrupt delay (0 - 65535). |
| #define PDB_MODULE_HWTRG_CONT_CONFIG | ( | trgs, | |
| presc, | |||
| mult, | |||
| modulo, | |||
| idly | |||
| ) |
Delay registers are updated when the counter reaches the MOD register value, HW trigger is enabled, interrupt is disabled, DMA is disabled, PDB is enabled, continuous mode is configured.
| trgs | Select one of the PDB Trigger Input Sources. |
| presc | Select one of the PDB Prescaler Dividers. |
| mult | Select one of the PDB Prescaler Multiplication Factors. |
| modulo | PDB modulus (0 - 65535). |
| idly | PDB interrupt delay (0 - 65535). |
| #define PDB_MODULE_HWTRG_ONESHOT_IRQ_CONFIG | ( | trgs, | |
| presc, | |||
| mult, | |||
| modulo, | |||
| idly | |||
| ) |
Delay registers are updated when the counter reaches the MOD register value, HW trigger is enabled, interrupt is enabled, DMA is disabled, PDB is enabled, one-shot mode is configured.
| trgs | Select one of the PDB Trigger Input Sources. |
| presc | Select one of the PDB Prescaler Dividers. |
| mult | Select one of the PDB Prescaler Multiplication Factors. |
| modulo | PDB modulus (0 - 65535). |
| idly | PDB interrupt delay (0 - 65535). |
| #define PDB_MODULE_HWTRG_CONT_IRQ_CONFIG | ( | trgs, | |
| presc, | |||
| mult, | |||
| modulo, | |||
| idly | |||
| ) |
Delay registers are updated when the counter reaches the MOD register value, HW trigger is enabled, interrupt is enabled, DMA is disabled, PDB is enabled, continuous mode is configured.
| trgs | Select one of the PDB Trigger Input Sources. |
| presc | Select one of the PDB Prescaler Dividers. |
| mult | Select one of the PDB Prescaler Multiplication Factors. |
| modulo | PDB modulus (0 - 65535). |
| idly | PDB interrupt delay (0 - 65535). |
| #define PDB_MODULE_HWTRG_ONESHOT_DMA_CONFIG | ( | trgs, | |
| presc, | |||
| mult, | |||
| modulo, | |||
| idly | |||
| ) |
Delay registers are updated when the counter reaches the MOD register value, HW trigger is enabled, interrupt is disabled, DMA is enabled, PDB is enabled, one-shot mode is configured.
| trgs | Select one of the PDB Trigger Input Sources. |
| presc | Select one of the PDB Prescaler Dividers. |
| mult | Select one of the PDB Prescaler Multiplication Factors. |
| modulo | PDB modulus (0 - 65535). |
| idly | PDB interrupt delay (0 - 65535). |
| #define PDB_MODULE_HWTRG_CONT_DMA_CONFIG | ( | trgs, | |
| presc, | |||
| mult, | |||
| modulo, | |||
| idly | |||
| ) |
Delay registers are updated when the counter reaches the MOD register value, HW trigger is enabled, interrupt is disabled, DMA is enabled, PDB is enabled, continuous mode is configured.
| trgs | Select one of the PDB Trigger Input Sources. |
| presc | Select one of the PDB Prescaler Dividers. |
| mult | Select one of the PDB Prescaler Multiplication Factors. |
| modulo | PDB modulus (0 - 65535). |
| idly | PDB interrupt delay (0 - 65535). |