diff options
author | Keith Packard <keithp@keithp.com> | 2018-05-07 09:53:52 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2018-05-07 09:53:52 -0700 |
commit | 1f56dc30a31e3d5c833f73ec9cd31f548a80e154 (patch) | |
tree | 3cf4ad2bc897cd2fce5b9f772b282f9b768c689c /src/stmf0 | |
parent | feb881a24250bd7e71ec8ccef0099d4b4a0df519 (diff) | |
parent | 71acc79f8e828d56296db282c72cf4492a8aa4f4 (diff) |
Merge branch 'mpusb'
Diffstat (limited to 'src/stmf0')
-rw-r--r-- | src/stmf0/ao_arch_funcs.h | 2 |
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) { |