Remove BIT macro

This commit is contained in:
Alexander Heldt
2025-01-01 11:58:40 +01:00
parent 980b9a2d9b
commit 152a9ad8a7
10 changed files with 307 additions and 320 deletions

View File

@@ -2127,7 +2127,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)
#define PIN(port,num) ((((port) - 'A') << 8) | num)
@@ -2144,9 +2143,9 @@ typedef enum {
void gpio_set_mode(uint16_t pin, GPIO_MODE mode);
void gpio_write(uint16_t pin,
# 40 "src/gpio.h" 3 4
# 39 "src/gpio.h" 3 4
_Bool
# 40 "src/gpio.h"
# 39 "src/gpio.h"
val);
# 6 "src/main.c" 2
# 1 "src/flash.h" 1