Change Details
atusb/fw/mac.c |
34 | 34 | static uint8_t next_seq, this_seq, queued_seq; |
35 | 35 | |
36 | 36 | |
| 37 | /* ----- Register access --------------------------------------------------- */ |
| 38 | |
| 39 | |
37 | 40 | static uint8_t reg_read(uint8_t reg) |
38 | 41 | { |
39 | 42 | uint8_t value; |
... | ... | |
56 | 59 | } |
57 | 60 | |
58 | 61 | |
| 62 | /* ----- Interrupt handling ------------------------------------------------ */ |
| 63 | |
| 64 | |
59 | 65 | static void receive_frame(void); |
60 | 66 | |
61 | 67 | |
... | ... | |
137 | 143 | } |
138 | 144 | |
139 | 145 | |
| 146 | /* ----- TX/RX ------------------------------------------------------------- */ |
| 147 | |
| 148 | |
140 | 149 | static void change_state(uint8_t new) |
141 | 150 | { |
142 | 151 | while ((reg_read(REG_TRX_STATUS) & TRX_STATUS_MASK) == |
Download the corresponding diff file