1 /* 2 * Copyright 2021-2022 NXP 3 * All rights reserved. 4 * 5 * SPDX-License-Identifier: BSD-3-Clause 6 */ 7 8 #ifndef _FSL_PM_DEVICE_H_ 9 #define _FSL_PM_DEVICE_H_ 10 11 #include "fsl_common.h" 12 13 #include "fsl_pm_config.h" 14 15 /*! 16 * @addtogroup PM Framework: Power Manager Framework 17 * @brief This section includes Power Mode macros, System Constraints macros, and Wakeup source macros. 18 * @{ 19 */ 20 21 /*! 22 * @name Power Mode Definition 23 * @{ 24 */ 25 26 /* Power Mode Index */ 27 #define PM_LP_STATE_SLEEP (0U) 28 #define PM_LP_STATE_DEEP_SLEEP (1U) 29 #define PM_LP_STATE_POWER_DOWN (2U) 30 #define PM_LP_STATE_DEEP_POWER_DOWN (3U) 31 #define PM_LP_STATE_NO_CONSTRAINT (0xFFU) 32 33 /*! @} */ 34 35 /*! 36 * @name System basic resource constraints definitions. 37 * @{ 38 */ 39 40 /* Constraints used by application. */ 41 /*! 42 * @brief Set the constraint that CORE clock should be ON. 43 */ 44 #define PM_RESC_CORE_CLK_ON PM_ENCODE_RESC(PM_RESOURCE_FULL_ON, 13U) 45 /*! 46 * @brief Set the constraint that BUS and SYSTEM clock should be ON. 47 */ 48 #define PM_RESC_BUS_SYS_CLK_ON PM_ENCODE_RESC(PM_RESOURCE_FULL_ON, 12U) 49 50 /*! 51 * @brief Set the constraint that CTCM0 should in Active mode. 52 */ 53 #define PM_RESC_CTCM0_ACTIVE PM_ENCODE_RESC(PM_RESOURCE_FULL_ON, 0U) 54 /*! 55 * @brief Set the constraint that CTCM0 should in DEEPSLEEP mode. 56 */ 57 #define PM_RESC_CTCM0_DEEPSLEEP PM_ENCODE_RESC(PM_RESOURCE_PARTABLE_ON1, 0U) 58 59 /*! 60 * @brief Set the constraints that CTCM0 should be powered off in all mode. 61 */ 62 #define PM_RESC_CTCM0_POWEROFF PM_ENCODE_RESC(PM_RESOURCE_OFF, 0U); 63 64 /*! 65 * @brief Set the constraint that CTCM1 should in Active mode. 66 */ 67 68 #define PM_RESC_CTCM1_ACTIVE PM_ENCODE_RESC(PM_RESOURCE_FULL_ON, 1U) 69 /*! 70 * @brief Set the constraint that CTCM1 should in DEEPSLEEP mode. 71 */ 72 #define PM_RESC_CTCM1_DEEPSLEEP PM_ENCODE_RESC(PM_RESOURCE_PARTABLE_ON1, 1U) 73 /*! 74 * @brief Set the constraint that CTCM1 should be powered off in all mode. 75 */ 76 #define PM_RESC_CTCM1_POWEROFF PM_ENCODE_RESC(PM_RESOURCE_OFF, 1U); 77 78 /*! 79 * @brief Set the constraint that STCM0 should in Active mode. 80 */ 81 #define PM_RESC_STCM0_ACTIVE PM_ENCODE_RESC(PM_RESOURCE_FULL_ON, 2U) 82 /*! 83 * @brief Set the constraint that STCM0 should in DEEPSLEEP mode. 84 */ 85 #define PM_RESC_STCM0_DEEPSLEEP PM_ENCODE_RESC(PM_RESOURCE_PARTABLE_ON1, 2U) 86 /*! 87 * @brief Set the constraint the STCM0 should be powered off in all mode. 88 */ 89 #define PM_RESC_STCM0_POWEROFF PM_ENCODE_RESC(PM_RESOURCE_OFF, 2U); 90 91 /*! 92 * @brief Set the constraint that STCM1 should in Active mode. 93 */ 94 #define PM_RESC_STCM1_ACTIVE PM_ENCODE_RESC(PM_RESOURCE_FULL_ON, 3U) 95 /*! 96 * @brief Set the constraint that STCM1 should in DEEPSLEEP mode. 97 */ 98 #define PM_RESC_STCM1_DEEPSLEEP PM_ENCODE_RESC(PM_RESOURCE_PARTABLE_ON1, 3U) 99 /*! 100 * @brief Set the constraint the STCM1 should be powered off in all mode. 101 */ 102 #define PM_RESC_STCM1_POWEROFF PM_ENCODE_RESC(PM_RESOURCE_OFF, 3U) 103 104 /*! 105 * @brief Set the constraint that STCM2 should in Active mode. 106 */ 107 #define PM_RESC_STCM2_ACTIVE PM_ENCODE_RESC(PM_RESOURCE_FULL_ON, 4U) 108 /*! 109 * @brief Set the constraint that STCM2 should in DEEPSLEEP mode. 110 */ 111 #define PM_RESC_STCM2_DEEPSLEEP PM_ENCODE_RESC(PM_RESOURCE_PARTABLE_ON1, 4U) 112 /*! 113 * @brief Set the constraint that STCM2 should be powered of in all modes. 114 */ 115 #define PM_RESC_STCM2_POWEROFF PM_ENCODE_RESC(PM_RESOURCE_OFF, 4U) 116 117 /*! 118 * @brief Set the constraint that STCM3 should in Active mode. 119 */ 120 #define PM_RESC_STCM3_ACTIVE PM_ENCODE_RESC(PM_RESOURCE_FULL_ON, 5U) 121 /*! 122 * @brief Set the constraint that STCM3 should in DEEPSLEEP mode. 123 */ 124 #define PM_RESC_STCM3_DEEPSLEEP PM_ENCODE_RESC(PM_RESOURCE_PARTABLE_ON1, 5U) 125 /*! 126 * @brief Set the constaint that STCM3 should be powered off in all modes. 127 */ 128 #define PM_RESC_STCM3_POWEROFF PM_ENCODE_RESC(PM_RESOURCE_OFF, 5U) 129 130 /*! 131 * @brief Set the constraint that STCM4 should in Active mode. 132 */ 133 #define PM_RESC_STCM4_ACTIVE PM_ENCODE_RESC(PM_RESOURCE_FULL_ON, 6U) 134 /*! 135 * @brief Set the constraint that STCM4 should in DEEPSLEEP mode. 136 */ 137 #define PM_RESC_STCM4_DEEPSLEEP PM_ENCODE_RESC(PM_RESOURCE_PARTABLE_ON1, 6U) 138 /*! 139 * @brief Set the constraint the STCM4 should be powered off in all modes. 140 */ 141 #define PM_RESC_STCM4_POWEROFF PM_ENCODE_RESC(PM_RESOURCE_OFF, 6U) 142 143 /*! 144 * @brief Set the constraint that FRO_192M should be ON. 145 */ 146 #define PM_RESC_FRO_192M_ON PM_ENCODE_RESC(PM_RESOURCE_FULL_ON, 7U) 147 /*! 148 * @brief Set the constraint that FRO_192M should be OFF. 149 */ 150 #define PM_RESC_FRO_192M_OFF PM_ENCODE_RESC(PM_RESOURCE_OFF, 7U) 151 152 /*! 153 * @brief Set the constraint that FRO_6M should be ON. 154 */ 155 #define PM_RESC_FRO_6M_ON PM_ENCODE_RESC(PM_RESOURCE_FULL_ON, 8U) 156 /*! 157 * @brief Set the constraint that FRO_6M should be OFF. 158 */ 159 #define PM_RESC_FRO_6M_OFF PM_ENCODE_RESC(PM_RESOURCE_OFF, 8U) 160 161 /*! 162 * @brief Set the constraint that peripherals in CORE_MAIN power domain still be operational. 163 */ 164 #define PM_RESC_MAIN_PD_PERI_OPERATIONAL PM_ENCODE_RESC(PM_RESOURCE_FULL_ON, 11U) 165 166 /*! 167 * @brief Set the constraint that peripherals in CORE_MAIN power domain are state retention, that means 168 * CORE_MAIN power domain can not be powered off. 169 */ 170 #define PM_RESC_MAIN_PD_PERI_STATE_RETENTION PM_ENCODE_RESC(PM_RESOURCE_FULL_ON, 10U) 171 172 /*! 173 * @brief Set the constraint that peripherals in CORE_WAKE power domain are active. 174 */ 175 #define PM_RESC_WAKE_PD_PERI_ACTIVE PM_ENCODE_RESC(PM_RESOURCE_FULL_ON, 9U) 176 /*! 177 * @brief Set the constraint that peripherals in CORE_WAKE power domain are operational. 178 */ 179 #define PM_RESC_WAKE_PD_PERI_OPERATIONAL PM_ENCODE_RESC(PM_RESOURCE_PARTABLE_ON2, 9U) 180 181 /*! 182 * @brief Set the constraint that peripherals in CORE_WAKE power domain are state retention, that means 183 * CORE_WAKE power domain can not be powered off. 184 */ 185 #define PM_RESC_WAKE_PD_PERI_STATE_RETENTION PM_ENCODE_RESC(PM_RESOURCE_PARTABLE_ON1, 9U) 186 187 /*! @} */ 188 189 #if FSL_PM_SUPPORT_WAKEUP_SOURCE_MANAGER 190 191 /*! 192 * @name System Wakeup source definitions. 193 * @{ 194 */ 195 196 /*! 197 * @brief Enable PTA0 as a wakeup pin, detect on rising edge. 198 */ 199 #define PM_WSID_PTA0_RISING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 0UL, PORTA_EFT_IRQn, 1UL) 200 /*! 201 * @brief Enable PTA0 as a wakeup pin, detect on falling edge. 202 */ 203 #define PM_WSID_PTA0_Falling_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 0UL, PORTA_EFT_IRQn, 2UL) 204 /*! 205 * @brief Enable PTA0 as a wakeup pin, detect on any edge. 206 */ 207 #define PM_WSID_PTA0_ANY_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 0UL, PORTA_EFT_IRQn, 3UL) 208 209 /*! 210 * @brief Enable PTA2 as a wakeup pin, detect on rising edge. 211 */ 212 #define PM_WSID_PTA2_RISING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 1UL, PORTA_EFT_IRQn, 1UL) 213 /*! 214 * @brief Enable PTA2 as a wakeup pin, detect on falling edge. 215 */ 216 #define PM_WSID_PTA2_FALLING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 1UL, PORTA_EFT_IRQn, 2UL) 217 /*! 218 * @brief Enable PTA2 as a wakeup pin, detect on any edge. 219 */ 220 #define PM_WSID_PTA2_ANY_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 1UL, PORTA_EFT_IRQn, 3UL) 221 222 /*! 223 * @brief Enable PTA4 as a wakeup pin, detect on rising edge. 224 */ 225 #define PM_WSID_PTA4_RISING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 2UL, PORTA_EFT_IRQn, 1UL) 226 /*! 227 * @brief Enable PTA4 as a wakeup pin, detect on falling edge. 228 */ 229 #define PM_WSID_PTA4_FALLING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 2UL, PORTA_EFT_IRQn, 2UL) 230 /*! 231 * @brief Enable PTA4 as a wakeup pin, detect on any edge. 232 */ 233 #define PM_WSID_PTA4_ANY_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 2UL, PORTA_EFT_IRQn, 3UL) 234 235 /*! 236 * @brief Enable PTA17 as a wakeup pin, detect on rising edge. 237 */ 238 #define PM_WSID_PTA17_RISING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 3UL, PORTA_EFT_IRQn, 1UL) 239 /*! 240 * @brief Enable PTA17 as a wakeup pin, detect on falling edge. 241 */ 242 #define PM_WSID_PTA17_FALLING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 3UL, PORTA_EFT_IRQn, 2UL) 243 /*! 244 * @brief Enable PTA17 as a wakeup pin, detect on any edge. 245 */ 246 #define PM_WSID_PTA17_ANY_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 3UL, PORTA_EFT_IRQn, 3UL) 247 248 /*! 249 * @brief Enable PTA19 as a wakeup pin, detect on rising edge. 250 */ 251 #define PM_WSID_PTA19_RISING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 4UL, PORTA_EFT_IRQn, 1UL) 252 /*! 253 * @brief Enable PTA19 as a wakeup pin, detect on falling edge. 254 */ 255 #define PM_WSID_PTA19_FALLING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 4UL, PORTA_EFT_IRQn, 2UL) 256 /*! 257 * @brief Enable PTA19 as a wakeup pin, detect on any edge. 258 */ 259 #define PM_WSID_PTA19_ANY_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 4UL, PORTA_EFT_IRQn, 3UL) 260 261 /*! 262 * @brief Enable PTA21 as a wakeup pin, detect on rising edge. 263 */ 264 #define PM_WSID_PTA21_RISING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 5UL, PORTA_EFT_IRQn, 1UL) 265 /*! 266 * @brief Enable PTA21 as a wakeup pin, detect on falling edge. 267 */ 268 #define PM_WSID_PTA21_FALLING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 5UL, PORTA_EFT_IRQn, 2UL) 269 /*! 270 * @brief Enable PTA21 as a wakeup pin, detect on any edge. 271 */ 272 #define PM_WSID_PTA21_ANY_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 5UL, PORTA_EFT_IRQn, 3UL) 273 274 /*! 275 * @brief Enable PTA22 as a wakeup pin, detect on rising edge. 276 */ 277 #define PM_WSID_PTA22_RISING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 6UL, PORTA_EFT_IRQn, 1UL) 278 /*! 279 * @brief Enable PTA22 as a wakeup pin, detect on falling edge. 280 */ 281 #define PM_WSID_PTA22_FALLING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 6UL, PORTA_EFT_IRQn, 2UL) 282 /*! 283 * @brief Enable PTA22 as a wakeup pin, detect on any edge. 284 */ 285 #define PM_WSID_PTA22_ANY_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 6UL, PORTA_EFT_IRQn, 3UL) 286 287 /*! 288 * @brief Enable PTC0 as a wakeup pin, detect on rising edge. 289 */ 290 #define PM_WSID_PTC0_RISING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 7UL, PORTC_EFT_IRQn, 1UL) 291 /*! 292 * @brief Enable PTC0 as a wakeup pin, detect on falling edge. 293 */ 294 #define PM_WSID_PTC0_FALLING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 7UL, PORTC_EFT_IRQn, 2UL) 295 /*! 296 * @brief Enable PTC0 as a wakeup pin, detect on any edge. 297 */ 298 #define PM_WSID_PTC0_ANY_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 7UL, PORTC_EFT_IRQn, 3UL) 299 300 /*! 301 * @brief Enable PTC1 as a wakeup pin, detect on rising edge. 302 */ 303 #define PM_WSID_PTC1_RISING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 8UL, PORTC_EFT_IRQn, 1UL) 304 /*! 305 * @brief Enable PTC1 as a wakeup pin, detect on falling edge. 306 */ 307 #define PM_WSID_PTC1_FALLING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 8UL, PORTC_EFT_IRQn, 2UL) 308 /*! 309 * @brief Enable PTC1 as a wakeup pin, detect on any edge. 310 */ 311 #define PM_WSID_PTC1_ANY_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 8UL, PORTC_EFT_IRQn, 3UL) 312 313 /*! 314 * @brief Enable PTC2 as a wakeup pin, detect on rising edge. 315 */ 316 #define PM_WSID_PTC2_RISING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 9UL, PORTC_EFT_IRQn, 1UL) 317 /*! 318 * @brief Enable PTC2 as a wakeup pin, detect on falling edge. 319 */ 320 #define PM_WSID_PTC2_FALLING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 9UL, PORTC_EFT_IRQn, 2UL) 321 /*! 322 * @brief Enable PTC2 as a wakeup pin, detect on any edge. 323 */ 324 #define PM_WSID_PTC2_ANY_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 9UL, PORTC_EFT_IRQn, 3UL) 325 326 /*! 327 * @brief Enable PTC4 as a wakeup pin, detect on rising edge. 328 */ 329 #define PM_WSID_PTC4_RISING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 10UL, PORTC_EFT_IRQn, 1UL) 330 /*! 331 * @brief Enable PTC4 as a wakeup pin, detect on falling edge. 332 */ 333 #define PM_WSID_PTC4_FALLING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 10UL, PORTC_EFT_IRQn, 2UL) 334 /*! 335 * @brief Enable PTC4 as a wakeup pin, detect on any edge. 336 */ 337 #define PM_WSID_PTC4_ANY_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 10UL, PORTC_EFT_IRQn, 3UL) 338 339 /*! 340 * @brief Enable PTC6 as a wakeup pin, detect on rising edge. 341 */ 342 #define PM_WSID_PTC6_RISING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 11UL, PORTC_EFT_IRQn, 1UL) 343 /*! 344 * @brief Enable PTC6 as a wakeup pin, detect on falling edge. 345 */ 346 #define PM_WSID_PTC6_FALLING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 11UL, PORTC_EFT_IRQn, 2UL) 347 /*! 348 * @brief Enable PTC6 as a wakeup pin, detect on any edge. 349 */ 350 #define PM_WSID_PTC6_ANY_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 11UL, PORTC_EFT_IRQn, 3UL) 351 352 /*! 353 * @brief Enable PTC7 as a wakeup pin, detect on rising edge. 354 */ 355 #define PM_WSID_PTC7_RISING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 12UL, PORTC_EFT_IRQn, 1UL) 356 /*! 357 * @brief Enable PTC7 as a wakeup pin, detect on falling edge. 358 */ 359 #define PM_WSID_PTC7_FALLING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 12UL, PORTC_EFT_IRQn, 2UL) 360 /*! 361 * @brief Enable PTC7 as a wakeup pin, detect on any edge. 362 */ 363 #define PM_WSID_PTC7_ANY_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 12UL, PORTC_EFT_IRQns, 3UL) 364 365 /*! 366 * @brief Enable PTB0 as a wakeup pin, detect on rising edge. 367 */ 368 #define PM_WSID_PTB0_RISING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 13UL, PORTB_EFT_IRQn, 1UL) 369 /*! 370 * @brief Enable PTB0 as a wakeup pin, detect on falling edge. 371 */ 372 #define PM_WSID_PTB0_FALLING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 13UL, PORTB_EFT_IRQn, 2UL) 373 /*! 374 * @brief Enable PTB0 as a wakeup pin, detect on any edge. 375 */ 376 #define PM_WSID_PTB0_ANY_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 13UL, PORTB_EFT_IRQn, 3UL) 377 378 /*! 379 * @brief Enable PTB3 as a wakeup pin, detect on rising edge. 380 */ 381 #define PM_WSID_PTB3_RISING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 14UL, PORTB_EFT_IRQn, 1UL) 382 /*! 383 * @brief Enable PTB3 as a wakeup pin, detect on falling edge. 384 */ 385 #define PM_WSID_PTB3_FALLING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 14UL, PORTB_EFT_IRQn, 2UL) 386 /*! 387 * @brief Enable PTB3 as a wakeup pin, detect on any edge. 388 */ 389 #define PM_WSID_PTB3_ANY_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 14UL, PORTB_EFT_IRQn, 3UL) 390 391 /*! 392 * @brief Enable PTB4 as a wakeup pin, detect on rising edge. 393 */ 394 #define PM_WSID_PTB4_RISING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 15UL, PORTB_EFT_IRQn, 1UL) 395 /*! 396 * @brief Enable PTB4 as a wakeup pin, detect on falling edge. 397 */ 398 #define PM_WSID_PTB4_FALLING_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 15UL, PORTB_EFT_IRQn, 2UL) 399 /*! 400 * @brief Enable PTB4 as a wakeup pin, detect on any edge. 401 */ 402 #define PM_WSID_PTB4_ANY_EDGE PM_ENCODE_WAKEUP_SOURCE_ID(0UL, 15UL, PORTB_EFT_IRQn, 3UL) 403 404 /*! 405 * @brief Enable LPTMR0 as a wakeup source. 406 */ 407 #define PM_WSID_LPTMR0 PM_ENCODE_WAKEUP_SOURCE_ID(1UL, 0UL, LPTMR0_IRQn, 0UL) 408 409 /*! 410 * @brief Enable LPTMR1 as a wakeup source. 411 */ 412 #define PM_WSID_LPTMR1 PM_ENCODE_WAKEUP_SOURCE_ID(1UL, 0UL, LPTMR1_IRQn, 0UL) 413 414 /*! 415 * @brief Enable GPIOD Low pins as wakeup source. 416 */ 417 #define PM_WSID_GPIOD_LOW PM_ENCODE_WAKEUP_SOURCE_ID(1UL, 1UL, GPIOD_INT0_IRQn, 0UL) 418 419 /*! 420 * @brief Enable GPIOD High pins as wakeup source. 421 */ 422 #define PM_WSID_GPIOD_HIGH PM_ENCODE_WAKEUP_SOURCE_ID(1UL, 2UL, GPIOD_INT1_IRQn, 0UL) 423 424 /*! 425 * @brief Enable VBAT module as wakeup source. 426 */ 427 #define PM_WSID_WFSPSD PM_ENCODE_WAKEUP_SOURCE_ID(1UL, 4UL, VBAT_IRQn, 0UL) 428 429 /*! 430 * @brief Enable RTC Alarm as wakeup source. 431 */ 432 #define PM_WSID_RTC_ALARM PM_ENCODE_WAKEUP_SOURCE_ID(1UL, 6UL, RTC_Alarm_IRQn, 0UL) 433 434 /*! 435 * @brief Enable RTC Second as wakeup source. 436 */ 437 #define PM_WSID_RTC_SECOND PM_ENCODE_WAKEUP_SOURCE_ID(1UL, 7UL, RTC_Second_IRQn, 0UL) 438 439 /*! @} */ 440 441 #endif /* FSL_PM_SUPPORT_WAKEUP_SOURCE_MANAGER */ 442 443 /*! @} */ 444 445 #define PM_RESC_BUS_SYS_CLK_INDEX 12U 446 #endif /* _FSL_PM_DEVICE_H_ */ 447