diff options
author | Keith Packard <keithp@keithp.com> | 2011-04-07 22:00:38 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-04-07 22:00:38 -0700 |
commit | 1a54a58d72147888f783a3caf364479efff4ed9b (patch) | |
tree | 20d3352c5cc17ac5c55ca52df63a21e95d5d73ed /src/ao.h | |
parent | f28efe271f9670473249574f6bcf6e160fe58c7b (diff) |
altos: Use PIO(6) on BTM to monitor BT connection. Fix BTM init.
PIo(6) appears to be an active-low indication of the Bluetooth
connection status. Hook this up using an interrupt to track the
link state instead of using in-band status messages.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao.h')
-rw-r--r-- | src/ao.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -107,6 +107,7 @@ ao_start_scheduler(void); #define AO_PANIC_REBOOT 8 /* Reboot failed */ #define AO_PANIC_FLASH 9 /* Invalid flash part (or wrong blocksize) */ #define AO_PANIC_USB 10 /* Trying to send USB packet while busy */ +#define AO_PANIC_BT 11 /* Communications with bluetooth device failed */ /* Stop the operating system, beeping and blinking the reason */ void @@ -1366,6 +1367,10 @@ ao_packet_slave_init(uint8_t enable); /* ao_btm.c */ +/* Shared by USB, so the USB code calls this function */ +void +ao_btm_isr(void); + void ao_btm_init(void); |