Skip to content

Update FreeRTOS to SMP branch #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.visualgdb
.vs
.vscode
build
*.user
CMakeLists.txt.old
pico-sdk
.DS_Store
8 changes: 6 additions & 2 deletions PicoHTTPServer/FreeRTOSConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down