mirror of
https://github.com/itomato/macusbdb.git
synced 2024-12-12 10:30:26 +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);
|