From 9cfb988da48972e29415edec87d7494a3e8c64d1 Mon Sep 17 00:00:00 2001 From: asterix Date: Tue, 3 Aug 2010 10:54:02 +0000 Subject: [PATCH] Use macro for bitmask. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4130 38d2e660-2303-0410-9eaa-f027e97ec537 --- boards/stm32-p103/hw/hw_led.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() \ -- 2.25.1