📄 hardware.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -