![]() |
Kinetis SDK v.1.2 Demo Applications User's Guide
Rev. 0
Freescale Semiconductor, Inc.
|
#include <stdio.h>
#include <string.h>
#include "board.h"
#include "lpm_rtos.h"
#include "fsl_uart_driver.h"
#include "fsl_os_abstraction.h"
#include "fsl_interrupt_manager.h"
#include "fsl_gpio_driver.h"
#include "fsl_llwu_hal.h"
#include "fsl_smc_hal.h"
#include "fsl_power_manager.h"
#include "fsl_clock_manager.h"
#include "fsl_debug_console.h"
#include "fsl_sim_hal.h"
#include "fsl_misc_utilities.h"
#include "task_lpm.h"
Functions | |
void | cmdAlarm (wakeUpSource_t wus, uint8_t offsetSec) |
set alarm command. More... | |
wakeUpSource_t | getWakeupSource (uint8_t val, demo_power_modes_t mode) |
get wake up source from given character. More... | |
void MODULE_IRQ_HANDLER() | LLWU (void) |
void | BOARD_SW_LLWU_IRQ_HANDLER (void) |
IRQ handler for switch/button. More... | |
uint8_t | setWakeUpTimeOut (wakeUpSource_t wus) |
set timeout for timer module. More... | |
void | printWakeUpSourceText (wakeUpSource_t wus) |
print wakeup source which was selected. More... | |
wakeUpSource_t | selectWakeUpSource (demo_power_modes_t mode) |
select wakeup source. More... | |
void | gpioDisableWakeUp (void) |
disable gpio switch. More... | |
void | gpioEnableWakeUp (void) |
set gpio switch as wakeup source. More... | |
void | setWakeUpSource (wakeUpSource_t wus, char *textMode) |
set wakeup source. More... | |
void | displayPowerMode (void) |
display current power mode. More... | |
void | updateClockManagerToRunMode (uint8_t cmConfigMode) |
update clock manager to run mode. More... | |
void | updateClockManagerToVlprMode (uint8_t cmConfigMode) |
update clock manager to vlpr mode. More... | |
void | updateClockMode (uint8_t cmConfigMode) |
Update clock to compatible with RUN mode. More... | |
void | delay (uint32_t delay_time) |
little delay for uart flush. More... | |
void | task_lpm (task_param_t param) |
task low power management. More... | |
Variables | |
const clock_manager_user_config_t | g_defaultClockConfigRun |
const clock_manager_user_config_t | g_defaultClockConfigVlpr |
const clock_manager_user_config_t * | g_defaultClockConfigurations [] |
void BOARD_SW_LLWU_IRQ_HANDLER | ( | void | ) |
void cmdAlarm | ( | wakeUpSource_t | wus, |
uint8_t | offsetSec | ||
) |
This function set the alarm which will be trigerred x secs later. The alarm trigger will print a notification on the console.
void delay | ( | uint32_t | delay_time | ) |
void displayPowerMode | ( | void | ) |
wakeUpSource_t getWakeupSource | ( | uint8_t | val, |
demo_power_modes_t | mode | ||
) |
void gpioDisableWakeUp | ( | void | ) |
void gpioEnableWakeUp | ( | void | ) |
void MODULE_IRQ_HANDLER() LLWU | ( | void | ) |
void printWakeUpSourceText | ( | wakeUpSource_t | wus | ) |
wakeUpSource_t selectWakeUpSource | ( | demo_power_modes_t | mode | ) |
TWR_K60D100M doesn't have switch pins connected to LLWU. It's not possible to wake up by SWx buttons from some modes. returns 0 when RTC is selected as wake up source returns 1 when sw pins are selected as wake up source
select wakeup source.
TWR_K60D100M doesn't have switch pins connected to LLWU. It's not possible to wake up by SWx buttons from some modes. returns 0 when RTC is selected as wake up source returns 1 when sw pins are selected as wake up source
void setWakeUpSource | ( | wakeUpSource_t | wus, |
char * | textMode | ||
) |
uint8_t setWakeUpTimeOut | ( | wakeUpSource_t | wus | ) |
void task_lpm | ( | task_param_t | param | ) |
void updateClockManagerToRunMode | ( | uint8_t | cmConfigMode | ) |
void updateClockManagerToVlprMode | ( | uint8_t | cmConfigMode | ) |
void updateClockMode | ( | uint8_t | cmConfigMode | ) |
const clock_manager_user_config_t g_defaultClockConfigRun |
const clock_manager_user_config_t* g_defaultClockConfigurations[] |
const clock_manager_user_config_t g_defaultClockConfigVlpr |