Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit94bda3b

Browse files
committed
Change nRF RTC implementation to use RTC2adafruit#1046
(to avoid interference with Bluetooth Softdevice. Seeadafruit#1534 (comment)with thanks to @bboser for pointing it out)
1 parent6afe23d commit94bda3b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

‎ports/nrf/common-hal/rtc/RTC.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
volatilestaticuint32_trtc_offset=0;
4545

46-
constnrfx_rtc_trtc_instance=NRFX_RTC_INSTANCE(0);
46+
constnrfx_rtc_trtc_instance=NRFX_RTC_INSTANCE(2);
4747

4848
constnrfx_rtc_config_trtc_config= {
4949
.prescaler=RTC_FREQ_TO_PRESCALER(RTC_CLOCK_HZ),

‎ports/nrf/nrfx_config.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@
7272

7373
#defineNRFX_RTC_ENABLED 1
7474
#defineNRFX_RTC0_ENABLED 1
75+
#defineNRFX_RTC1_ENABLED 1
76+
#defineNRFX_RTC2_ENABLED 1
7577

7678
// TIMERS
7779
#defineNRFX_TIMER_ENABLED 1

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp