summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authordweller <dweller@cabin.digital>2024-10-17 23:54:11 +0300
committerdweller <dweller@cabin.digital>2024-10-17 23:54:11 +0300
commit1debb5cfd63bf690bf29e7a176d82ecb9743f274 (patch)
tree872df50cfea67aa8f09a5b0396734ba835d63ad7 /main.c
parent7224a1b49ec261c10bbe3cf7c1ab2506acaafb6b (diff)
fix GPIO init orderingHEADmaster
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index cda91b4..ff01e92 100644
--- a/main.c
+++ b/main.c
@@ -286,12 +286,12 @@ int main(void)
gpio_put(rom_pins[i], rom_pins_def[i]);
}
- readmode();
-
gpio_init(PIN_IO_OE);
gpio_set_dir(PIN_IO_OE, GPIO_OUT);
gpio_put(PIN_IO_OE, PIN_IO_OE_DEF);
+ readmode();
+
for(int i = 0; i < SR_PIN_CNT; i++)
{
gpio_init(sr_pins[i]);