mirror of
https://github.com/markqvist/OpenModem.git
synced 2025-05-16 05:12:29 -04:00
LED driver work
This commit is contained in:
parent
c22123b953
commit
372264d379
12 changed files with 162 additions and 29 deletions
|
@ -224,19 +224,6 @@ typedef struct Afsk
|
|||
#define AFSK_DAC_IRQ_START() do { extern bool hw_afsk_dac_isr; hw_afsk_dac_isr = true; } while (0)
|
||||
#define AFSK_DAC_IRQ_STOP() do { extern bool hw_afsk_dac_isr; hw_afsk_dac_isr = false; } while (0)
|
||||
|
||||
// Here's some macros for controlling the RX/TX LEDs
|
||||
// THE _INIT() functions writes to the DDR registers
|
||||
// to configure the pins as output pins, and the _ON()
|
||||
// and _OFF() functions writes to the PORT registers
|
||||
// to turn the pins on or off.
|
||||
#define LED_TX_INIT() do { LED_DDR |= _BV(1); } while (0)
|
||||
#define LED_TX_ON() do { LED_PORT |= _BV(1); } while (0)
|
||||
#define LED_TX_OFF() do { LED_PORT &= ~_BV(1); } while (0)
|
||||
|
||||
#define LED_RX_INIT() do { LED_DDR |= _BV(2); } while (0)
|
||||
#define LED_RX_ON() do { LED_PORT |= _BV(2); } while (0)
|
||||
#define LED_RX_OFF() do { LED_PORT &= ~_BV(2); } while (0)
|
||||
|
||||
void AFSK_init(Afsk *afsk);
|
||||
void AFSK_adc_init(void);
|
||||
void AFSK_dac_init(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue