Skip to content

Commit

Permalink
Merge pull request #10 from physical-computation/issue-8
Browse files Browse the repository at this point in the history
Issue 8
  • Loading branch information
phillipstanleymarbell authored Oct 18, 2018
2 parents 8ddef27 + d7028af commit fbcc0c0
Show file tree
Hide file tree
Showing 48 changed files with 4,859 additions and 2,944 deletions.
17 changes: 17 additions & 0 deletions build/ksdk1.1/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,23 @@
cp ../../src/boot/ksdk1.1.0/warp-kl03-ksdk1.1-boot.c work/demos/Warp/src/
cp ../../src/boot/ksdk1.1.0/warp-kl03-ksdk1.1-powermodes.c work/demos/Warp/src/
cp ../../src/boot/ksdk1.1.0/warp.h work/demos/Warp/src/
cp ../../src/boot/ksdk1.1.0/devBMX055.* work/demos/Warp/src/
cp ../../src/boot/ksdk1.1.0/devADXL362.* work/demos/Warp/src/
cp ../../src/boot/ksdk1.1.0/devMMA8451Q.* work/demos/Warp/src/
cp ../../src/boot/ksdk1.1.0/devLPS25H.* work/demos/Warp/src/
cp ../../src/boot/ksdk1.1.0/devHDC1000.* work/demos/Warp/src/
cp ../../src/boot/ksdk1.1.0/devMAG3110.* work/demos/Warp/src/
cp ../../src/boot/ksdk1.1.0/devSI7021.* work/demos/Warp/src/
cp ../../src/boot/ksdk1.1.0/devL3GD20H.* work/demos/Warp/src/
cp ../../src/boot/ksdk1.1.0/devBME680.* work/demos/Warp/src/
cp ../../src/boot/ksdk1.1.0/devTCS34725.* work/demos/Warp/src/
cp ../../src/boot/ksdk1.1.0/devSI4705.* work/demos/Warp/src/
cp ../../src/boot/ksdk1.1.0/devCCS811.* work/demos/Warp/src/
cp ../../src/boot/ksdk1.1.0/devAMG8834.* work/demos/Warp/src/
cp ../../src/boot/ksdk1.1.0/devAS7262.* work/demos/Warp/src/
cp ../../src/boot/ksdk1.1.0/devAS7263.* work/demos/Warp/src/
cp ../../src/boot/ksdk1.1.0/devAS726x.* work/demos/Warp/src/
cp ../../src/boot/ksdk1.1.0/devPAN1326.* work/demos/Warp/src/
cp ../../src/boot/ksdk1.1.0/CMakeLists.txt work/demos/Warp/armgcc/Warp/
cp ../../src/boot/ksdk1.1.0/startup_MKL03Z4.S work/platform/startup/MKL03Z4/gcc/startup_MKL03Z4.S
cp ../../src/boot/ksdk1.1.0/gpio_pins.c work/boards/Warp
Expand Down
22 changes: 19 additions & 3 deletions src/boot/ksdk1.1.0/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ SET(CMAKE_STATIC_LIBRARY_SUFFIX)
SET(CMAKE_EXECUTABLE_LIBRARY_PREFIX)
SET(CMAKE_EXECUTABLE_LIBRARY_SUFFIX)


# CURRENT DIRECTORY
SET(ProjDirPath ${CMAKE_CURRENT_SOURCE_DIR})

Expand All @@ -34,7 +34,7 @@ SET(CMAKE_ASM_FLAGS_DEBUG "${CMAKE_ASM_FLAGS_DEBUG} -g -mcpu=cortex-m0plus -mt
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g -mcpu=cortex-m0plus -mthumb -MMD -MP -Wall -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -Os -mapcs -std=gnu99 -fshort-enums")

# DEBUG LD FLAGS
SET(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} -g --specs=nano.specs -lm -Wall -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -Os -mthumb -mapcs -Xlinker --gc-sections -Xlinker -static -Xlinker -z -Xlinker muldefs -Xlinker --defsym=__stack_size__=0x200 -Xlinker --defsym=__heap_size__=0x100")
SET(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} -g --specs=nano.specs -lm -Wall -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -Os -mthumb -mapcs -Xlinker --gc-sections -Xlinker -static -Xlinker -z -Xlinker muldefs -Xlinker --defsym=__stack_size__=0x200 -Xlinker --defsym=__heap_size__=0x50")

# RELEASE ASM FLAGS
SET(CMAKE_ASM_FLAGS_RELEASE "${CMAKE_ASM_FLAGS_RELEASE} -mcpu=cortex-m0plus -mthumb -Wall -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -Os -mapcs -std=gnu99")
Expand All @@ -43,7 +43,7 @@ SET(CMAKE_ASM_FLAGS_RELEASE "${CMAKE_ASM_FLAGS_RELEASE} -mcpu=cortex-m0plus -mt
SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -mcpu=cortex-m0plus -mthumb -MMD -MP -Wall -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -Os -mapcs -std=gnu99 -fshort-enums")

# RELEASE LD FLAGS
SET(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} --specs=nano.specs -lm -Wall -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -Os -mthumb -mapcs -Xlinker --gc-sections -Xlinker -static -Xlinker -z -Xlinker muldefs -Xlinker --defsym=__stack_size__=0x200 -Xlinker --defsym=__heap_size__=0x100")
SET(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} --specs=nano.specs -lm -Wall -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -Os -mthumb -mapcs -Xlinker --gc-sections -Xlinker -static -Xlinker -z -Xlinker muldefs -Xlinker --defsym=__stack_size__=0x200 -Xlinker --defsym=__heap_size__=0x50")

# ASM MACRO
SET(CMAKE_ASM_FLAGS_DEBUG "${CMAKE_ASM_FLAGS_DEBUG} -DDEBUG")
Expand Down Expand Up @@ -89,6 +89,22 @@ ADD_EXECUTABLE(Warp
"${ProjDirPath}/../../../../platform/startup/MKL03Z4/gcc/startup_MKL03Z4.S"
"${ProjDirPath}/../../src/warp-kl03-ksdk1.1-boot.c"
"${ProjDirPath}/../../src/warp-kl03-ksdk1.1-powermodes.c"
"${ProjDirPath}/../../src/devBMX055.c"
"${ProjDirPath}/../../src/devADXL362.c"
"${ProjDirPath}/../../src/devMMA8451Q.c"
"${ProjDirPath}/../../src/devLPS25H.c"
"${ProjDirPath}/../../src/devHDC1000.c"
"${ProjDirPath}/../../src/devMAG3110.c"
"${ProjDirPath}/../../src/devSI7021.c"
"${ProjDirPath}/../../src/devL3GD20H.c"
"${ProjDirPath}/../../src/devBME680.c"
"${ProjDirPath}/../../src/devTCS34725.c"
"${ProjDirPath}/../../src/devSI4705.c"
"${ProjDirPath}/../../src/devCCS811.c"
"${ProjDirPath}/../../src/devAMG8834.c"
"${ProjDirPath}/../../src/devPAN1326.c"
"${ProjDirPath}/../../src/devAS7262.c"
"${ProjDirPath}/../../src/devAS7263.c"
"${ProjDirPath}/../../src/SEGGER_RTT.c"
"${ProjDirPath}/../../src/SEGGER_RTT_printf.c"
"${ProjDirPath}/../../../../platform/drivers/src/i2c/fsl_i2c_irq.c"
Expand Down
Loading

0 comments on commit fbcc0c0

Please sign in to comment.