esp-vent-main: format with clang

This commit is contained in:
Vasily Davydov 2022-10-10 10:37:19 +03:00
parent 1809cd863b
commit 5268bc31c7

View File

@ -1,14 +1,14 @@
/* /*
=============================================================================== ===============================================================================
Name : main.c Name : main.c
Author : Vasily, Evgenii, Jaakko, Miisa Author : Vasily, Evgenii, Jaakko, Miisa
Version : Version :
Copyright : $(copyright) Copyright : $(copyright)
Description : main definition Description : main definition
=============================================================================== ===============================================================================
*/ */
#if defined (__USE_LPCOPEN) #if defined(__USE_LPCOPEN)
#if defined(NO_BOARD_LIB) #if defined(NO_BOARD_LIB)
#include "chip.h" #include "chip.h"
#else #else
@ -22,21 +22,25 @@
// TODO: insert other definitions and declarations here // TODO: insert other definitions and declarations here
int main(void) { int
main (void)
{
#if defined (__USE_LPCOPEN) #if defined(__USE_LPCOPEN)
// Read clock settings and update SystemCoreClock variable // Read clock settings and update SystemCoreClock variable
SystemCoreClockUpdate(); SystemCoreClockUpdate ();
#if !defined(NO_BOARD_LIB) #if !defined(NO_BOARD_LIB)
// Set up and initialize all required blocks and // Set up and initialize all required blocks and
// functions related to the board hardware // functions related to the board hardware
Board_Init(); Board_Init ();
// Set the LED to the state of "On" // Set the LED to the state of "On"
Board_LED_Set(0, true); Board_LED_Set (0, true);
#endif #endif
#endif #endif
while(1) {} while (1)
{
return 0 ; }
return 0;
} }