Set all GPIOs to 3.3V

This commit is contained in:
Jeremy Soller 2020-01-10 14:33:03 -07:00
parent b0fa0f004c
commit 9f57e03518
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1

View File

@ -21,6 +21,8 @@ void gpio_init() {
GCR = 0x04;
// Enable SMBus channel 4
GCR15 = (1 << 4);
// Set GPF2 and GPF3 to 3.3V
GCR20 = 0;
// Set GPIO data
GPDRA = 0;