DonCon2040/libs/mcp3204/CMakeLists.txt
Frederik Walk 381d91e7bc Use DMA for reading external ADC
The external ADC will constantly convert, reading will give
the maximum value since the last read. This should avoid
missing any peaks.

The internal ADC will now only do one conversion upon read,
consider it abandoned for now.
2024-11-13 21:12:26 +01:00

11 lines
297 B
CMake

file(GLOB mcp3204_SOURCES src/*.cpp)
add_library(mcp3204 STATIC ${mcp3204_SOURCES})
target_include_directories(
mcp3204
PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include
PRIVATE ${CMAKE_CURRENT_LIST_DIR}/include/mcp3204)
target_link_libraries(mcp3204 PUBLIC pico_stdlib hardware_spi hardware_dma)