mirror of
https://github.com/itomato/macusbdb.git
synced 2024-10-31 10:06:28 +00:00
6 lines
254 B
C
6 lines
254 B
C
|
//Macros to quickly modify gpio values
|
||
|
|
||
|
#define GPIOMOD(port, mask, bits) (* (pREG32 (0x50000000+(0x10000*port)+(mask<<2))))=bits
|
||
|
#define GPIOSET(port, bits) GPIOMOD(port, (1<<bits), (1<<bits));
|
||
|
#define GPIOCLEAR(port, bits) GPIOMOD(port, (1<<bits), 0);
|