Skip to content

Commit

Permalink
Actually populate micropython.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Jul 20, 2023
1 parent e802c79 commit 3e354ea
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions firmware/PIMORONI_YUKON/micropython.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
set(PIMORONI_PICO_PATH ../../../../pimoroni-pico)
include(${CMAKE_CURRENT_LIST_DIR}/../pimoroni_pico_import.cmake)

include_directories(${PIMORONI_PICO_PATH}/micropython)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../../")
list(APPEND CMAKE_MODULE_PATH "${PIMORONI_PICO_PATH}/micropython")
list(APPEND CMAKE_MODULE_PATH "${PIMORONI_PICO_PATH}/micropython/modules")

# Enable support for string_view (for PicoGraphics)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)

# Essential
include(pimoroni_i2c/micropython)
include(pimoroni_bus/micropython)

# Sensors & Breakouts
include(micropython-common-breakouts)
include(pcf85063a/micropython)

# Utility
include(adcfft/micropython)

# Note: cppmem is *required* for C++ code to function on MicroPython
# it redirects `malloc` and `free` calls to MicroPython's heap
include(cppmem/micropython)

# version.py, pimoroni.py and boot.py
include(modules_py/modules_py)

0 comments on commit 3e354ea

Please sign in to comment.