![]() |
Kinetis SDK v.1.2 Demo Applications User's Guide
Rev. 0
Freescale Semiconductor, Inc.
|
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include "board.h"
#include "fsl_os_abstraction.h"
#include "fsl_smc_hal.h"
#include "fsl_adc16_driver.h"
#include "fsl_debug_console.h"
#include "lpm_rtos.h"
#include "adc16_temperature.h"
Macros | |
#define | TASK_LPM_PRIO |
#define | TASK_LED_RTOS_PRIO |
#define | TASK_LED_CLOCK_PRIO |
#define | TASK_LPM_STACK_SIZE |
#define | TASK_LED_RTOS_STACK_SIZE |
#define | TASK_LED_CLOCK_STACK_SIZE |
Functions | |
void | task_lpm (task_param_t param) |
void | task_led_rtos (task_param_t param) |
void | task_led_clock (task_param_t param) |
OSA_TASK_DEFINE (task_lpm, TASK_LPM_STACK_SIZE) | |
OSA_TASK_DEFINE (task_led_rtos, TASK_LED_RTOS_STACK_SIZE) | |
OSA_TASK_DEFINE (task_led_clock, TASK_LED_CLOCK_STACK_SIZE) | |
char | getInput () |
int | main (void) |
Function prototype for main function. More... | |
Variables | |
static uart_state_t | s_dbgState |
static uart_user_config_t | s_dbgConfig |
static osa_status_t | s_result |
static adc16_converter_config_t | adcUserConfig |
static adc16_chn_config_t | adcChnConfig |
static adc16_calibration_param_t | adcCalibraitionParam |
#define TASK_LED_CLOCK_PRIO |
#define TASK_LED_CLOCK_STACK_SIZE |
#define TASK_LED_RTOS_PRIO |
#define TASK_LED_RTOS_STACK_SIZE |
#define TASK_LPM_PRIO |
#define TASK_LPM_STACK_SIZE |
char getInput | ( | void | ) |
get character from uart0 in blocking mode.
int main | ( | void | ) |
Function prototype for main function.
receiveBuff | Buffer used to hold received data |
OSA_TASK_DEFINE | ( | task_lpm | , |
TASK_LPM_STACK_SIZE | |||
) |
OSA_TASK_DEFINE | ( | task_led_rtos | , |
TASK_LED_RTOS_STACK_SIZE | |||
) |
OSA_TASK_DEFINE | ( | task_led_clock | , |
TASK_LED_CLOCK_STACK_SIZE | |||
) |
void task_led_clock | ( | task_param_t | param | ) |
task to blink led clock after delay loop.
void task_led_rtos | ( | task_param_t | param | ) |
task to blink led rtos between 1 seconds.
void task_lpm | ( | task_param_t | param | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |