diff options
author | Leo C | 2014-11-25 10:47:55 +0100 |
---|---|---|
committer | Leo C | 2014-11-25 10:47:55 +0100 |
commit | c79c80b49dcde54add2e9ba323c9d07033723f52 (patch) | |
tree | fbf980c28880e9ed948d8d21feb8d98707d28eda /avr/main.c | |
parent | 1222f338a23212010c7e2d0d7c3a2861e42fa8df (diff) | |
download | z180-stamp-c79c80b49dcde54add2e9ba323c9d07033723f52.zip |
Enable pullups on all gpio pins. cleanup
Diffstat (limited to 'avr/main.c')
-rw-r--r-- | avr/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -19,6 +19,7 @@ #include "env.h" #include "z180-serv.h" #include "spi.h" +#include "gpio.h" static uint8_t mcusr; @@ -229,7 +230,8 @@ int main(void) { setup_avr(); z80_setup_bus(); - + for (int i = 0; i < GPIO_MAX; i++) + gpio_config(i, INPUT_PULLUP); env_init(); if (reset_reason_is_power_on()) |