Fix GPIO dump

This commit is contained in:
Jeremy Soller 2019-11-07 13:59:35 -07:00
parent b876b5e39c
commit 1c82fe11cd
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1

View File

@ -99,6 +99,13 @@ void gpio_init() {
GPCRJ5 = 0x40; GPCRJ5 = 0x40;
GPCRJ6 = 0x44; GPCRJ6 = 0x44;
GPCRJ7 = 0x80; GPCRJ7 = 0x80;
GPCRM0 = 0x00;
GPCRM1 = 0x00;
GPCRM2 = 0x00;
GPCRM3 = 0x00;
GPCRM4 = 0x00;
GPCRM5 = 0x00;
GPCRM6 = 0x00;
} }
void gpio_debug_bank( void gpio_debug_bank(
@ -122,7 +129,7 @@ void gpio_debug_bank(
} }
void gpio_debug(void) { void gpio_debug(void) {
#define bank(BANK) gpio_debug_bank(#BANK, GPDR ## BANK, GPDMR ## BANK, GPOT ## BANK, &GPCRA0) #define bank(BANK) gpio_debug_bank(#BANK, GPDR ## BANK, GPDMR ## BANK, GPOT ## BANK, &GPCR ## BANK ## 0)
bank(A); bank(A);
bank(B); bank(B);
bank(C); bank(C);