[realtek-ambz2] Use external FreeRTOS port
This commit is contained in:
@@ -116,11 +116,6 @@ queue.AddLibrary(
|
||||
"+<os/freertos/freertos_service.c>",
|
||||
"+<os/os_dep/device_lock.c>",
|
||||
"+<os/os_dep/osdep_service.c>",
|
||||
# os - freertos
|
||||
"+<os/freertos/freertos_v10.0.1/Source/*.c>",
|
||||
# os - freertos - portable
|
||||
"+<os/freertos/freertos_v10.0.1/Source/portable/MemMang/heap_5.c>",
|
||||
"+<os/freertos/freertos_v10.0.1/Source/portable/GCC/ARM_RTL8710C/port.c>",
|
||||
# peripheral - api
|
||||
"+<common/mbed/targets/hal/rtl8710c/*.c>",
|
||||
# peripheral - hal
|
||||
@@ -157,8 +152,6 @@ queue.AddLibrary(
|
||||
"+<common/test>",
|
||||
"+<common/utilities>",
|
||||
"+<os/freertos>",
|
||||
"+<os/freertos/freertos_v10.0.1/Source/include>",
|
||||
"+<os/freertos/freertos_v10.0.1/Source/portable/GCC/ARM_RTL8710C>",
|
||||
"+<os/os_dep/include>",
|
||||
"+<soc/realtek/8710c/app/rtl_printf/include>",
|
||||
"+<soc/realtek/8710c/app/stdio_port>",
|
||||
@@ -191,6 +184,11 @@ queue.AddLibrary(
|
||||
),
|
||||
)
|
||||
|
||||
# Sources - FreeRTOS
|
||||
env.Replace(FREERTOS_PORT=env["FAMILY_NAME"], FREERTOS_PORT_DEFINE="REALTEK_AMBZ2")
|
||||
queue.AddExternalLibrary("freertos")
|
||||
queue.AddExternalLibrary("freertos-port")
|
||||
|
||||
# Sources - network utilities
|
||||
queue.AddLibrary(
|
||||
name="ambz2_net",
|
||||
|
||||
11
cores/realtek-ambz2/base/fixups/rtl8710c_freertos_pmu.h
Normal file
11
cores/realtek-ambz2/base/fixups/rtl8710c_freertos_pmu.h
Normal file
@@ -0,0 +1,11 @@
|
||||
/* Copyright (c) Kuba Szczodrzyński 2023-05-23. */
|
||||
|
||||
#include <basic_types.h>
|
||||
|
||||
// rtl8710c_freertos_pmu.h needs the u32/u16/u8 integer typedefs,
|
||||
// so it relies on the caller (freertos_pmu.c) to provide these,
|
||||
// which relies on FreeRTOS.h to include FreeRTOSConfig.h,
|
||||
// which relies on diag.h included to get printf() functions,
|
||||
// which just happens to include basic_types.h as well,
|
||||
// and that's what makes the whole thing even compile
|
||||
#include_next "rtl8710c_freertos_pmu.h"
|
||||
@@ -43,6 +43,9 @@
|
||||
"version_prefix": true,
|
||||
"toolchains": {
|
||||
"any": "gccarmnoneeabi@~1.100301.0"
|
||||
},
|
||||
"libraries": {
|
||||
"freertos": "10.0.1"
|
||||
}
|
||||
},
|
||||
"framework-beken-bdk": {
|
||||
@@ -80,7 +83,7 @@
|
||||
},
|
||||
"library-freertos-port": {
|
||||
"type": "framework",
|
||||
"version": "https://github.com/libretiny-eu/library-freertos-port#2023.03.13"
|
||||
"version": "https://github.com/libretiny-eu/library-freertos-port#2023.05.23"
|
||||
},
|
||||
"library-flashdb": {
|
||||
"type": "framework",
|
||||
|
||||
Reference in New Issue
Block a user