Remove BIT macro
This commit is contained in:
@@ -21,7 +21,6 @@ struct gpio {
|
||||
#define GPIO_PORT_OFFSET (0x400U)
|
||||
#define GPIO(port) ((struct gpio*)(uintptr_t)(GPIO_BASE_ADDR + (GPIO_PORT_OFFSET * port)))
|
||||
|
||||
#define BIT(x) (1 << x)
|
||||
// Create a 16bit number from a port and pin
|
||||
#define PIN(port, num) ((((port) - 'A') << 8) | num)
|
||||
// get the lower byte from a PIN
|
||||
|
||||
Reference in New Issue
Block a user