Fixed style and build issue

pull/1547/head
Parthasarathy.S 2016-02-14 21:31:51 +05:30
parent 86b8516024
commit a8e52a9fc0
9 changed files with 26 additions and 28 deletions

View File

@ -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;

View File

@ -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);