Skip to content

Commit 18193ab

Browse files
committed
Fix CY8CPROTO_062_4343W baremetal build
Make a Mbed library with Cypress WHD files so it is automatically excluded when building with the bare metal profile. Create another Mbed library to group network files that use WHD so they can also be excluded fro the bare metal profile.
1 parent c4a0808 commit 18193ab

File tree

8 files changed

+20
-0
lines changed

8 files changed

+20
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"name": "cy_psoc6_whd",
3+
"config": {
4+
"present": 1
5+
}
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"name": "cy_psoc6_common_network",
3+
"config": {
4+
"present": 1
5+
}
6+
}

targets/TARGET_Cypress/TARGET_PSOC6/mbed_overrides.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
#include "cyhal_hwmgr.h"
2222
#include "cybsp.h"
2323
#include "mbed_power_mgmt.h"
24+
#if MBED_CONF_RTOS_PRESENT
2425
#include "rtos_idle.h"
26+
#endif // MBED_CONF_RTOS_PRESENT
2527
#include "us_ticker_api.h"
2628

2729
#if defined(CY_ENABLE_XIP_PROGRAM)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"name": "cy_psoc6csp_rtos",
3+
"config": {
4+
"present": 1
5+
}
6+
}

0 commit comments

Comments
 (0)