Skip to content

[DELTA_DFBM_NQ620] Add RC calibration setting and revise mbed_overrides.c #3927

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 14, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

void mbed_sdk_init()
{
printf("", __TIME__, __DATE__);

char* debug_date = __DATE__;
char* debug_time = __TIME__;

}
10 changes: 10 additions & 0 deletions targets/targets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2545,6 +2545,16 @@
"device_has": ["ANALOGIN", "ERROR_PATTERN", "I2C", "I2C_ASYNCH", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SLEEP", "SPI", "SPI_ASYNCH", "SPISLAVE"],
"release_versions": ["2", "5"],
"overrides": {"lf_clock_src": "NRF_LF_SRC_RC"},
"config": {
"lf_clock_rc_calib_timer_interval": {
"value": 16,
"macro_name": "MBED_CONF_NORDIC_NRF_LF_CLOCK_CALIB_TIMER_INTERVAL"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aren't this values defined by config as they are here or why do you need to specify macro_name?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@0xc0170 I follow the instruction stated in \targets\TARGET_NORDIC\TARGET_NRF5\LF_Clock_config.md
I have tried to use “marcos_add” instead of “marco_name”, but the compiled BLE_HeartRate won’t work on DELTA_DFBM_NQ620
Any suggestion?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the info, LGTM

},
"lf_clock_rc_calib_mode_config": {
"value": 0,
"macro_name": "MBED_CONF_NORDIC_NRF_LF_CLOCK_CALIB_MODE_CONFIG"
}
},
"device_name": "nRF52832_xxAA"
},
"BLUEPILL_F103C8": {
Expand Down