|
MSP430里没有位定义
可下面结构体定义来代替
struct flag_inf{
unsigned doc:1;
unsigned m:1;
unsigned up:1;
unsigned down:1;
unsigned a_v_d:1;
unsigned id_set:1;
unsigned chao_biao:1;
unsigned tx_data:1;
unsigned spi_rx_end:1;
unsigned c_r_start:1;
}flag;
使用时直接用flag.doc flag.m flag.up 这些标志位
大家可以试试!!
|
|