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:
Andrey Shitov
2015-05-12 19:17:07 +03:00
parent ca12c16607
commit 9763a93df3
89 changed files with 1152 additions and 626 deletions
+1 -1
View File
@@ -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));
+3 -3
View File
@@ -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 */
+1 -1
View File
@@ -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);