Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
D4-Embedded
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
D4-Furlough
D4-Embedded
Commits
995ea739
Commit
995ea739
authored
Mar 8, 2021
by
roaa1g19
Browse files
Options
Downloads
Patches
Plain Diff
V1.0.0 of WristBand Program - Should be first finalized and verified version
Signed-off-by:
Rodrigo Amaral
<
roaa1g19@soton.ac.uk
>
parent
8ead0e5f
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/rodGPS.hpp
+1
-1
1 addition, 1 deletion
include/rodGPS.hpp
src/main.cpp
+3
-12
3 additions, 12 deletions
src/main.cpp
with
4 additions
and
13 deletions
include/rodGPS.hpp
+
1
−
1
View file @
995ea739
...
...
@@ -6,7 +6,7 @@
/* #define GPS_I2C /* If defined I2C will be used instead of serial DEPRECATED */
/* #define GPS_NO_FILTER /* If defined, the GPS IC data isn't filtered and all of it is printed */
#define GPS_DEBUG_PRINT
/* If defined it activates GPS uart debug printing */
/*
#define GPS_DEBUG_PRINT /* If defined it activates GPS uart debug printing */
#ifdef GPS_I2C
#include
<Wire.h>
// Wire library - used for I2C communication
...
...
This diff is collapsed.
Click to expand it.
src/main.cpp
+
3
−
12
View file @
995ea739
...
...
@@ -10,7 +10,7 @@
#include
"soc/soc.h"
#include
"soc/rtc_cntl_reg.h"
#define DEBUG_PRINT
/* Debug printing trough uart if defined */
/*
#define DEBUG_PRINT /* Debug printing trough uart if defined */
//For testing
/*
...
...
@@ -24,25 +24,21 @@ void setup()
Serial
.
begin
(
115200
);
//while (!Serial){;} /*Used for native USB support */
#ifdef DEBUG_PRINT
Serial
.
println
(
"hello"
);
#endif
Wire
.
begin
();
Serial
.
println
(
"1"
);
esp_bredr_tx_power_set
(
ESP_PWR_LVL_N12
,
ESP_PWR_LVL_N12
);
WRITE_PERI_REG
(
RTC_CNTL_BROWN_OUT_REG
,
0
);
//Have this before bluetooth setup
_denisBluetooth_Setup
();
delay
(
500
);
//Just some delay to let bluetooth setup
WRITE_PERI_REG
(
RTC_CNTL_BROWN_OUT_REG
,
1
);
//Enable brownout detector
Serial
.
println
(
"2"
);
_rodGPs_Setup
();
Serial
.
println
(
"3"
);
_robADXL375_setup
();
Serial
.
println
(
"4"
);
HR_setup
();
Serial
.
println
(
"5"
);
initLCD
();
Serial
.
println
(
"6"
);
pinMode
(
26
,
OUTPUT
);
digitalWrite
(
26
,
1
);
...
...
@@ -68,7 +64,6 @@ void setup()
&
gpsThreadHandle
,
/* Task handle. */
0
);
/* Core where the task should run */
Serial
.
println
(
"1"
);
xTaskCreatePinnedToCore
(
stepCounterThread
,
/* Function to implement the task */
...
...
@@ -79,7 +74,6 @@ void setup()
&
stepCounterThreadHandle
,
/* Task handle. */
0
);
/* Core where the task should run */
Serial
.
println
(
"2"
);
xTaskCreatePinnedToCore
(
checkGamesStatusThread
,
/* Function to implement the task */
...
...
@@ -90,7 +84,6 @@ void setup()
&
checkGamesStatusThreadHandle
,
/* Task handle. */
0
);
/* Core where */
Serial
.
println
(
"3"
);
xTaskCreatePinnedToCore
(
HR_bpm_processing
,
/* Function to implement the task */
...
...
@@ -101,7 +94,6 @@ void setup()
&
bpmProcessingThreadHandle
,
/* Task handle. */
0
);
/* Core where the task should run */
Serial
.
println
(
"4"
);
xTaskCreatePinnedToCore
(
HR_bpm_reading
,
/* Function to implement the task */
...
...
@@ -112,7 +104,6 @@ void setup()
&
bpmReadingThreadHandle
,
/* Task handle. */
0
);
/* Core where the task should run */
Serial
.
println
(
"5"
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment