Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62309

Forum Post: RE: How to correctly define a name to a output port bit.

$
0
0
I think you can do this (but didn't try it myself): #define B8_0(x) (((volatile struct bits8 *) (x)) ->b0) #define B8_1(x) (((volatile struct bits8 *) (x)) ->b1) #define B8_2(x) (((volatile struct bits8 *) (x)) ->b2) #define B8_3(x) (((volatile struct bits8 *) (x)) ->b3) #define B8_4(x) (((volatile struct bits8 *) (x)) ->b4) #define B8_5(x) (((volatile struct bits8 *) (x)) ->b5) #define B8_6(x) (((volatile struct bits8 *) (x)) ->b6) #define B8_7(x) (((volatile struct bits8 *) (x)) ->b7)

Viewing all articles
Browse latest Browse all 62309

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>