Select Git revision
file.c
-
Damien George authored
Each built-in exception is now a type, with base type BaseException. C exceptions are created by passing a pointer to the exception type to make an instance of. When raising an exception from the VM, an instance is created automatically if an exception type is raised (as opposed to an exception instance). Exception matching (RT_BINARY_OP_EXCEPTION_MATCH) is now proper. Handling of parse error changed to match new exceptions. mp_const_type renamed to mp_type_type for consistency.
Damien George authoredEach built-in exception is now a type, with base type BaseException. C exceptions are created by passing a pointer to the exception type to make an instance of. When raising an exception from the VM, an instance is created automatically if an exception type is raised (as opposed to an exception instance). Exception matching (RT_BINARY_OP_EXCEPTION_MATCH) is now proper. Handling of parse error changed to match new exceptions. mp_const_type renamed to mp_type_type for consistency.
micropython.cmake 1.06 KiB
# If you want to add dependencies on other ESP-IDF modules, add them to
# IDF_COMPONENTS in components/micropython/CMakeLists.txt, that is the component
# that the usermodules are actually part of.
add_library(usermod_badge23 INTERFACE)
target_sources(usermod_badge23 INTERFACE
${CMAKE_CURRENT_LIST_DIR}/mp_audio.c
${CMAKE_CURRENT_LIST_DIR}/mp_badgelink.c
${CMAKE_CURRENT_LIST_DIR}/mp_badgenet.c
${CMAKE_CURRENT_LIST_DIR}/mp_captouch.c
${CMAKE_CURRENT_LIST_DIR}/mp_imu.c
${CMAKE_CURRENT_LIST_DIR}/mp_leds.c
${CMAKE_CURRENT_LIST_DIR}/mp_sys_bl00mbox.c
${CMAKE_CURRENT_LIST_DIR}/mp_sys_buttons.c
${CMAKE_CURRENT_LIST_DIR}/mp_sys_display.c
${CMAKE_CURRENT_LIST_DIR}/mp_sys_kernel.c
${CMAKE_CURRENT_LIST_DIR}/mp_uctx.c
${CMAKE_CURRENT_LIST_DIR}/mp_media.c
${CMAKE_CURRENT_LIST_DIR}/mp_sys_mode.c
${CMAKE_CURRENT_LIST_DIR}/mp_sys_colors.c
${CMAKE_CURRENT_LIST_DIR}/mp_sys_scope.c
)
target_include_directories(usermod_badge23 INTERFACE
${CMAKE_CURRENT_LIST_DIR}
)
target_link_libraries(usermod INTERFACE usermod_badge23)