From: asterix Date: Tue, 3 Aug 2010 10:54:02 +0000 (+0000) Subject: Use macro for bitmask. X-Git-Tag: 2.6.0~260 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=9cfb988da48972e29415edec87d7494a3e8c64d1;p=bertos.git Use macro for bitmask. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4130 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/boards/stm32-p103/hw/hw_led.h b/boards/stm32-p103/hw/hw_led.h index e230efb0..631c4fd6 100644 --- a/boards/stm32-p103/hw/hw_led.h +++ b/boards/stm32-p103/hw/hw_led.h @@ -38,11 +38,14 @@ #ifndef HW_LED_H #define HW_LED_H +#include + #include + #include #include -#define LED_PIN (1 << 12) +#define LED_PIN BV(12) #define LED_GPIO_BASE ((struct stm32_gpio *)GPIOC_BASE) #define LED_ON() \