Add new coding style rules and fix appeared issues.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
This commit is contained in:
+1
-1
@@ -48,7 +48,7 @@ plugin_io_print_uint32 (uint32_t num) /**< uint32 to print */
|
||||
static void
|
||||
plugin_io_print_string (jerry_api_string_t *string_p) /**< string to print */
|
||||
{
|
||||
char buffer [32];
|
||||
char buffer[32];
|
||||
|
||||
ssize_t req_size = jerry_api_string_to_char_buffer (string_p, buffer, (ssize_t) sizeof (buffer));
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ led_blink_once (uint32_t led_id) /**< index of LED */
|
||||
/**
|
||||
* LEDs' GPIO pins
|
||||
*/
|
||||
static const uint16_t led_pins [LED_NUMBER] =
|
||||
static const uint16_t led_pins[LED_NUMBER] =
|
||||
{
|
||||
GPIO_Pin_12, /* LD4: Green */
|
||||
GPIO_Pin_13, /* LD3: Orange */
|
||||
@@ -130,7 +130,7 @@ initialize_leds (void)
|
||||
/**
|
||||
* LEDs' GPIO pins
|
||||
*/
|
||||
static const uint16_t led_pins [LED_NUMBER] =
|
||||
static const uint16_t led_pins[LED_NUMBER] =
|
||||
{
|
||||
GPIO_Pin_15, /* LD6 - Green */
|
||||
GPIO_Pin_14, /* LD8 - Orange */
|
||||
@@ -189,7 +189,7 @@ led_toggle (uint32_t led_id) /**< index of LED */
|
||||
{
|
||||
if (led_id < LED_NUMBER)
|
||||
{
|
||||
leds_port->ODR ^= led_pins [led_id];
|
||||
leds_port->ODR ^= led_pins[led_id];
|
||||
}
|
||||
} /* led_toggle */
|
||||
|
||||
|
||||
@@ -139,7 +139,7 @@ fake_exit (void)
|
||||
while (1)
|
||||
{
|
||||
led_on (pin);
|
||||
for ( index = 0; index < dot; index ++)
|
||||
for (index = 0; index < dot; index ++)
|
||||
{
|
||||
};
|
||||
led_off (pin);
|
||||
|
||||
Reference in New Issue
Block a user