File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments