Skip to content
Permalink
Browse files

LabAPart/MicroPython: Add Nordic's NUS support

  • Loading branch information...
oliviermartin committed Feb 26, 2017
1 parent f490120 commit 296487c9458b34bc2d7bc192fefb93a6681ad7cb
@@ -28,6 +28,17 @@
set(FIRMWARE_HEAP 0x2000)

if (BOARD STREQUAL "Nordic/nRF52DK")
if (NORDIC_NUS)
# Required by buttons_leds_init()
add_definitions(-DGPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS=4)

# This example requires BLE Peripheral support
set(SUPPORT_BLE_PERIPHERAL 1)

# RAM Memory requires by Nordic SoftDevice
set(NORDIC_SOFTDEVICE_RAM_SIZE 0x2080)
endif()

set(SUPPORT_I2C 1)
endif()

@@ -31,6 +31,15 @@ find_package(CMSIS)
find_package(PolyMCU)
find_package(MicroPython)

include_directories(.)

set(Firmware_SRCS main.c)

if (BOARD MATCHES "Nordic/*")
if (NORDIC_NUS)
list(APPEND Firmware_SRCS board/nordic/nordic.c)
endif()
endif()

set(Firmware_LIBS ${Board_LIBRARIES} ${PolyMCU_LIBRARIES} ${MicroPython_LIBRARIES})
BUILD_FIRMWARE(Firmware micropython "${Firmware_SRCS}" "${Firmware_LIBS}")
Oops, something went wrong.

0 comments on commit 296487c

Please sign in to comment.
You can’t perform that action at this time.