Skip to content

Commit fbee85b

Browse files
committed
Correct typos in comments and documentation
1 parent 7b1e211 commit fbee85b

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

examples/PrimoDeepSleep/PrimoDeepSleep.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
Written by Chiara Ruggeri ([email protected])
55
66
This example for the Arduino Primo board shows how to use
7-
low power library to enter in power off mode and save power.
8-
This mode ensure the deepest power saving mode. If you need
7+
Arduino Low Power library to enter in power off mode and save power.
8+
This mode ensures the deepest power saving mode. If you need
99
a faster response from the board use standby function instead.
1010
1111
Please note that once exited from the deepest sleep mode the
1212
board will reset (so setup will be run again).
1313
1414
The functions enableWakeupFrom set the peripheral that will wake up
15-
the board. By calling it more than once you can choose more than
16-
a wakeup source.
15+
the board. By calling it more than once you can choose multiple
16+
wakeup sources.
1717
The board will be reset when it wakes up from power off.
1818
You can use wakeUpCause() function to find out what signals woke up
1919
the board if you use more than one wakeUpBy.. function.
@@ -27,7 +27,7 @@
2727
// Pin used to wakeup the board
2828
const int digitalPin = 10;
2929

30-
// Pin used in Compatarot module to wake up the board
30+
// Pin used in Comparator module to wake up the board
3131
const int analogPin = A0;
3232

3333

examples/TianStandby/TianStandby.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*
22
TianStandby
33
4-
This sketch demonstrates the usage of SAMD chip to furtherly reduce the power usage of Tian
4+
This sketch demonstrates the usage of SAMD chip to further reduce the power usage of the Tian
55
board. This method can be applied to any board with companion chips which expose a method
66
(via direct pin interrupt or via a command) to enter and exit standby.
7-
Sleep modes allow a significant drop in the power usage of a board while it does nothing waiting for an event to happen. Battery powered application can take advantage of these modes to enhance battery life significantly.
7+
Sleep modes allow a significant drop in the power usage of a board while it does nothing waiting for an event to happen. Battery powered applications can take advantage of these modes to enhance battery life significantly.
88
9-
In this sketch, the internal RTC of SAMD chip will wake up the processor every 20 seconds.
9+
In this sketch, the internal RTC of the SAMD chip will wake up the processor every 20 seconds.
1010
Before going to sleep, the SAMD chip tells the MIPS CPU to standby too.
1111
Please note that, if the processor is sleeping, a new sketch can't be uploaded. To overcome this, manually reset the board (usually with a single or double tap to the RESET button)
1212

keywords.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#######################################
2-
# Syntax Coloring Map For Energy Saving
2+
# Syntax Coloring Map For Arduino Low Power
33
#######################################
44

55
#######################################
@@ -30,4 +30,4 @@ wakeupReason KEYWORD2
3030
OTHER_WAKEUP LITERAL1
3131
GPIO_WAKEUP LITERAL1
3232
NFC_WAKEUP LITERAL1
33-
ANALOG_COMPARATOR_WAKEUP LITERAL1
33+
ANALOG_COMPARATOR_WAKEUP LITERAL1

src/nrf52/ArduinoLowPower.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void ArduinoLowPowerClass::deepSleep() {
6464
//this is achieved by disabling all peripheral that use it
6565
NRF_UARTE0->ENABLE = UARTE_ENABLE_ENABLE_Disabled; //disable UART
6666
NRF_SAADC ->ENABLE = (SAADC_ENABLE_ENABLE_Disabled << SAADC_ENABLE_ENABLE_Pos); //disable ADC
67-
NRF_PWM0 ->ENABLE = (PWM_ENABLE_ENABLE_Disabled << PWM_ENABLE_ENABLE_Pos); //disable all pwm instance
67+
NRF_PWM0 ->ENABLE = (PWM_ENABLE_ENABLE_Disabled << PWM_ENABLE_ENABLE_Pos); //disable all PWM instances
6868
NRF_PWM1 ->ENABLE = (PWM_ENABLE_ENABLE_Disabled << PWM_ENABLE_ENABLE_Pos);
6969
NRF_PWM2 ->ENABLE = (PWM_ENABLE_ENABLE_Disabled << PWM_ENABLE_ENABLE_Pos);
7070
NRF_TWIM1 ->ENABLE = (TWIM_ENABLE_ENABLE_Disabled << TWIM_ENABLE_ENABLE_Pos); //disable TWI Master
@@ -118,7 +118,7 @@ void ArduinoLowPowerClass::enableWakeupFrom(wakeup_reason peripheral, uint32_t p
118118
nrf_lpcomp_config_t config={(nrf_lpcomp_ref_t)event, (nrf_lpcomp_detect_t)mode};
119119
nrf_lpcomp_configure(&config);
120120
if(pin<14 && pin>19)
121-
return; //no analog pin is choosen
121+
return; //no analog pin was chosen
122122
nrf_lpcomp_input_select(aPin[pin-14]);
123123
nrf_lpcomp_enable();
124124
nrf_lpcomp_task_trigger(NRF_LPCOMP_TASK_START);

0 commit comments

Comments
 (0)