[Stylecheck] Code cleaned to current stylecheck script

This commit is contained in:
BuFran
2013-07-11 13:54:22 +02:00
committed by Piotr Esden-Tempski
parent 210a17ec97
commit efc2489d2c
7 changed files with 39 additions and 37 deletions

View File

@@ -138,9 +138,9 @@ uint8_t nvic_get_irq_enabled(uint8_t irqn)
* interpreted according to the pre-emptive priority grouping set in the
* SCB Application Interrupt and Reset Control Register (SCB_AIRCR), as done
* in @ref scb_set_priority_grouping.
*
*
* CM0:
*
*
* There are 4 priority levels only, given by the upper two bits of the
* priority byte, as required by ARM standards. No grouping available.
*

View File

@@ -65,7 +65,7 @@ void mutex_lock(mutex_t *m)
void mutex_unlock(mutex_t *m)
{
/* Ensure accesses to protected resource are finished */
/* Ensure accesses to protected resource are finished */
__dmb();
/* Free the lock. */

View File

@@ -90,12 +90,12 @@ uint32_t exti_get_flag_status(uint32_t exti)
void exti_select_source(uint32_t exti, uint32_t gpioport)
{
uint32_t line;
for (line=0; line<16; line++)
{
if (!(exti & (1 << line)))
for (line = 0; line < 16; line++) {
if (!(exti & (1 << line))) {
continue;
}
uint32_t bits = 0, mask=0x0F;
uint32_t bits = 0, mask = 0x0F;
switch (gpioport) {
case GPIOA: