LEDs now indicate bit position (instead of (1 << pos)) which is more
consistent with how everything else works
This commit is contained in:
parent
c218d1bffa
commit
4b17c144d0
13 changed files with 50 additions and 46 deletions
|
@ -9,6 +9,14 @@
|
|||
void uart1_init(uint16_t inc, uint16_t mod);
|
||||
void print_welcome(char* testname);
|
||||
void dump_regs(uint32_t base, uint32_t len);
|
||||
void print_packet(packet_t *p);
|
||||
void print_packet(volatile packet_t *p);
|
||||
|
||||
#define toggle_gpio0(x) do { \
|
||||
if(bit_is_set(*GPIO_DATA0,x)) { \
|
||||
*GPIO_DATA_RESET0 = (1 << x); \
|
||||
} else { \
|
||||
*GPIO_DATA_SET0 = (1 << x) ; \
|
||||
} \
|
||||
} while(0);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue