diff options
author | Keith Packard <keithp@keithp.com> | 2011-10-11 23:28:02 -0600 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-10-11 23:28:02 -0600 |
commit | badda0d910c56135401dce9adc9e6abebdba2ad7 (patch) | |
tree | dc586762e7a12faa4240cf82f99691c04d08f57f /src/cc1111/ao_packet.c | |
parent | 47c2c0b79dc516d2566ae149605b7d70ef2dca98 (diff) |
altos: Split out arch-specific bits of LCD driver
The arch-specific section just puts a single nibble to the device.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/cc1111/ao_packet.c')
-rw-r--r-- | src/cc1111/ao_packet.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cc1111/ao_packet.c b/src/cc1111/ao_packet.c index 37ba92e0..f502d67c 100644 --- a/src/cc1111/ao_packet.c +++ b/src/cc1111/ao_packet.c @@ -32,7 +32,9 @@ __xdata uint8_t ao_packet_master_sleeping; void ao_packet_send(void) { +#ifdef AO_LED_RED ao_led_on(AO_LED_RED); +#endif /* If any tx data is pending then copy it into the tx packet */ if (ao_packet_tx_used && ao_tx_packet.len == 0) { ao_xmemcpy(&ao_tx_packet.d, tx_data, ao_packet_tx_used); @@ -42,7 +44,9 @@ ao_packet_send(void) ao_wakeup(&tx_data); } ao_radio_send(&ao_tx_packet, sizeof (ao_tx_packet)); +#ifdef AO_LED_RED ao_led_off(AO_LED_RED); +#endif } uint8_t |