diff options
author | Alex <colomar.6.4.3@gmail.com> | 2019-02-02 20:52:02 +0000 |
---|---|---|
committer | Alex <colomar.6.4.3@gmail.com> | 2019-02-02 20:52:02 +0000 |
commit | 92999502f4502b43d7b14f0d2d05fe15ef9fc11c (patch) | |
tree | 40f7af28f16a3fd77f723b24f2a5e861d52da360 | |
parent | 1188bbfdf1c042f1ee48ef3331f8d0af0b54fe38 (diff) |
Fix style
m--------- | libalx | 0 | ||||
-rwxr-xr-x | src/stm32l4xx_it.c | 24 | ||||
-rw-r--r-- | src/system_stm32l4xx.c | 20 | ||||
-rwxr-xr-x | src/test.c | 33 | ||||
m--------- | stm32l4-modules | 0 |
5 files changed, 29 insertions, 48 deletions
diff --git a/libalx b/libalx -Subproject 88c1db2018acbb4a5906babb04291b78fd6088b +Subproject 3e83ecf11efc99fbba7e6b4a09c071ec20e87dd diff --git a/src/stm32l4xx_it.c b/src/stm32l4xx_it.c index 5dc0241..e8dd3c0 100755 --- a/src/stm32l4xx_it.c +++ b/src/stm32l4xx_it.c @@ -1,11 +1,11 @@ /** ****************************************************************************** - * @file Templates/Src/stm32l4xx_it.c + * @file Templates/Src/stm32l4xx_it.c * @author MCD Application Team * @version V1.8.0 * @date 21-April-2017 * @brief Main Interrupt Service Routines. - * This file provides template for all exceptions handler and + * This file provides template for all exceptions handler and * peripherals interrupt service routine. ****************************************************************************** * @attention @@ -58,10 +58,7 @@ void NMI_Handler (void) void HardFault_Handler (void) { - while (true) - { - ; - } + while (true) {}; } /** @@ -70,10 +67,7 @@ void HardFault_Handler (void) void MemManage_Handler (void) { - while (true) - { - ; - } + while (true) {}; } /** @@ -82,10 +76,7 @@ void MemManage_Handler (void) void BusFault_Handler (void) { - while (true) - { - ; - } + while (true) {}; } /** @@ -94,10 +85,7 @@ void BusFault_Handler (void) void UsageFault_Handler (void) { - while (true) - { - ; - } + while (true) {}; } /** diff --git a/src/system_stm32l4xx.c b/src/system_stm32l4xx.c index a207999..f14f01f 100644 --- a/src/system_stm32l4xx.c +++ b/src/system_stm32l4xx.c @@ -107,17 +107,17 @@ #include "stm32l4xx.h" -#if !defined (HSE_VALUE) - # define HSE_VALUE (8000000U) /*!< Value of the External oscillator in Hz */ -#endif /* HSE_VALUE */ +#if !defined(HSE_VALUE) + #define HSE_VALUE (8000000U) /*!< Value of the External oscillator in Hz */ +#endif -#if !defined (MSI_VALUE) - # define MSI_VALUE (4000000U) /*!< Value of the Internal oscillator in Hz*/ -#endif /* MSI_VALUE */ +#if !defined(MSI_VALUE) + #define MSI_VALUE (4000000U) /*!< Value of the Internal oscillator in Hz*/ +#endif -#if !defined (HSI_VALUE) - # define HSI_VALUE (16000000U) /*!< Value of the Internal oscillator in Hz*/ -#endif /* HSI_VALUE */ +#if !defined(HSI_VALUE) + #define HSI_VALUE (16000000U) /*!< Value of the Internal oscillator in Hz*/ +#endif /** * @} @@ -139,7 +139,7 @@ /*!< Uncomment the following line if you need to relocate your vector Table in Internal SRAM. */ /* #define VECT_TAB_SRAM */ -# define VECT_TAB_OFFSET (0x00) /*!< Vector Table base offset field. +#define VECT_TAB_OFFSET (0x00) /*!< Vector Table base offset field. This value must be a multiple of 0x200. */ /******************************************************************************/ /** @@ -76,55 +76,48 @@ int test (void) led_init(); #if 01 - if (led_test_1()) { + if (led_test_1()) return ERROR_NOK; - } #endif #if 01 - if (led_test_2()) { + if (led_test_2()) return ERROR_NOK; - } #endif #if 0 - if (led_test_3()) { + if (led_test_3()) return ERROR_NOK; - } #endif #if 0 - can_r_test(); + if (can_r_test()) + return ERROR_NOK; #endif #if 0 - can_w_test(); + if (can_w_test()) + return ERROR_NOK; #endif #if 0 - if (servo_test_0()) { + if (servo_test_0()) return ERROR_NOK; - } #endif #if 0 - if (servo_test_1()) { + if (servo_test_1()) return ERROR_NOK; - } #endif #if 0 - if (servo_test_2()) { + if (servo_test_2()) return ERROR_NOK; - } #endif #if 0 - if (display_test()) { + if (display_test()) return ERROR_NOK; - } #endif #if 0 - if (nunchuk_test_2()) { + if (nunchuk_test_2()) return ERROR_NOK; - } #endif #if 0 - if (tim_test()) { + if (tim_test()) return ERROR_NOK; - } #endif #if 0 prj_error_handle(); diff --git a/stm32l4-modules b/stm32l4-modules -Subproject 9d1d9fdc0100d02030fab5c943e9c2e7f4def63 +Subproject dd7b70ddf2e2e516ce5aea8510eac78ed6b2863 |