Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eae65e2

Browse files
‘RFduino’‘RFduino’
‘RFduino’
authored and
‘RFduino’
committed
analogRead/GZLL power consumption; updated README
1 parent e108dc5 commit eae65e2

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
CHANGELOG
22

3+
v 2.2.1
4+
- Resolved power consumption issues with ULP and analogRead/GZLL.
5+
- Update documentation with better specifics as to where you put folder
6+
(thanks Helen Holmes).
7+
38
v 2.2
49
- Support for nonconnectable advertisement
510
- Corrected temperature comments (thanks DasBasti).

cores/arduino/wiring_analog.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ uint32_t analogRead(uint32_t ulPin)
117117
ulValue = NRF_ADC->RESULT; // Read the value
118118
ulValue = mapResolution(ulValue, ADC_RESOLUTION, _readResolution);
119119
NRF_ADC->ENABLE = (ADC_ENABLE_ENABLE_Disabled << ADC_ENABLE_ENABLE_Pos); // Disable ADC
120+
NRF_ADC->TASKS_STOP = 1;
120121
// GPIOs release regarding PAN028
121122
NRF_ADC->CONFIG = (ADC_CONFIG_RES_8bit << ADC_CONFIG_RES_Pos) |
122123
(ADC_CONFIG_INPSEL_SupplyTwoThirdsPrescaling << ADC_CONFIG_INPSEL_Pos) |

libraries/RFduinoGZLL/RFduinoGZLL.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ int RFduinoGZLLClass::begin(device_t device)
6868
void RFduinoGZLLClass::end()
6969
{
7070
RFduinoGZLL_end();
71+
NRF_RADIO->TASKS_RSSISTOP = 1;
7172
}
7273

7374
bool RFduinoGZLLClass::sendToHost(const char *data, int len)

0 commit comments

Comments
 (0)