diff options
-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 */ |