Skip to content

Commit

Permalink
Include community board in cmake select (#599)
Browse files Browse the repository at this point in the history
  • Loading branch information
piwi1263 authored and josesimoes committed Feb 7, 2018
1 parent be484fe commit 2f33492
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMake/Modules/CHIBIOS_STM32F4xx_sources.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ foreach(SRC_FILE ${CHIBIOS_PORT_SRCS})
${CHIBIOS_BOARD} STREQUAL "NETDUINO3_WIFI" OR
${CHIBIOS_BOARD} STREQUAL "I2M_ELECTRON_NF" OR
${CHIBIOS_BOARD} STREQUAL "I2M_OXYGEN_NF" OR
${CHIBIOS_BOARD} STREQUAL "ST_NUCLEO64_F411RE_NF")
${CHIBIOS_BOARD} STREQUAL "ST_NUCLEO64_F411RE_NF" OR
${CHIBIOS_BOARD} STREQUAL "GHI_FEZ_CERB40_NF")
${PROJECT_BINARY_DIR}/ChibiOS_Source/os/hal/ports/STM32/LLD/I2Cv1
else()
${PROJECT_BINARY_DIR}/ChibiOS_Source/os/hal/ports/STM32/LLD/I2Cv2
Expand Down Expand Up @@ -108,7 +109,8 @@ if(${CHIBIOS_BOARD} STREQUAL "ST_STM32F429I_DISCOVERY" OR
${CHIBIOS_BOARD} STREQUAL "NETDUINO3_WIFI" OR
${CHIBIOS_BOARD} STREQUAL "I2M_ELECTRON_NF" OR
${CHIBIOS_BOARD} STREQUAL "I2M_OXYGEN_NF" OR
${CHIBIOS_BOARD} STREQUAL "ST_NUCLEO64_F411RE_NF")
${CHIBIOS_BOARD} STREQUAL "ST_NUCLEO64_F411RE_NF" OR
${CHIBIOS_BOARD} STREQUAL "GHI_FEZ_CERB40_NF")
list(APPEND CHIBIOS_INCLUDE_DIRS ${PROJECT_BINARY_DIR}/ChibiOS_Source/os/hal/ports/STM32/LLD/I2Cv1)
else()
list(APPEND CHIBIOS_INCLUDE_DIRS ${PROJECT_BINARY_DIR}/ChibiOS_Source/os/hal/ports/STM32/LLD/I2Cv2)
Expand Down

0 comments on commit 2f33492

Please sign in to comment.