summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2018-05-07 09:42:28 -0700
committerKeith Packard <keithp@keithp.com>2018-05-07 09:42:28 -0700
commitbc70f92966221f941b96177b401744a7aca24814 (patch)
tree660b6e509c9bf0421aadc6dd6d1cc3f80ad48d80 /src
parent5ddd4e10bd8ddb4a00a0ccd8982db3311ec5a9e7 (diff)
altos/stmf0: leave ao_power_gpio names undefined without power management
Should make it more obvious at compile time that you've done something wrong. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/stmf0/ao_arch_funcs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stmf0/ao_arch_funcs.h b/src/stmf0/ao_arch_funcs.h
index 56a3bc75..96c033f9 100644
--- a/src/stmf0/ao_arch_funcs.h
+++ b/src/stmf0/ao_arch_funcs.h
@@ -171,10 +171,12 @@ ao_spi_try_get_mask(struct stm_gpio *reg, uint16_t mask, uint8_t bus, uint32_t s
#define ao_spi_get_bit(reg,bit,pin,bus,speed) ao_spi_get_mask(reg,(1<<bit),bus,speed)
#define ao_spi_put_bit(reg,bit,pin,bus) ao_spi_put_mask(reg,(1<<bit),bus)
+#if AO_POWER_MANAGEMENT
extern struct ao_power ao_power_gpioa;
extern struct ao_power ao_power_gpiob;
extern struct ao_power ao_power_gpioc;
extern struct ao_power ao_power_gpiof;
+#endif
static inline void ao_enable_port(struct stm_gpio *port)
{