microbit: Code Structure Cleanup
Create subdirectories for assembler code and BLE specific functionality
This commit is contained in:
parent
8e1a15c79f
commit
574b408cd1
5 changed files with 7 additions and 7 deletions
|
@ -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…
Add table
Reference in a new issue