Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci/platform mods #158

Open
wants to merge 65 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
434e997
chore: Adds configuration
ntlhui Nov 8, 2024
1e87b30
feat: Adds pc hal
ntlhui Nov 8, 2024
94e0e77
fix: Adds GPS includes
ntlhui Nov 13, 2024
1cdac32
fix: Adds dummy EEPROM
ntlhui Nov 13, 2024
eacf510
fix: Adds Timer dummy class
ntlhui Nov 13, 2024
b35a691
fix: Adds USARTSerial dummy class
ntlhui Nov 13, 2024
c204edf
fix: Adds functional include
ntlhui Nov 13, 2024
1de15cc
fix: Adds SPIClass dummy
ntlhui Nov 13, 2024
340a931
fix: Adds String dummy
ntlhui Nov 13, 2024
a372b9c
fix: renames getline to SF_OSAL_getline
ntlhui Nov 13, 2024
7b73d0d
fix: Adds LogLevel dummy
ntlhui Nov 13, 2024
39ae403
fix: Adds logger
ntlhui Nov 13, 2024
d47eaec
fix: Adds __SPISettings
ntlhui Nov 13, 2024
a5eb618
fix: Adds dummy classes
ntlhui Nov 13, 2024
43b8e25
fix: Adds System dummy
ntlhui Nov 13, 2024
4dd1d5e
fix: Adds dummy Serial
ntlhui Nov 13, 2024
8735504
fix: Adds dummy classes
ntlhui Nov 13, 2024
5eb9880
Update smartfin-fw3.ino
ntlhui Nov 13, 2024
0dad497
fix: Implements EEPROM
ntlhui Nov 13, 2024
5584ff9
fix: Adds flog and conio
ntlhui Nov 13, 2024
d926f65
fix Adds dummy
ntlhui Nov 13, 2024
d70a187
fix: Adds Particle
ntlhui Nov 13, 2024
17489a5
fix: Adds stdarg
ntlhui Nov 13, 2024
d82b475
fix: Adds Serial Write
ntlhui Nov 13, 2024
66670f1
fix: Adds system.cpp
ntlhui Nov 14, 2024
0360073
fix: Adds SPI for PC HAL
ntlhui Nov 14, 2024
b718051
fix: Adds dummies
ntlhui Nov 14, 2024
ef08445
fix: Disables recorder
ntlhui Nov 14, 2024
5041831
fix: Implements pin functions
ntlhui Nov 14, 2024
db7c473
fix: Adds LED
ntlhui Nov 14, 2024
3ac0640
fix: Implements LEDSystemTheme
ntlhui Nov 14, 2024
200d869
fix: Implements waterSensor
ntlhui Nov 14, 2024
dcdf943
fix: Implemented dummy location service
ntlhui Nov 14, 2024
4f1f1f8
fix: Adds LocationService dummy
ntlhui Nov 14, 2024
e923893
fix: Adds dummy modules
ntlhui Nov 14, 2024
14be8ff
fix: CRC and SHA256 only on Particle
ntlhui Nov 14, 2024
e13d7b3
fix: Updates deploy.cpp for PC HAL
ntlhui Nov 14, 2024
8712770
fix: Dummy I2C
ntlhui Nov 14, 2024
9769a34
fix: util compile
ntlhui Nov 14, 2024
5819e4f
fix: systemCommands compile
ntlhui Nov 14, 2024
9279017
fix: Adds debugCommands.cpp
ntlhui Nov 14, 2024
531fd5c
fix: Adds String methods
ntlhui Nov 14, 2024
913fa96
fix: Abstracted particle specific methods
ntlhui Nov 14, 2024
45d06d6
fix: IMU dummy
ntlhui Nov 14, 2024
2d099bc
fix: Adds dummy modules
ntlhui Nov 14, 2024
a24e36c
Merge branch 'main' into ci/platform_mods
ntlhui Dec 13, 2024
c4126e1
feat: Adds utils random
ntlhui Dec 13, 2024
5e06a56
Merge branch 'feat/platform_random' into ci/platform_mods
ntlhui Dec 13, 2024
044ef73
feat: Adds glibc implementation
ntlhui Dec 13, 2024
f23ba11
Merge branch 'feat/platform_random' into ci/platform_mods
ntlhui Dec 13, 2024
50f0538
fix: Adds location service getLocation
ntlhui Dec 13, 2024
45a69ef
fix: Adds fileCLI
ntlhui Dec 13, 2024
d8397fd
fix: Updates platform values
ntlhui Dec 14, 2024
b8b53ce
feat: Adds printf
ntlhui Dec 14, 2024
b94b282
docs: updates install
ntlhui Dec 20, 2024
376e21f
fix: Fixes docs
ntlhui Dec 20, 2024
2394444
docs: Adds gdb
ntlhui Dec 20, 2024
cb92f7a
feat: Switches getch
ntlhui Dec 20, 2024
278314f
fix: Adds sigint handlers
ntlhui Dec 21, 2024
5775273
chore: Encapsulates conio initialization
ntlhui Dec 21, 2024
6745b45
fix: Replaces kbhit
ntlhui Dec 21, 2024
a95d92f
fix: Replaces newline constant
ntlhui Dec 21, 2024
782972c
feat: Adds basic conio
ntlhui Dec 21, 2024
a80a3ad
Merge branch 'main' into ci/platform_mods
ntlhui Dec 21, 2024
5b40a24
fix: Removes unused function
ntlhui Dec 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@
"${workspaceFolder}\\src"
]
}
},
{
"name": "cmake",
"includePath": [
"${workspaceFolder}/src"
],
"cStandard": "c11",
"cppStandard": "c++11",
"configurationProvider": "ms-vscode.cmake-tools",
"mergeConfigurations": true
}
],
"version": 4
Expand Down
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.14)
project(SmartfinTests)
set(CMAKE_CXX_STANDARD 14)
project(Smartfin)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

add_subdirectory(external/googletest)
Expand All @@ -13,3 +13,4 @@ set(GTEST_SOURCE_FILES
add_executable(googletests ${GTEST_SOURCE_FILES})
target_link_libraries(googletests gtest gtest_main pthread)

add_subdirectory(pc_hal)
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,10 @@ Not charging and less than 10 ms have passed | No Change |
Not charging and at least 10 ms have passed | LED ON |

## Wet Dry LED
TODO
TODO

# Installation for for GCC
Run in a Linux environment

1. Install build-essentials and cmake, gdb
2. Ensure submodules are initialized and updated
52 changes: 52 additions & 0 deletions pc_hal/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
cmake_minimum_required(VERSION 3.14)
project(smartfin_pc)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(Threads REQUIRED)

include_directories(
.
../src/
../lib/tracker-edge/src
../lib/gps-ublox/src
../lib/gps-nmea-parser/src
../lib/gps-quectel/src
)

set(SMARTFIN_SOURCE_FILES
main.cpp
Particle_dummy.cpp
../src/cli/flog.cpp
../src/cli/conio.cpp
../src/system.cpp
../src/cellular/sf_cloud.cpp
../src/sleepTask.cpp
../src/cli/cli.cpp
../src/states.cpp
../src/mfgTest/mfgTest.cpp
../src/chargeTask.cpp
../src/cellular/dataUpload.cpp
../src/sys/NVRAM.cpp
../src/cellular/recorder.cpp
../src/sys/led.cpp
../src/watersensor/waterSensor.cpp
../src/temperature/max317275_cpp.cpp
../src/temperature/tmpSensor.cpp
../src/vers.cpp
../src/cellular/encoding/base64.c
../src/cli/menu.cpp
../src/cellular/deploy.cpp
../src/i2c/i2c.cpp
../src/util.cpp
../src/cli/menuItems/systemCommands.cpp
../src/cli/menuItems/debugCommands.cpp
../src/imu/imu.cpp
../src/cli/cliDebug.cpp
../src/cli/menuItems/gpsCommands.cpp
../src/debug/recorder_debug.cpp
../src/debug/session_debug.cpp
../src/fileCLI/fileCLI.cpp
)
add_executable(smartfin_pc ${SMARTFIN_SOURCE_FILES})
target_link_libraries(smartfin_pc Threads::Threads)
Loading
Loading