diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-05-19 15:37:47 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-05-19 18:45:45 -0400 |
commit | 40ccd775d337ff5381f02dbbf7bafffd38188b88 (patch) | |
tree | 2a21e80d516956bff62d062122d8fdd802ee15c8 /libmaple | |
parent | 395e5b355bab702943c2fcfdffa2dbab1b0e8d15 (diff) | |
download | librambutan-40ccd775d337ff5381f02dbbf7bafffd38188b88.tar.gz librambutan-40ccd775d337ff5381f02dbbf7bafffd38188b88.zip |
pwr: removing unused device.
Diffstat (limited to 'libmaple')
-rw-r--r-- | libmaple/pwr.c | 6 | ||||
-rw-r--r-- | libmaple/pwr.h | 10 |
2 files changed, 0 insertions, 16 deletions
diff --git a/libmaple/pwr.c b/libmaple/pwr.c index d63a92d..83d289d 100644 --- a/libmaple/pwr.c +++ b/libmaple/pwr.c @@ -27,12 +27,6 @@ #include "pwr.h" #include "rcc.h" -pwr_dev pwr = { - .regs = PWR_BASE, -}; - -const pwr_dev *PWR = &pwr; - /** * Enables the power interface clock, and resets the power device. */ diff --git a/libmaple/pwr.h b/libmaple/pwr.h index 5f68c34..f473d24 100644 --- a/libmaple/pwr.h +++ b/libmaple/pwr.h @@ -44,16 +44,6 @@ typedef struct pwr_reg_map { /** Power peripheral register map base pointer. */ #define PWR_BASE ((pwr_reg_map*)0x40007000) -/** Power device type. */ -typedef struct pwr_dev { - pwr_reg_map *regs; /**< Register map */ -} pwr_dev; - -/** - * Power device. - */ -extern const pwr_dev *PWR; - /* * Register bit definitions */ |