From 3c50e737d8fd8105c0078ab6fa48fabfdcd5620c Mon Sep 17 00:00:00 2001 From: Yilin Sun Date: Thu, 8 Dec 2022 19:46:52 +0800 Subject: [PATCH] Renamed source file path. Signed-off-by: Yilin Sun --- .clang-format | 12 ++++++++++++ CMakeLists.txt | 2 +- main.cpp => src/main.cpp | 1 + 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .clang-format rename main.cpp => src/main.cpp (99%) diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..b90ae05 --- /dev/null +++ b/.clang-format @@ -0,0 +1,12 @@ +BasedOnStyle: Google +IndentWidth: 4 +AlignConsecutiveMacros: Consecutive +AlignConsecutiveDeclarations: Consecutive +AlignConsecutiveAssignments: Consecutive +BreakBeforeBraces: Custom +IndentGotoLabels: false +BraceWrapping: + AfterEnum: false + AfterStruct: false + SplitEmptyFunction: false +ColumnLimit: 120 diff --git a/CMakeLists.txt b/CMakeLists.txt index da9aca2..c82fae2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,7 +14,7 @@ project(${APP_TARGET}) add_subdirectory(${MBED_PATH}) add_executable(${APP_TARGET} - main.cpp + src/main.cpp ) target_link_libraries(${APP_TARGET} mbed-os) diff --git a/main.cpp b/src/main.cpp similarity index 99% rename from main.cpp rename to src/main.cpp index 47d561f..74a450e 100644 --- a/main.cpp +++ b/src/main.cpp @@ -13,6 +13,7 @@ int main() for(;;) { led = !led; + ThisThread::sleep_for(500ms); }