Skip to content

Commit

Permalink
Merge pull request #15195 from ATmobica/cypress_cm0p_sleep_disable
Browse files Browse the repository at this point in the history
Add option to disable CM0P_SLEEP component for Cypress targets
  • Loading branch information
0xc0170 authored Dec 21, 2021
2 parents 7a6262c + 6a5cc40 commit 149c5b1
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 15 deletions.
18 changes: 10 additions & 8 deletions targets/TARGET_Cypress/TARGET_PSOC6/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,16 @@ target_sources(mbed-cm0p-secure
psoc6cm0p/COMPONENT_CM0P_SECURE/psoc6_03_cm0p_secure.c
)

add_library(mbed-cm0p-sleep INTERFACE)
target_sources(mbed-cm0p-sleep
INTERFACE
psoc6cm0p/COMPONENT_CM0P_SLEEP/psoc6_01_cm0p_sleep.c
psoc6cm0p/COMPONENT_CM0P_SLEEP/psoc6_02_cm0p_sleep.c
psoc6cm0p/COMPONENT_CM0P_SLEEP/psoc6_03_cm0p_sleep.c
psoc6cm0p/COMPONENT_CM0P_SLEEP/psoc6_04_cm0p_sleep.c
)
if("CM0P_SLEEP" IN_LIST MBED_TARGET_LABELS)
add_library(mbed-cm0p-sleep INTERFACE)
target_sources(mbed-cm0p-sleep
INTERFACE
psoc6cm0p/COMPONENT_CM0P_SLEEP/psoc6_01_cm0p_sleep.c
psoc6cm0p/COMPONENT_CM0P_SLEEP/psoc6_02_cm0p_sleep.c
psoc6cm0p/COMPONENT_CM0P_SLEEP/psoc6_03_cm0p_sleep.c
psoc6cm0p/COMPONENT_CM0P_SLEEP/psoc6_04_cm0p_sleep.c
)
endif()

add_library(mbed-udb-sdio-p12 INTERFACE)
target_include_directories(mbed-udb-sdio-p12
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,16 @@ target_link_libraries(mbed-cy8ckit-062s2-43012
mbed-cat1a
mbed-cy8ckit-062s2-43012-cm4
mbed-cy8ckit-062s2-43012-bsp-design-modus
mbed-cm0p-sleep
mbed-psoc6
)

if("CM0P_SLEEP" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cy8ckit-062s2-43012
INTERFACE
mbed-cm0p-sleep
)
endif()

if("WHD" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cy8ckit-062s2-43012
INTERFACE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,16 @@ target_link_libraries(mbed-cy8ckit-062-ble
mbed-cat1a
mbed-cy8ckit-062-ble-cm4
mbed-cy8ckit-062-ble-bsp-design-modus
mbed-cm0p-sleep
mbed-psoc6
)

if("CM0P_SLEEP" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cy8ckit-062-ble
INTERFACE
mbed-cm0p-sleep
)
endif()

target_compile_definitions(mbed-cy8ckit-062-ble
INTERFACE
"CY8C6347BZI_BLD53"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,17 @@ target_link_libraries(mbed-cy8ckit-062-wifi-bt
mbed-cat1a
mbed-cy8ckit-062-wifi-bt-cm4
mbed-cy8ckit-062-wifi-bt-bsp-design-modus
mbed-cm0p-sleep
mbed-psoc6
mbed-udb-sdio-p12
)

if("CM0P_SLEEP" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cy8ckit-062-wifi-bt
INTERFACE
mbed-cm0p-sleep
)
endif()

if("WHD" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cy8ckit-062-wifi-bt
INTERFACE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,17 @@ target_link_libraries(mbed-cy8cproto-062s3-4343w
mbed-cat1a
mbed-cy8cproto-062s3-4343w-cm4
mbed-cy8cproto-062s3-4343w-bsp-design-modus
mbed-cm0p-sleep
mbed-psoc6
mbed-cy-external-wifi-fw
)

if("CM0P_SLEEP" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cy8cproto-062s3-4343w
INTERFACE
mbed-cm0p-sleep
)
endif()

if("WHD" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cy8cproto-062s3-4343w
INTERFACE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,16 @@ target_link_libraries(mbed-cy8cproto-062-4343w
mbed-cat1a
mbed-cy8cproto-062-4343w-cm4
mbed-cy8cproto-062-4343w-bsp-design-modus
mbed-cm0p-sleep
mbed-psoc6
)

if("CM0P_SLEEP" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cy8cproto-062-4343w
INTERFACE
mbed-cm0p-sleep
)
endif()

if("WHD" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cy8cproto-062-4343w
INTERFACE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,17 @@ target_link_libraries(mbed-cyw9p62s1-43012evb-01
mbed-cat1a
mbed-cyw9p62s1-43012evb-01-cm4
mbed-cyw9p62s1-43012evb-01-bsp-design-modus
mbed-cm0p-sleep
mbed-psoc6
mbed-udb-sdio-p12
)

if("CM0P_SLEEP" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cyw9p62s1-43012evb-01
INTERFACE
mbed-cm0p-sleep
)
endif()

if("WHD" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cyw9p62s1-43012evb-01
INTERFACE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,17 @@ target_link_libraries(mbed-cyw9p62s1-43438evb-01
mbed-cat1a
mbed-cyw9p62s1-43438evb-01-cm4
mbed-cyw9p62s1-43438evb-01-bsp-design-modus
mbed-cm0p-sleep
mbed-psoc6
mbed-udb-sdio-p2
)

if("CM0P_SLEEP" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cyw9p62s1-43438evb-01
INTERFACE
mbed-cm0p-sleep
)
endif()

if("WHD" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cyw9p62s1-43438evb-01
INTERFACE
Expand Down

0 comments on commit 149c5b1

Please sign in to comment.