Skip to content

Commit

Permalink
add os-timer with etl
Browse files Browse the repository at this point in the history
  • Loading branch information
tzhu committed Mar 16, 2024
1 parent 298fe50 commit f0e42a7
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
cmake_minimum_required(VERSION 3.16)

add_subdirectory("protothreads")
add_subdirectory("etl")

# cd ./build && make test
enable_testing()

if (DEBUG)
SET(CMAKE_BUILD_TYPE "Debug")
message(STATUS "Build with debug mode")
else()
SET(CMAKE_BUILD_TYPE "Release")
message(STATUS "Build with release mode as default")
endif()

set( LIB_NAME pt_os_lib )

file( GLOB SRCS
Expand Down
9 changes: 9 additions & 0 deletions etl/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
include(FetchContent)

fetchcontent_declare(
etl
GIT_REPOSITORY https://github.com/ETLCPP/etl.git
GIT_TAG 20.38.10
)

FetchContent_MakeAvailable(etl)
1 change: 1 addition & 0 deletions os-timer.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "os_timer.h"
#include "pt-os.h"
#include "os_timer_port.h"
#include <etl/set.h>

constexpr int kMaxTimerItem = 16;

Expand Down

0 comments on commit f0e42a7

Please sign in to comment.