diff --git a/.gitignore b/.gitignore index 9fbc5c8..905d007 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ .visualgdb .vs +.vscode build *.user CMakeLists.txt.old pico-sdk +.DS_Store diff --git a/PicoHTTPServer/FreeRTOSConfig.h b/PicoHTTPServer/FreeRTOSConfig.h index a9f113b..d5ee33d 100644 --- a/PicoHTTPServer/FreeRTOSConfig.h +++ b/PicoHTTPServer/FreeRTOSConfig.h @@ -102,13 +102,17 @@ #define configMAX_API_CALL_INTERRUPT_PRIORITY [dependent on processor and application] */ -#if FREE_RTOS_KERNEL_SMP // set by the RP2040 SMP port of FreeRTOS +/* SMP Related config. */ +#define configUSE_PASSIVE_IDLE_HOOK 0 +#define portSUPPORT_SMP 1 + /* SMP port only */ +#define configNUMBER_OF_CORES 2 #define configNUM_CORES 2 #define configTICK_CORE 0 #define configRUN_MULTIPLE_PRIORITIES 1 #define configUSE_CORE_AFFINITY 1 -#endif + /* RP2040 specific */ #define configSUPPORT_PICO_SYNC_INTEROP 1 diff --git a/build-all.sh b/build-all.sh index ecdad90..487935a 100644 --- a/build-all.sh +++ b/build-all.sh @@ -5,7 +5,7 @@ cmake -S tools/SimpleFSBuilder -B tools/SimpleFSBuilder/build make -C tools/SimpleFSBuilder/build || exit 1 test -d pico-sdk || git clone --recursive https://github.com/raspberrypi/pico-sdk -test -d pico-sdk/FreeRTOS || git clone --recursive https://github.com/FreeRTOS/FreeRTOS-Kernel pico-sdk/FreeRTOS +test -d pico-sdk/FreeRTOS || git clone --recursive --branch main https://github.com/FreeRTOS/FreeRTOS-Kernel pico-sdk/FreeRTOS grep -e ip4_secondary_ip_address pico-sdk/lib/lwip/src/core/ipv4/ip4.c || patch -p1 -d pico-sdk/lib/lwip < lwip_patch/lwip.patch || (echo "Failed to apply patch" && exit 1)