Skip to content

Commit 20411ec

Browse files
committed
[DELTA_DFBM_NQ620] Add RC calibration setting and revise mbed_overrides.c
In targets.json, add lf_clock_rc_calib_timer_interval and lf_clock_rc_calib_mode_config setting which are essential when using BLE In mbed_overrides.c, create valuables instead of doing printf, those valuables are intended to be used for debugging in runtime.
1 parent 684fcc1 commit 20411ec

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TARGET_DELTA_DFBM_NQ620/mbed_overrides.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
void mbed_sdk_init()
1818
{
19-
printf("", __TIME__, __DATE__);
20-
19+
char* debug_date = __DATE__;
20+
char* debug_time = __TIME__;
21+
2122
}

targets/targets.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2545,6 +2545,16 @@
25452545
"device_has": ["ANALOGIN", "ERROR_PATTERN", "I2C", "I2C_ASYNCH", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SLEEP", "SPI", "SPI_ASYNCH", "SPISLAVE"],
25462546
"release_versions": ["2", "5"],
25472547
"overrides": {"lf_clock_src": "NRF_LF_SRC_RC"},
2548+
"config": {
2549+
"lf_clock_rc_calib_timer_interval": {
2550+
"value": 16,
2551+
"macro_name": "MBED_CONF_NORDIC_NRF_LF_CLOCK_CALIB_TIMER_INTERVAL"
2552+
},
2553+
"lf_clock_rc_calib_mode_config": {
2554+
"value": 0,
2555+
"macro_name": "MBED_CONF_NORDIC_NRF_LF_CLOCK_CALIB_MODE_CONFIG"
2556+
}
2557+
},
25482558
"device_name": "nRF52832_xxAA"
25492559
},
25502560
"BLUEPILL_F103C8": {

0 commit comments

Comments
 (0)