diff options
author | Keith Packard <keithp@keithp.com> | 2018-05-16 22:03:25 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2018-05-16 22:06:12 -0700 |
commit | 85a8846a423ce2d15815466564fb589bb553c742 (patch) | |
tree | 4adedcdd5ef993be0c3633537fc01fe4f3819224 /src/stm/ao_arch.h | |
parent | 96ee5257068a988db10097af8df72b0008bce978 (diff) |
altos/stm: Add per-LED port/pin mode in LED code
If you've got a complicated LED pin arrangement, you can ask for each
one to be configured separately, instead of using groups in a couple
of GPIO registers. The code isn't as efficient this way, but at least
it's easy to read.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm/ao_arch.h')
-rw-r--r-- | src/stm/ao_arch.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stm/ao_arch.h b/src/stm/ao_arch.h index 5f033b66..ecf1c1a7 100644 --- a/src/stm/ao_arch.h +++ b/src/stm/ao_arch.h @@ -153,6 +153,10 @@ ao_adc_init(); #define AO_BOOT_LOADER_BASE ((uint32_t *) 0x08000000) #define HAS_BOOT_LOADER 1 +#ifndef AO_LED_TYPE +#define AO_LED_TYPE uint16_t +#endif + #endif /* _AO_ARCH_H_ */ |