diff options
| author | Keith Packard <keithp@keithp.com> | 2012-07-14 01:28:55 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2012-07-14 01:28:55 -0700 | 
| commit | 82b50fc1b7f2c6af7264fbad2c35508abc15e81e (patch) | |
| tree | dc6f23d05a462150c30de541e4457afbddb13ec0 /src/stm/ao_arch_funcs.h | |
| parent | 726e0f2c547b6bae1f1e640e2c1155c0b9631a9b (diff) | |
altos/stm: Expose ao_gpio_set which sets a specific GPIO pin
Will need versions for other architectures
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm/ao_arch_funcs.h')
| -rw-r--r-- | src/stm/ao_arch_funcs.h | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/src/stm/ao_arch_funcs.h b/src/stm/ao_arch_funcs.h index 7820bf79..4416bbab 100644 --- a/src/stm/ao_arch_funcs.h +++ b/src/stm/ao_arch_funcs.h @@ -76,9 +76,11 @@ ao_spi_init(void);  	} while (0) +#define ao_gpio_set(port, pin, v) stm_gpio_set(port, pin, v) +  #define ao_enable_output(port,pin,v) do {			\  		ao_enable_port(port);				\ -		stm_gpio_set(port, pin, v);			\ +		ao_gpio_set(port, pin, v);			\  		stm_moder_set(port, pin, STM_MODER_OUTPUT);	\  	} while (0) | 
