hardware.h

来自「SOS操作系统用于无线传感器网络节点的源代码」· C头文件 代码 · 共 42 行

H
42
字号
#ifndef _HARDWARE_H
#define _HARDWARE_H

// system headers
//#include <hardware_types.h>
//#include <avr/eeprom.h>
#include "sos_types.h"
//#include <pin_map.h>
//#include <plat_msg_types.h>

//#include "systime.h"
//#include "led.h"
//#include "radio_spi.h"
//#include "timer.h"
//#include "cc1k.h"
//#include "adc_proc.h"
//#include "uart.h"
//#include "exflash.h"
//#include "uart_system.h"
//#include "i2c_system.h"


// I/O setup for the Mica2 platform
#ifndef NO_SOS_RADIO
#define SOS_RADIO_CHANNEL
#define SOS_RADIO_LINK_DISPATCH(m) radio_msg_alloc(m)
#endif

#ifndef NO_SOS_UART
#define SOS_UART_CHANNEL
#define SOS_UART_LINK_DISPATCH(m) uart_msg_alloc(m)
#endif

#ifndef NO_SOS_I2C
#define SOS_I2C_CHANNEL
#define SOS_I2C_LINK_DISPATCH(m) i2c_msg_alloc(m)
#endif

void hardware_init(void);

#endif // _HARDWARE_H

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?