microbit: Code Structure Cleanup

Create subdirectories for assembler code and BLE specific functionality
master
Joe Finney 7 years ago
parent 8e1a15c79f
commit 574b408cd1
  1. 14
      source/CMakeLists.txt
  2. 0
      source/asm/CortexContextSwitch.s.armcc
  3. 0
      source/asm/CortexContextSwitch.s.gcc
  4. 0
      source/ble-services/MicroBitDFUService.cpp
  5. 0
      source/ble-services/MicroBitEventService.cpp

@ -14,12 +14,10 @@ set(YOTTA_AUTO_MICROBIT-DAL_CPP_FILES
"MicroBitButton.cpp"
"MicroBitMessageBus.cpp"
"MicroBitCompass.cpp"
"MicroBitEventService.cpp"
"MicroBitEvent.cpp"
"MicroBitFiber.cpp"
"ManagedString.cpp"
"MicroBitAccelerometer.cpp"
"MicroBitDFUService.cpp"
"MicroBitIO.cpp"
"MicroBitCompat.cpp"
"MicroBitImage.cpp"
@ -28,6 +26,8 @@ set(YOTTA_AUTO_MICROBIT-DAL_CPP_FILES
"MicroBitPin.cpp"
"MicroBitSerial.cpp"
"MicroBitHeapAllocator.cpp"
"ble-services/MicroBitDFUService.cpp"
"ble-services/MicroBitEventService.cpp"
)
if (YOTTA_CFG_MICROBIT_CONFIGFILE)
@ -35,15 +35,15 @@ if (YOTTA_CFG_MICROBIT_CONFIGFILE)
endif ()
if(CMAKE_COMPILER_IS_GNUCC)
file(REMOVE "CortexContextSwitch.s")
configure_file("CortexContextSwitch.s.gcc" "CortexContextSwitch.s" COPYONLY)
file(REMOVE "asm/CortexContextSwitch.s")
configure_file("asm/CortexContextSwitch.s.gcc" "asm/CortexContextSwitch.s" COPYONLY)
else()
file(REMOVE "CortexContextSwitch.s")
configure_file("CortexContextSwitch.s.armcc" "CortexContextSwitch.s" COPYONLY)
file(REMOVE "asm/CortexContextSwitch.s")
configure_file("asm/CortexContextSwitch.s.armcc" "asm/CortexContextSwitch.s" COPYONLY)
endif()
set(YOTTA_AUTO_MICROBIT-DAL_S_FILES
"CortexContextSwitch.s"
"asm/CortexContextSwitch.s"
)
add_library(microbit-dal

Loading…
Cancel
Save