mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-25 20:14:40 +02:00
atusb/fw/mac.c: add section titles
This commit is contained in:
parent
172208e451
commit
6416fa8d0b
@ -34,6 +34,9 @@ static bool queued_rx = 0;
|
|||||||
static uint8_t next_seq, this_seq, queued_seq;
|
static uint8_t next_seq, this_seq, queued_seq;
|
||||||
|
|
||||||
|
|
||||||
|
/* ----- Register access --------------------------------------------------- */
|
||||||
|
|
||||||
|
|
||||||
static uint8_t reg_read(uint8_t reg)
|
static uint8_t reg_read(uint8_t reg)
|
||||||
{
|
{
|
||||||
uint8_t value;
|
uint8_t value;
|
||||||
@ -56,6 +59,9 @@ static void reg_write(uint8_t reg, uint8_t value)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* ----- Interrupt handling ------------------------------------------------ */
|
||||||
|
|
||||||
|
|
||||||
static void receive_frame(void);
|
static void receive_frame(void);
|
||||||
|
|
||||||
|
|
||||||
@ -137,6 +143,9 @@ static bool handle_irq(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* ----- TX/RX ------------------------------------------------------------- */
|
||||||
|
|
||||||
|
|
||||||
static void change_state(uint8_t new)
|
static void change_state(uint8_t new)
|
||||||
{
|
{
|
||||||
while ((reg_read(REG_TRX_STATUS) & TRX_STATUS_MASK) ==
|
while ((reg_read(REG_TRX_STATUS) & TRX_STATUS_MASK) ==
|
||||||
|
Loading…
Reference in New Issue
Block a user