Use macro for bitmask.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 3 Aug 2010 10:54:02 +0000 (10:54 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 3 Aug 2010 10:54:02 +0000 (10:54 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4130 38d2e660-2303-0410-9eaa-f027e97ec537

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()                                                       \