Skip to content

Commit b581b03

Browse files
authored
[apple2][cpm] move cpmTask to CPU0. It works again. (FujiNetWIFI#1043)
1 parent d65e789 commit b581b03

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

lib/device/iwm/cpm.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include "../runcpm/ccp.h" // ccp.h - Defines a simple internal CCP
2727
#endif
2828

29-
#define CPM_TASK_PRIORITY 20
29+
#define CPM_TASK_PRIORITY 10
3030

3131
static void cpmTask(void *arg)
3232
{
@@ -41,9 +41,6 @@ static void cpmTask(void *arg)
4141
memset(newname, 0, sizeof(newname));
4242
memset(fcbname, 0, sizeof(fcbname));
4343
memset(pattern, 0, sizeof(pattern));
44-
#ifdef ESP_PLATFORM // OS
45-
vTaskDelay(100);
46-
#endif
4744
_puts(CCPHEAD);
4845
_PatchCPM();
4946
_ccp();
@@ -106,7 +103,7 @@ void iwmCPM::iwm_open(iwm_decoded_cmd_t cmd)
106103
if (cpmTaskHandle == NULL)
107104
{
108105
Debug_printf("!!! STARTING CP/M TASK!!!\n");
109-
xTaskCreatePinnedToCore(cpmTask, "cpmtask", 32768, NULL, CPM_TASK_PRIORITY, &cpmTaskHandle, 1);
106+
xTaskCreatePinnedToCore(cpmTask, "cpmtask", 4096, this, CPM_TASK_PRIORITY, &cpmTaskHandle, 0);
110107
}
111108
}
112109
#endif
@@ -269,7 +266,7 @@ void iwmCPM::iwm_ctrl(iwm_decoded_cmd_t cmd)
269266
{
270267
break;
271268
}
272-
xTaskCreatePinnedToCore(cpmTask, "cpmtask", 32768, NULL, CPM_TASK_PRIORITY, &cpmTaskHandle, 1);
269+
xTaskCreatePinnedToCore(cpmTask, "cpmtask", 4096, this, CPM_TASK_PRIORITY, &cpmTaskHandle, 0);
273270
#endif
274271
}
275272
break;

0 commit comments

Comments
 (0)