aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/include
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-05-10 16:04:09 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-05-31 17:24:17 -0400
commita00bf9944d419432c633dcdfd27dba06b0f71842 (patch)
tree8eafadb20e4bbaf9f06bc44fb33b52269a171927 /libmaple/include
parente34923631052c41349e660628fab310835ca5a5e (diff)
downloadlibrambutan-a00bf9944d419432c633dcdfd27dba06b0f71842.tar.gz
librambutan-a00bf9944d419432c633dcdfd27dba06b0f71842.zip
libmaple/iwdg.h: Remove BIT() usages.
This cleans up another unnecessary <libmaple/util.h> dependency. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple/include')
-rw-r--r--libmaple/include/libmaple/iwdg.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/libmaple/include/libmaple/iwdg.h b/libmaple/include/libmaple/iwdg.h
index 0aef8fd..3a16c55 100644
--- a/libmaple/include/libmaple/iwdg.h
+++ b/libmaple/include/libmaple/iwdg.h
@@ -46,7 +46,6 @@ extern "C"{
#endif
#include <libmaple/libmaple_types.h>
-#include <libmaple/util.h>
/*
* Register map
@@ -88,8 +87,8 @@ typedef struct iwdg_reg_map {
#define IWDG_SR_RVU_BIT 1
#define IWDG_SR_PVU_BIT 0
-#define IWDG_SR_RVU BIT(IWDG_SR_RVU_BIT)
-#define IWDG_SR_PVU BIT(IWDG_SR_PVU_BIT)
+#define IWDG_SR_RVU (1U << IWDG_SR_RVU_BIT)
+#define IWDG_SR_PVU (1U << IWDG_SR_PVU_BIT)
/**
* @brief Independent watchdog prescalers.