-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove serial debugging saves about 20k
- Loading branch information
Showing
5 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Standard behavior must be included here | ||
SOURCE_PATH=/Users/cermak/Documents/src/fwtests | ||
INCLUDE_DIRS += $(SOURCE_PATH)/$(USRSRC) # add user sources to include path | ||
CPPSRC += $(call target_files,$(USRSRC_SLASH),*.cpp) | ||
CSRC += $(call target_files,$(USRSRC_SLASH),*.c) | ||
|
||
APPSOURCES=$(call target_files,$(USRSRC_SLASH),*.cpp) | ||
APPSOURCES+=$(call target_files,$(USRSRC_SLASH),*.c) | ||
|
||
# Custom stuff can be added here | ||
INCLUDE_DIRS += $(SOURCE_PATH)/inc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Particle firmware tests | ||
// What structures to we have access to in the Particle firmware. | ||
|
||
#include "application.h" | ||
|
||
time_t testtime_t; | ||
int runonce = 0; | ||
|
||
void setup() { | ||
Serial.begin(9600); | ||
|
||
testtime_t = Time.now(); | ||
|
||
} | ||
|
||
void loop() { | ||
if (runonce == 0) { | ||
Serial.printlnf("time_t = %d", testtime_t); | ||
runonce = 1; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters