1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-25 18:57:11 +02:00

atusb/fw/mac.c: add section titles

This commit is contained in:
Werner Almesberger 2013-07-23 12:50:42 -03:00
parent 172208e451
commit 6416fa8d0b

View File

@ -34,6 +34,9 @@ static bool queued_rx = 0;
static uint8_t next_seq, this_seq, queued_seq;
/* ----- Register access --------------------------------------------------- */
static uint8_t reg_read(uint8_t reg)
{
uint8_t value;
@ -56,6 +59,9 @@ static void reg_write(uint8_t reg, uint8_t value)
}
/* ----- Interrupt handling ------------------------------------------------ */
static void receive_frame(void);
@ -137,6 +143,9 @@ static bool handle_irq(void)
}
/* ----- TX/RX ------------------------------------------------------------- */
static void change_state(uint8_t new)
{
while ((reg_read(REG_TRX_STATUS) & TRX_STATUS_MASK) ==