From 6543aae3122caeacfd901ee682c24833050fa4a3 Mon Sep 17 00:00:00 2001 From: vikrantdeveloper Date: Sun, 30 Apr 2023 01:54:29 +0530 Subject: [PATCH] gpio_toggle --- .../{GPIO_TOGGLE => }/.gitignore | 1 + .../GPIO_TOGGLE/.vscode/extensions.json | 10 ---- ATmega328_Drivers/GPIO_TOGGLE/include/README | 39 ---------------- ATmega328_Drivers/GPIO_TOGGLE/lib/README | 46 ------------------- .../{GPIO_TOGGLE/src => include}/GPIO.h | 0 .../{GPIO_TOGGLE/src => include}/RCC.h | 0 .../{GPIO_TOGGLE => }/platformio.ini | 0 .../{GPIO_TOGGLE => }/src/GPIO.cpp | 0 .../{GPIO_TOGGLE => }/src/RCC.cpp | 0 .../{GPIO_TOGGLE => }/src/main.cpp | 0 10 files changed, 1 insertion(+), 95 deletions(-) rename ATmega328_Drivers/{GPIO_TOGGLE => }/.gitignore (92%) delete mode 100644 ATmega328_Drivers/GPIO_TOGGLE/.vscode/extensions.json delete mode 100644 ATmega328_Drivers/GPIO_TOGGLE/include/README delete mode 100644 ATmega328_Drivers/GPIO_TOGGLE/lib/README rename ATmega328_Drivers/{GPIO_TOGGLE/src => include}/GPIO.h (100%) rename ATmega328_Drivers/{GPIO_TOGGLE/src => include}/RCC.h (100%) rename ATmega328_Drivers/{GPIO_TOGGLE => }/platformio.ini (100%) rename ATmega328_Drivers/{GPIO_TOGGLE => }/src/GPIO.cpp (100%) rename ATmega328_Drivers/{GPIO_TOGGLE => }/src/RCC.cpp (100%) rename ATmega328_Drivers/{GPIO_TOGGLE => }/src/main.cpp (100%) diff --git a/ATmega328_Drivers/GPIO_TOGGLE/.gitignore b/ATmega328_Drivers/.gitignore similarity index 92% rename from ATmega328_Drivers/GPIO_TOGGLE/.gitignore rename to ATmega328_Drivers/.gitignore index 89cc49c..620fc39 100644 --- a/ATmega328_Drivers/GPIO_TOGGLE/.gitignore +++ b/ATmega328_Drivers/.gitignore @@ -3,3 +3,4 @@ .vscode/c_cpp_properties.json .vscode/launch.json .vscode/ipch +.vscode diff --git a/ATmega328_Drivers/GPIO_TOGGLE/.vscode/extensions.json b/ATmega328_Drivers/GPIO_TOGGLE/.vscode/extensions.json deleted file mode 100644 index 080e70d..0000000 --- a/ATmega328_Drivers/GPIO_TOGGLE/.vscode/extensions.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - // See http://go.microsoft.com/fwlink/?LinkId=827846 - // for the documentation about the extensions.json format - "recommendations": [ - "platformio.platformio-ide" - ], - "unwantedRecommendations": [ - "ms-vscode.cpptools-extension-pack" - ] -} diff --git a/ATmega328_Drivers/GPIO_TOGGLE/include/README b/ATmega328_Drivers/GPIO_TOGGLE/include/README deleted file mode 100644 index 194dcd4..0000000 --- a/ATmega328_Drivers/GPIO_TOGGLE/include/README +++ /dev/null @@ -1,39 +0,0 @@ - -This directory is intended for project header files. - -A header file is a file containing C declarations and macro definitions -to be shared between several project source files. You request the use of a -header file in your project source file (C, C++, etc) located in `src` folder -by including it, with the C preprocessing directive `#include'. - -```src/main.c - -#include "header.h" - -int main (void) -{ - ... -} -``` - -Including a header file produces the same results as copying the header file -into each source file that needs it. Such copying would be time-consuming -and error-prone. With a header file, the related declarations appear -in only one place. If they need to be changed, they can be changed in one -place, and programs that include the header file will automatically use the -new version when next recompiled. The header file eliminates the labor of -finding and changing all the copies as well as the risk that a failure to -find one copy will result in inconsistencies within a program. - -In C, the usual convention is to give header files names that end with `.h'. -It is most portable to use only letters, digits, dashes, and underscores in -header file names, and at most one dot. - -Read more about using header files in official GCC documentation: - -* Include Syntax -* Include Operation -* Once-Only Headers -* Computed Includes - -https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html diff --git a/ATmega328_Drivers/GPIO_TOGGLE/lib/README b/ATmega328_Drivers/GPIO_TOGGLE/lib/README deleted file mode 100644 index 6debab1..0000000 --- a/ATmega328_Drivers/GPIO_TOGGLE/lib/README +++ /dev/null @@ -1,46 +0,0 @@ - -This directory is intended for project specific (private) libraries. -PlatformIO will compile them to static libraries and link into executable file. - -The source code of each library should be placed in a an own separate directory -("lib/your_library_name/[here are source files]"). - -For example, see a structure of the following two libraries `Foo` and `Bar`: - -|--lib -| | -| |--Bar -| | |--docs -| | |--examples -| | |--src -| | |- Bar.c -| | |- Bar.h -| | |- library.json (optional, custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html -| | -| |--Foo -| | |- Foo.c -| | |- Foo.h -| | -| |- README --> THIS FILE -| -|- platformio.ini -|--src - |- main.c - -and a contents of `src/main.c`: -``` -#include -#include - -int main (void) -{ - ... -} - -``` - -PlatformIO Library Dependency Finder will find automatically dependent -libraries scanning project source files. - -More information about PlatformIO Library Dependency Finder -- https://docs.platformio.org/page/librarymanager/ldf.html diff --git a/ATmega328_Drivers/GPIO_TOGGLE/src/GPIO.h b/ATmega328_Drivers/include/GPIO.h similarity index 100% rename from ATmega328_Drivers/GPIO_TOGGLE/src/GPIO.h rename to ATmega328_Drivers/include/GPIO.h diff --git a/ATmega328_Drivers/GPIO_TOGGLE/src/RCC.h b/ATmega328_Drivers/include/RCC.h similarity index 100% rename from ATmega328_Drivers/GPIO_TOGGLE/src/RCC.h rename to ATmega328_Drivers/include/RCC.h diff --git a/ATmega328_Drivers/GPIO_TOGGLE/platformio.ini b/ATmega328_Drivers/platformio.ini similarity index 100% rename from ATmega328_Drivers/GPIO_TOGGLE/platformio.ini rename to ATmega328_Drivers/platformio.ini diff --git a/ATmega328_Drivers/GPIO_TOGGLE/src/GPIO.cpp b/ATmega328_Drivers/src/GPIO.cpp similarity index 100% rename from ATmega328_Drivers/GPIO_TOGGLE/src/GPIO.cpp rename to ATmega328_Drivers/src/GPIO.cpp diff --git a/ATmega328_Drivers/GPIO_TOGGLE/src/RCC.cpp b/ATmega328_Drivers/src/RCC.cpp similarity index 100% rename from ATmega328_Drivers/GPIO_TOGGLE/src/RCC.cpp rename to ATmega328_Drivers/src/RCC.cpp diff --git a/ATmega328_Drivers/GPIO_TOGGLE/src/main.cpp b/ATmega328_Drivers/src/main.cpp similarity index 100% rename from ATmega328_Drivers/GPIO_TOGGLE/src/main.cpp rename to ATmega328_Drivers/src/main.cpp