stm8s在iar环境下,怎么定义位变量最为方便

2025-01-03 21:29:06
推荐回答(1个)
回答1:

struct BitFlag
{ unsigned char db0: 1;
unsigned char db1: 1;
unsigned char db2: 1;
}Flag;

Flag.db0= 1;