use new gpio interface

This commit is contained in:
Mariano Alvira 2010-03-16 22:03:38 -04:00
parent c6012611ba
commit 35c9c66c23
12 changed files with 44 additions and 60 deletions

View file

@ -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