Break out GPIO init into bits

This commit is contained in:
Jeremy Soller 2020-01-10 19:56:13 -07:00
parent fad6c6cbb3
commit 8bc24fb8de
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1

View File

@ -26,11 +26,11 @@ void gpio_init() {
// Set GPIO data
GPDRA = 0;
GPDRB = 0x18;
GPDRB = (1 << 4) | (1 << 3);
GPDRC = 0;
GPDRD = 0x38;
GPDRE = 0x08;
GPDRF = 0x40;
GPDRD = (1 << 5) | (1 << 4) | (1 << 3);
GPDRE = (1 << 3);
GPDRF = (1 << 6);
GPDRG = 0;
GPDRH = 0;
GPDRI = 0;