use new gpio interface
This commit is contained in:
parent
c6012611ba
commit
35c9c66c23
12 changed files with 44 additions and 60 deletions
|
@ -10,12 +10,4 @@ void print_welcome(char* testname);
|
|||
void dump_regs(uint32_t base, uint32_t len);
|
||||
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