Skip to content

Commit

Permalink
address build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vegano1 committed Jan 12, 2024
1 parent 8b85350 commit 36da0df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
17 changes: 6 additions & 11 deletions hepa-uv/firmware/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set(CAN_FW_DIR "${CMAKE_SOURCE_DIR}/can/firmware")
set(REVISIONS hepa-rev1)

# Add source files that should be checked by clang-tidy here
set(HEPAUV_FW_LINTABLE_SRCS
set(HEPA_UV_FW_LINTABLE_SRCS
${CMAKE_CURRENT_SOURCE_DIR}/freertos_idle_timer_task.cpp
${COMMON_EXECUTABLE_DIR}/system/iwdg.cpp
${CAN_FW_DIR}/hal_can_bus.cpp
Expand All @@ -31,20 +31,15 @@ set(HEPAUV_FW_NON_LINTABLE_SRCS
${COMMON_EXECUTABLE_DIR}/system/iwdg.c
)

set(HEPAUV_SRCS_A1
${HEPAUV_FW_LINTABLE_SRCS}
${HEPAUV_FW_NON_LINTABLE_SRCS}
${CMAKE_CURRENT_SOURCE_DIR}/main_proto.cpp
)
set(HEPAUV_SRCS_B1
${HEPAUV_FW_LINTABLE_SRCS}
${HEPA_UV_FW_LINTABLE_SRCS}
${HEPAUV_FW_NON_LINTABLE_SRCS}
${CMAKE_CURRENT_SOURCE_DIR}/main_rev1.cpp
)
set(HEPAUV_SRCS_C1 ${HEPAUV_SRCS_B1})
set(HEPAUV_SRCS_C2 ${HEPAUV_SRCS_C1})

macro(hepauv_loop)
macro(hepa_uv_loop)
set(_driver_suffix ${PROJECT_NAME}_${REVISION})
add_STM32G4_driver(${_driver_suffix})
add_STM32G4_freertos(${_driver_suffix})
Expand Down Expand Up @@ -84,10 +79,10 @@ foreach_revision(
PROJECT_NAME hepa-uv
REVISIONS b1
SOURCES HEPAUV_SRCS_B1
CALL_FOREACH_REV hepauv_loop)
CALL_FOREACH_REV hepa_uv_loop)

alias_for_revision(PROJECT_NAME hepa-uv REVISION b1 REVISION_ALIAS rev1)

add_clang_tidy_target(
TARGET_NAME hepa-lint
LINT_SOURCES ${HEPAUV_FW_LINTABLE_SRCS})
TARGET_NAME hepa-uv-lint
LINT_SOURCES ${HEPA_UV_FW_LINTABLE_SRCS})
1 change: 1 addition & 0 deletions hepa-uv/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ include(AddBuildAndTestTarget)
add_executable(
hepa-uv
test_main.cpp
test_leds.cpp
)

target_include_directories(hepa-uv PUBLIC ${CMAKE_SOURCE_DIR}/include)
Expand Down

0 comments on commit 36da0df

Please sign in to comment.