diff --git a/cpu/arm7_common/include/iap.h b/cpu/arm7_common/include/iap.h index 7a8b854a9d..e32753b6ca 100644 --- a/cpu/arm7_common/include/iap.h +++ b/cpu/arm7_common/include/iap.h @@ -44,10 +44,10 @@ extern "C" { #define IAP_LOCATION (0x7FFFFFF1) /* PLL */ -#define PLLCON_PLLE (0x01) ///< PLL Enable -#define PLLCON_PLLD (0x00) ///< PLL Disable -#define PLLCON_PLLC (0x03) ///< PLL Connect -#define PLLSTAT_PLOCK (0x0400) // + /* UBRR_VALUE and USE_2X are statically computed from */ if (baudrate == UART_STDIO_BAUDRATE) { _update_brr(uart, UBRR_VALUE, USE_2X); return; diff --git a/cpu/atmega_common/thread_arch.c b/cpu/atmega_common/thread_arch.c index d7932d55b4..c5833e14ea 100644 --- a/cpu/atmega_common/thread_arch.c +++ b/cpu/atmega_common/thread_arch.c @@ -249,7 +249,7 @@ void thread_yield_higher(void) { } -// Use this interrupt to perform all context switches +/* Use this interrupt to perform all context switches */ ISR(AVR_CONTEXT_SWAP_INTERRUPT_VECT, ISR_NAKED) { __context_save(); sched_run(); diff --git a/cpu/cc430/include/cc430-rtc.h b/cpu/cc430/include/cc430-rtc.h index e01ea015ec..bbe7153346 100644 --- a/cpu/cc430/include/cc430-rtc.h +++ b/cpu/cc430/include/cc430-rtc.h @@ -32,11 +32,11 @@ extern "C" { * @see ::rtc_set_alarm */ typedef enum { - RTC_ALARM_DISABLED = 0x00, ///< Alarm disables - RTC_ALARM_MIN = 0x01, ///< Alarm mask for Minutes - RTC_ALARM_HOUR = 0x02, ///< Alarm mask for Hours - RTC_ALARM_DOW = 0x04, ///< Alarm mask for Day of Week - RTC_ALARM_DOM = 0x08 ///< Alarm mask for Day of Month + RTC_ALARM_DISABLED = 0x00, /**< Alarm disables */ + RTC_ALARM_MIN = 0x01, /**< Alarm mask for Minutes */ + RTC_ALARM_HOUR = 0x02, /**< Alarm mask for Hours */ + RTC_ALARM_DOW = 0x04, /**< Alarm mask for Day of Week */ + RTC_ALARM_DOM = 0x08 /**< Alarm mask for Day of Month */ } rtc_alarm_mask_t; /** diff --git a/cpu/lpc2387/cpu.c b/cpu/lpc2387/cpu.c index 44587ed87a..930fbe0390 100644 --- a/cpu/lpc2387/cpu.c +++ b/cpu/lpc2387/cpu.c @@ -51,9 +51,9 @@ void cpu_clock_scale(uint32_t source, uint32_t target, uint32_t *prescale) lpc2387_pclk_scale(source, target, &pclksel, prescale); - PCLKSEL0 = (PCLKSEL0 & ~(BIT2 | BIT3)) | (pclksel << 2); // timer 0 - PCLKSEL0 = (PCLKSEL0 & ~(BIT4 | BIT5)) | (pclksel << 4); // timer 1 - PCLKSEL1 = (PCLKSEL1 & ~(BIT12 | BIT13)) | (pclksel << 12); // timer 2 + PCLKSEL0 = (PCLKSEL0 & ~(BIT2 | BIT3)) | (pclksel << 2); /* timer 0 */ + PCLKSEL0 = (PCLKSEL0 & ~(BIT4 | BIT5)) | (pclksel << 4); /* timer 1 */ + PCLKSEL1 = (PCLKSEL1 & ~(BIT12 | BIT13)) | (pclksel << 12); /* timer 2 */ } /****************************************************************************** diff --git a/cpu/lpc2387/include/cpu.h b/cpu/lpc2387/include/cpu.h index fddb45b025..289dc14b13 100644 --- a/cpu/lpc2387/include/cpu.h +++ b/cpu/lpc2387/include/cpu.h @@ -26,7 +26,7 @@ extern "C" { #endif -extern uintptr_t __stack_start; ///< end of user stack memory space +extern uintptr_t __stack_start; /**< end of user stack memory space */ /** * @brief Scale lpc2387 cpu speed diff --git a/cpu/lpc2387/lpc23xx-iap.c b/cpu/lpc2387/lpc23xx-iap.c index 5bd47c423c..6bd41dce6a 100644 --- a/cpu/lpc2387/lpc23xx-iap.c +++ b/cpu/lpc2387/lpc23xx-iap.c @@ -32,9 +32,12 @@ /* pointer to reserved flash rom section for configuration data */ __attribute((aligned(256))) char configmem[256] __attribute__((section(".configmem"))); -static unsigned int iap_command[5]; // contains parameters for IAP command -static unsigned int iap_result[2]; // contains results -typedef void (*IAP)(unsigned int[], unsigned int[]); // typedefinition for IAP entry function +/* contains parameters for IAP command */ +static unsigned int iap_command[5]; +/* contains results */ +static unsigned int iap_result[2]; +/* typedefinition for IAP entry function */ +typedef void (*IAP)(unsigned int[], unsigned int[]); IAP IAP_Entry; /* some function prototypes */ @@ -148,13 +151,13 @@ uint8_t flashrom_erase(uint8_t *addr) static uint32_t iap(uint32_t code, uint32_t p1, uint32_t p2, uint32_t p3, uint32_t p4) { - iap_command[0] = code; // set command code - iap_command[1] = p1; // set 1st param - iap_command[2] = p2; // set 2nd param - iap_command[3] = p3; // set 3rd param - iap_command[4] = p4; // set 4th param + iap_command[0] = code; /* set command code */ + iap_command[1] = p1; /* set 1st param */ + iap_command[2] = p2; /* set 2nd param */ + iap_command[3] = p3; /* set 3rd param */ + iap_command[4] = p4; /* set 4th param */ - ((void (*)())0x7ffffff1)(iap_command, iap_result); // IAP entry point + ((void (*)())0x7ffffff1)(iap_command, iap_result); /* IAP entry point */ return *iap_result; } diff --git a/cpu/msp430_common/cpu.c b/cpu/msp430_common/cpu.c index 45b20ff4c1..af2b833702 100644 --- a/cpu/msp430_common/cpu.c +++ b/cpu/msp430_common/cpu.c @@ -71,9 +71,9 @@ NORETURN void cpu_switch_context_exit(void) * thread_stack_init behavior. */ __attribute__((section (".fini9"))) void __main_epilogue(void) { __asm__("ret"); } -//---------------------------------------------------------------------------- -// Processor specific routine - here for MSP -//---------------------------------------------------------------------------- +/* ------------------------------------------------------------------------- */ +/* Processor specific routine - here for MSP */ +/* ------------------------------------------------------------------------- */ char *thread_stack_init(thread_task_func_t task_func, void *arg, void *stack_start, int stack_size) { unsigned short stk = (unsigned short)((uintptr_t) stack_start + stack_size); diff --git a/cpu/native/include/native_internal.h b/cpu/native/include/native_internal.h index e00fbaa87b..9016acf153 100644 --- a/cpu/native/include/native_internal.h +++ b/cpu/native/include/native_internal.h @@ -41,7 +41,7 @@ #else #include #endif -#endif // BSD/Linux +#endif /* BSD/Linux */ #include #include #include diff --git a/cpu/native/periph/pm.c b/cpu/native/periph/pm.c index bd6a92c2fa..fba7a9e08a 100644 --- a/cpu/native/periph/pm.c +++ b/cpu/native/periph/pm.c @@ -31,7 +31,7 @@ void pm_set_lowest(void) { - _native_in_syscall++; // no switching here + _native_in_syscall++; /* no switching here */ real_pause(); _native_in_syscall--;