wl.cmake 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. set(STM32_WL_TYPES
  2. WL54xx WL55xx WLE4xx WLE5xx WLE4xx WLE5xx WLE4xx WLE5xx
  3. )
  4. set(STM32_WL_TYPE_MATCH
  5. "WL54.." "WL55.." "WLE4.8" "WLE5.8" "WLE4.B" "WLE5.B" "WLE4.C" "WLE5.C"
  6. )
  7. set(STM32_WL_RAM_SIZES
  8. 64K 64K 20K 20K 48K 48K 64K 64K
  9. )
  10. set(STM32_WL_CCRAM_SIZES
  11. 0K 0K 0K 0K 0K 0K 0K 0K
  12. )
  13. set(STM32_WL_DUAL_CORE
  14. WL54xx WL55xx
  15. )
  16. stm32_util_create_family_targets(WL M4)
  17. target_compile_options(STM32::WL::M4 INTERFACE
  18. -mcpu=cortex-m4 -mfloat-abi=soft
  19. )
  20. target_link_options(STM32::WL::M4 INTERFACE
  21. -mcpu=cortex-m4 -mfloat-abi=soft
  22. )
  23. stm32_util_create_family_targets(WL M0PLUS)
  24. target_compile_options(STM32::WL::M0PLUS INTERFACE
  25. -mcpu=cortex-m0plus -mfloat-abi=soft
  26. )
  27. target_link_options(STM32::WL::M0PLUS INTERFACE
  28. -mcpu=cortex-m0plus -mfloat-abi=soft
  29. )
  30. function(stm32wl_get_device_cores DEVICE TYPE CORES)
  31. if(${TYPE} IN_LIST STM32_WL_DUAL_CORE)
  32. set(${CORES} M4 M0PLUS PARENT_SCOPE)
  33. else()
  34. set(${CORES} M4 PARENT_SCOPE)
  35. endif()
  36. endfunction()