Skip to content

Commit 5d442e9

Browse files
jeffpieptschak909
authored andcommitted
disable pull resistors on NMI pin 27
1 parent 9869a30 commit 5d442e9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pico/coco/main.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#define RWPIN 24
1616
// CLKPIN 25 - defined in cococart.pio
1717
// CTSPIN 26 - defined in cococart.pio
18+
#define NMIPIN 27
1819
#define ADDRWIDTH 16 // 64k address space
1920
// #define ROMWIDTH 14 // 16k cart rom space
2021
// #define DATAWIDTH 8
@@ -121,7 +122,7 @@ void initio()
121122
{
122123
const uint32_t addrmask = 0xffff << PINROMADDR;
123124
const uint32_t datamask = 0xff << PINROMDATA;
124-
const uint32_t ctrlmask = (1 << CLKPIN) | (1 << CTSPIN) | (1 << RWPIN);
125+
const uint32_t ctrlmask = (1 << CLKPIN) | (1 << CTSPIN) | (1 << RWPIN) | (1 << NMIPIN);
125126

126127
gpio_init_mask(addrmask | datamask | ctrlmask);
127128
gpio_set_dir_all_bits(0);
@@ -135,6 +136,7 @@ void initio()
135136
gpio_set_pulls(CTSPIN, true, false);
136137
gpio_disable_pulls(CLKPIN);
137138
gpio_disable_pulls(RWPIN);
139+
gpio_disable_pulls(NMIPIN);
138140
// gpio_set_pulls(BUGPIN, false, true);
139141

140142
}

0 commit comments

Comments
 (0)