Move unpack lwip ip address macro to macros module.
[bertos.git] / boards / stm32-p103 / hw / hw_led.h
index e230efb0d030195e4ca02d3aa1c8fb9cd06cdbf0..631c4fd625f05572e4d1b844769b53539634986e 100644 (file)
 #ifndef HW_LED_H
 #define HW_LED_H
 
+#include <cfg/macros.h>
+
 #include <io/stm32.h>
+
 #include <drv/gpio_stm32.h>
 #include <drv/clock_stm32.h>
 
-#define LED_PIN                        (1 << 12)
+#define LED_PIN                            BV(12)
 #define LED_GPIO_BASE          ((struct stm32_gpio *)GPIOC_BASE)
 
 #define LED_ON()                                                       \