| Kinetis SDK Demo Applications User Guide 1.0.0-beta Freescale Semiconductor, Inc.

- Main Page
- Related Pages
- Demos

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
i2c_rtos_bm_slave.c File Reference
`#include <stdio.h>`
`#include "fsl_clock_manager.h"`
`#include "board.h"`
`#include "fsl_debug_uart.h"`
`#include "fsl_i2c_master_driver.h"`
`#include "fsl_uart_driver.h"`
`#include "fsl_i2c_slave_driver.h"`
`#include "fsl_smc_manager.h"`
`#include "i2c_rtos.h"`
`#include "fsl_adc_driver.h"`

## Macros
#define | VTEMP25_ADC
#define | K
#define | M1
#define | M2

## Functions
void | task_slave (void *param)
| FSL_RTOS_TASK_DEFINE (task_slave, TASK_SLAVE_STACK_SIZE,"slave", false)
uint8_t | get_temp_in_byte (uint32_t index)
void | main (void)

## Variables
uint32_t | gSlaveId
adc_channel_config_t | tempSnseChannelConfig
task_handler_t | hTaskSlave

## Macro Definition Documentation

#define K

#define M1

#define M2

#define VTEMP25_ADC

## Function Documentation

FSL_RTOS_TASK_DEFINE | ( | task_slave | ,
|  | TASK_SLAVE_STACK_SIZE | ,
|  | "slave" | ,
|  | false |
| ) |  |

uint8_t get_temp_in_byte | ( | uint32_t | index | ) |

Get the 32bits temperature in byte designed for BM version of I2C_RTOS demo from the ISR context

void main | ( | void |  | ) |

void task_slave | ( | void * | param | ) |

task for slave getting request and put response

## Variable Documentation

uint32_t gSlaveId

task_handler_t hTaskSlave

adc_channel_config_t tempSnseChannelConfig