mirror of https://github.com/ARMmbed/mbed-os.git
Fixed style and build issue
parent
86b8516024
commit
a8e52a9fc0
|
@ -487,8 +487,7 @@ enum status_code system_clock_source_write_calibration(
|
||||||
{
|
{
|
||||||
switch (clock_source) {
|
switch (clock_source) {
|
||||||
case SYSTEM_CLOCK_SOURCE_OSC8M:
|
case SYSTEM_CLOCK_SOURCE_OSC8M:
|
||||||
if (calibration_value > 0xfff || freq_range > 4)
|
if (calibration_value > 0xfff || freq_range > 4) {
|
||||||
{
|
|
||||||
return STATUS_ERR_INVALID_ARG;
|
return STATUS_ERR_INVALID_ARG;
|
||||||
}
|
}
|
||||||
SYSCTRL->OSC8M.bit.CALIB = calibration_value;
|
SYSCTRL->OSC8M.bit.CALIB = calibration_value;
|
||||||
|
|
|
@ -109,7 +109,6 @@ void us_ticker_init(void)
|
||||||
|
|
||||||
/* Initialize the timer */
|
/* Initialize the timer */
|
||||||
tc_init(&us_ticker_module, TICKER_COUNTER_uS, &config_tc);
|
tc_init(&us_ticker_module, TICKER_COUNTER_uS, &config_tc);
|
||||||
MBED_ASSERT(ret_status == STATUS_OK);
|
|
||||||
|
|
||||||
/* Register callback function */
|
/* Register callback function */
|
||||||
tc_register_callback(&us_ticker_module, (tc_callback_t)us_ticker_irq_handler_internal, TC_CALLBACK_CC_CHANNEL0);
|
tc_register_callback(&us_ticker_module, (tc_callback_t)us_ticker_irq_handler_internal, TC_CALLBACK_CC_CHANNEL0);
|
||||||
|
|
Loading…
Reference in New Issue