mirror of https://github.com/ARMmbed/mbed-os.git
Recent added files made compliant with KR coding style.
parent
dc33d3ecaf
commit
a430030639
|
@ -40,9 +40,9 @@
|
|||
* \asf_license_stop
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
|
||||
*/
|
||||
/**
|
||||
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
|
||||
*/
|
||||
|
||||
#ifndef RTC_COUNT_H_INCLUDED
|
||||
#define RTC_COUNT_H_INCLUDED
|
||||
|
@ -449,7 +449,7 @@ enum rtc_count_compare {
|
|||
/**
|
||||
* \brief Available periodic interval source.
|
||||
*/
|
||||
enum rtc_count_periodic_interval{
|
||||
enum rtc_count_periodic_interval {
|
||||
/** Periodic interval 0 */
|
||||
RTC_COUNT_PERIODIC_INTERVAL_0 = 0,
|
||||
/** Periodic interval 1 */
|
||||
|
|
|
@ -40,9 +40,9 @@
|
|||
* \asf_license_stop
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
|
||||
*/
|
||||
/**
|
||||
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
|
||||
*/
|
||||
#include "rtc_count.h"
|
||||
#include <gclk.h>
|
||||
|
||||
|
@ -330,7 +330,7 @@ enum status_code rtc_count_set_count(
|
|||
}
|
||||
|
||||
/* Set count according to mode */
|
||||
switch(module->mode){
|
||||
switch(module->mode) {
|
||||
case RTC_COUNT_MODE_32BIT:
|
||||
/* Write value to register. */
|
||||
rtc_module->MODE0.COUNT.reg = count_value;
|
||||
|
@ -339,7 +339,7 @@ enum status_code rtc_count_set_count(
|
|||
|
||||
case RTC_COUNT_MODE_16BIT:
|
||||
/* Check if 16-bit value is provided. */
|
||||
if(count_value > 0xffff){
|
||||
if(count_value > 0xffff) {
|
||||
return STATUS_ERR_INVALID_ARG;
|
||||
}
|
||||
|
||||
|
@ -688,7 +688,7 @@ enum status_code rtc_count_clear_compare_match(
|
|||
Rtc *const rtc_module = module->hw;
|
||||
|
||||
/* Check sanity. */
|
||||
switch (module->mode){
|
||||
switch (module->mode) {
|
||||
case RTC_COUNT_MODE_32BIT:
|
||||
/* Check sanity for 32-bit mode. */
|
||||
if (comp_index > RTC_NUM_OF_COMP32) {
|
||||
|
|
Loading…
Reference in New Issue