40 #include "fsl_clock_manager.h"
41 #include "fsl_power_manager.h"
42 #include "fsl_pmc_hal.h"
43 #include "fsl_smc_hal.h"
44 #include "fsl_os_abstraction.h"
46 #if (defined BOARD_USE_LPSCI)
47 #include "fsl_lpsci_driver.h"
48 #elif (defined BOARD_USE_LPUART)
49 #include "fsl_lpuart_driver.h"
51 #include "fsl_uart_driver.h"
52 #endif // BOARD_USE_LPSCI
58 #if (defined(FSL_FEATURE_SIM_OPT_HAS_RTC_CLOCK_OUT_SELECTION) && FSL_FEATURE_SIM_OPT_HAS_RTC_CLOCK_OUT_SELECTION == 1)
60 #define PM_RTOS_DEMO_RTC_FUNC_INSTANCE 0
64 #define PM_RTOS_DEMO_LPTMR_FUNC_INSTANCE 0
67 #define PM_RTOS_DEMO_RTC_LLWU_WAKEUP_MODULE kLlwuWakeupModule5
70 #define PM_RTOS_DEMO_LPTMR_LLWU_WAKEUP_MODULE kLlwuWakeupModule0
73 #if (defined FSL_RTOS_MQX)
74 #define _MODULE_IRQ_HANDLER(module) MQX_##module##IRQHandler
76 #define _MODULE_IRQ_HANDLER(module) module##IRQHandler
78 #define MODULE_IRQ_HANDLER(module) _MODULE_IRQ_HANDLER(module##_)
98 clock_manager_error_code_t
rtos_cm_callback(clock_notify_struct_t *notify,
void* callbackData);
100 power_manager_error_code_t
rtos_pm_callback(power_manager_notify_struct_t * notify,
101 power_manager_callback_data_t * dataPtr);
102 power_manager_error_code_t
adc16_pm_callback(power_manager_notify_struct_t * notify, power_manager_callback_data_t * dataPtr);
115 #if (ADC_INSTANCE_COUNT > 0)
118 #if (ADC_INSTANCE_COUNT > 1U)
121 #if (ADC_INSTANCE_COUNT > 2U)
124 #if (ADC_INSTANCE_COUNT > 3U)
136 #if (defined PM_RTOS_DEMO_RTC_FUNC_INSTANCE)
void MODULE_IRQ_HANDLER() LPTMR0(void)
override the RTC IRQ handler
Definition: demo_apps/power_manager_rtos_demo/fsl_lptmr_irq.c:51
clock_manager_error_code_t rtos_cm_callback(clock_notify_struct_t *notify, void *callbackData)
Definition: rtos_lpm_callback.c:77
char getInput(void)
Definition: demo_apps/power_manager_rtos_demo/main.c:149
void PM_DBG_UART_IRQ_HANDLER(void)
Definition: demo_apps/power_manager_rtos_demo/fsl_uart_irq.c:65
Definition: lpm_rtos.h:87
#define MODULE_IRQ_HANDLER(module)
Definition: lpm_rtos.h:78
void MODULE_IRQ_HANDLER() LLWU(void)
Definition: task_lpm.c:147
power_manager_error_code_t adc16_pm_callback(power_manager_notify_struct_t *notify, power_manager_callback_data_t *dataPtr)
Definition: adc16_lpm_callback.c:41
clock_manager_error_code_t dbg_console_cm_callback(clock_notify_struct_t *notify, void *callbackData)
Definition: debug_console_lpm_callback.c:41
power_manager_error_code_t rtos_pm_callback(power_manager_notify_struct_t *notify, power_manager_callback_data_t *dataPtr)
Definition: rtos_lpm_callback.c:138
Definition: lpm_rtos.h:86
LPM_DEMO_RETURN
Definition: lpm_rtos.h:84