Skip to content

Commit

Permalink
Issue 131: Add BNO055, RF430CL331H, update BME680, IS25xp (#132)
Browse files Browse the repository at this point in the history
- Add BNO055 and RF430CL331H source and header files and related code in boot.s and warp.h
- Add function to get state of BME680
- Add functions to push and release IS25xp from a deep power-down state
- Logic to push all components to sleep mode and wakeup modes --- have tested on Glaux revD and revE
* Decrease the stack_size in Cmakelist for Warp
* Set minimum sensors in config.h
* Uncommented error checks in IS25xP, , compiled Glaux and Warp, tested BME680 with and without FLASH on Glaux.
* Remove the extra warpPrint in WARP_BUILD_ENABLE_DEVBNO055 (boot.c)
* Reviewed code conventions for all sensors. Improve code style and whitespace improvements

---------

Co-authored-by: Orestis Kaparounakis <orestis.kapar@hotmail.com>
  • Loading branch information
HToshani and KomaGR authored Jul 30, 2024
1 parent 8266376 commit 224966e
Show file tree
Hide file tree
Showing 40 changed files with 1,426 additions and 601 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ warp:
cp src/boot/ksdk1.1.0/devSI7021.* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/devL3GD20H.* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/devBME680.* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/devRF430CL331H.* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/devBNO055.* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/devTCS34725.* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/devSI4705.* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/devCCS811.* build/ksdk1.1/work/demos/Warp/src/
Expand Down Expand Up @@ -67,6 +69,8 @@ glaux:
cp src/boot/ksdk1.1.0/CMakeLists-Glaux.txt build/ksdk1.1/work/demos/Glaux/armgcc/Glaux/CMakeLists.txt
cp src/boot/ksdk1.1.0/devIS25xP.* build/ksdk1.1/work/demos/Glaux/src/
cp src/boot/ksdk1.1.0/devRV8803C7.* build/ksdk1.1/work/demos/Glaux/src/
cp src/boot/ksdk1.1.0/devRF430CL331H.* build/ksdk1.1/work/demos/Glaux/src/
cp src/boot/ksdk1.1.0/devBNO055.* build/ksdk1.1/work/demos/Glaux/src/
cp src/boot/ksdk1.1.0/devBME680.* build/ksdk1.1/work/demos/Glaux/src/
cp src/boot/ksdk1.1.0/devADXL362.h build/ksdk1.1/work/demos/Glaux/src/
cp src/boot/ksdk1.1.0/devAMG8834.h build/ksdk1.1/work/demos/Glaux/src/
Expand Down
2 changes: 1 addition & 1 deletion setup.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
JLINKPATH = <full path to JLink binary>
ARMGCC_DIR = /usr/
ARMGCC_DIR = /usr/
2 changes: 2 additions & 0 deletions src/boot/ksdk1.1.0/CMakeLists-Glaux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ ADD_EXECUTABLE(Glaux
"${ProjDirPath}/../../src/powermodes.c"
"${ProjDirPath}/../../src/devIS25xP.c"
"${ProjDirPath}/../../src/devBME680.c"
"${ProjDirPath}/../../src/devBNO055.c"
"${ProjDirPath}/../../src/devRF430CL331H.c"
"${ProjDirPath}/../../src/devRV8803C7.c"
"${ProjDirPath}/../../src/SEGGER_RTT.c"
"${ProjDirPath}/../../src/SEGGER_RTT_printf.c"
Expand Down
5 changes: 3 additions & 2 deletions src/boot/ksdk1.1.0/CMakeLists-Warp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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__=0x300 -Xlinker --defsym=__heap_size__=0x0")
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__=0x0")

# 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__=0x300 -Xlinker --defsym=__heap_size__=0x0")
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__=0x0")

# ASM MACRO
SET(CMAKE_ASM_FLAGS_DEBUG "${CMAKE_ASM_FLAGS_DEBUG} -DDEBUG")
Expand Down Expand Up @@ -91,6 +91,7 @@ ADD_EXECUTABLE(Warp
"${ProjDirPath}/../../src/errstrsEN.c"
"${ProjDirPath}/../../src/powermodes.c"
"${ProjDirPath}/../../src/devBMX055.c"
"${ProjDirPath}/../../src/devBNO055.c"
"${ProjDirPath}/../../src/devADXL362.c"
"${ProjDirPath}/../../src/devIS25xP.c"
"${ProjDirPath}/../../src/devISL23415.c"
Expand Down
Loading

0 comments on commit 224966e

Please sign in to comment.