Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyLadanov committed May 8, 2024
1 parent fea858e commit 0760a2f
Show file tree
Hide file tree
Showing 13 changed files with 8 additions and 122 deletions.
25 changes: 0 additions & 25 deletions Components/CPP_Code_Folder/CMakeLists.txt

This file was deleted.

5 changes: 0 additions & 5 deletions Components/CPP_Code_Folder/Inc/file2.hpp

This file was deleted.

14 changes: 0 additions & 14 deletions Components/CPP_Code_Folder/Src/file2.cpp

This file was deleted.

18 changes: 0 additions & 18 deletions Components/C_Code_Folder/Inc/file1.h

This file was deleted.

14 changes: 0 additions & 14 deletions Components/C_Code_Folder/Src/file1.c

This file was deleted.

12 changes: 0 additions & 12 deletions Components/IncludeOnlyComponent/CMakeLists.txt

This file was deleted.

13 changes: 0 additions & 13 deletions Components/IncludeOnlyComponent/Inc/IncludeOnlyComponent.hpp

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ cmake_minimum_required(VERSION 3.10)

# Put directory name to COMPONENT_NAME variable
get_filename_component(COMPONENT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)

# Set component name
project(${COMPONENT_NAME})

# Add source files
set(SOURCE_LIB
Src/file1.c
Src/NVS.cpp
)

# Add includes
Expand All @@ -18,7 +17,3 @@ include_directories(

# Creating static library
add_library(${COMPONENT_NAME} STATIC ${SOURCE_LIB})


Depends_On_Main()

5 changes: 5 additions & 0 deletions Components/NVS_Lib/Inc/NVS.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#ifndef __NVS_HPP__
#define __NVS_HPP__


#endif /* __NVS_HPP__ */
1 change: 1 addition & 0 deletions Components/NVS_Lib/Src/NVS.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "NVS.hpp"
3 changes: 0 additions & 3 deletions Core/Inc/main.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@

#pragma once

#include "file1.h"
#include "file2.hpp"
#include "test.hpp"

3 changes: 0 additions & 3 deletions Core/Inc/test.hpp

This file was deleted.

10 changes: 1 addition & 9 deletions Core/Src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@

#include "main.hpp"
#include "IncludeOnlyComponent.hpp"


void ExtTest(void)
{

}


// Основная программа
int main(void)
{
include_only_print();
Hello_From_C();
Hello_From_CPP();

return 0;
}

0 comments on commit 0760a2f

Please sign in to comment.