mirror of
https://github.com/polpo/picogus.git
synced 2026-10-25 21:40:16 +00:00
WIP
This commit is contained in:
1 parent
11d26f19af
commit
9bfeb41c8b
4 files changed
+17
-4
No files matched your search
@@ -193,6 +193,13 @@
|
||||
"zones_allow_external_fillets": false,
|
||||
"zones_use_no_outline": true
|
||||
},
|
||||
"ipc2581": {
|
||||
"dist": "",
|
||||
"distpn": "",
|
||||
"internal_id": "",
|
||||
"mfg": "",
|
||||
"mpn": ""
|
||||
},
|
||||
"layer_presets": [],
|
||||
"viewports": []
|
||||
},
|
||||
@@ -518,8 +525,11 @@
|
||||
"gencad": "",
|
||||
"idf": "",
|
||||
"netlist": "",
|
||||
"plot": "",
|
||||
"pos_files": "",
|
||||
"specctra_dsn": "",
|
||||
"step": "PicoGUS chipdown.step",
|
||||
"svg": "",
|
||||
"vrml": ""
|
||||
},
|
||||
"page_layout_descr_file": ""
|
||||
|
||||
+1
-1
@@ -110,7 +110,7 @@ void saveSettings(const Settings* settings)
|
||||
static_assert(sizeof(Settings) < FLASH_PAGE_SIZE, "Settings struct doesn't fit inside one flash page");
|
||||
memcpy(data, settings, sizeof(Settings));
|
||||
printf("doing settings save: ");
|
||||
int result = flash_safe_execute(saveSettingsSafe, data, 100);
|
||||
int result = flash_safe_execute(saveSettingsSafe, data, 1000);
|
||||
if (result) {
|
||||
printf("uh oh... %d", result);
|
||||
}
|
||||
|
||||
@@ -25,4 +25,6 @@ target_link_libraries(ne2000 INTERFACE
|
||||
# target_compile_definitions(ne2000 INTERFACE
|
||||
# CYW43_LWIP=0
|
||||
# )
|
||||
|
||||
target_compile_definitions(ne2000 INTERFACE
|
||||
# PICO_CYW43_ARCH_POLL=1
|
||||
)
|
||||
+3
-2
@@ -48,6 +48,7 @@ extern uint LED_PIN;
|
||||
|
||||
static uint32_t Wifi_Reconnect_EventHandler(Bitu val) {
|
||||
PG_Wifi_Reconnect();
|
||||
putchar('=');
|
||||
return 1000000;
|
||||
}
|
||||
static PIC_TimerEvent Wifi_Reconnect_Event = {
|
||||
@@ -61,7 +62,7 @@ void play_ne2000() {
|
||||
PG_Wifi_Connect(settings.WiFi.ssid, settings.WiFi.password);
|
||||
|
||||
while(1) {
|
||||
PIC_AddEvent(&Wifi_Reconnect_Event, 1000000, 0);
|
||||
// PIC_AddEvent(&Wifi_Reconnect_Event, 1000000, 0);
|
||||
if (multicore_fifo_rvalid()) {
|
||||
switch(multicore_fifo_pop_blocking()) {
|
||||
case FIFO_NE2K_SEND:
|
||||
@@ -74,6 +75,6 @@ void play_ne2000() {
|
||||
break;
|
||||
}
|
||||
}
|
||||
/* cyw43_arch_poll(); */
|
||||
cyw43_arch_poll();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user