From 9175d36b08ec3d6929ab41bd6eaff1e1d5854055 Mon Sep 17 00:00:00 2001 From: Mikhail Date: Tue, 24 Mar 2026 23:34:00 +0300 Subject: [PATCH] Initial commit --- Inc/DS_W25X40CL.h | 20 ++++++++++++++++++++ README.md | 15 +++++++++++++++ Src/DS_W25X40CL.c | 1 + 3 files changed, 36 insertions(+) create mode 100644 Inc/DS_W25X40CL.h create mode 100644 Src/DS_W25X40CL.c diff --git a/Inc/DS_W25X40CL.h b/Inc/DS_W25X40CL.h new file mode 100644 index 0000000..fec74e7 --- /dev/null +++ b/Inc/DS_W25X40CL.h @@ -0,0 +1,20 @@ +#ifndef DS_W25X40CL_H +#define DS_W25X40CL_H + +#ifdef STM32G030xx + #include "stm32g0xx_hal.h" +#endif + +#ifdef STM32F030xx + #include "stm32f0xx_hal.h" +#endif + +#ifdef STM32F103xB + #include "stm32f1xx_hal.h" +#endif + +#ifdef STM32L152xC + #include "stm32l1xx_hal.h" +#endif + +#endif //DS_W25X40CL_H \ No newline at end of file diff --git a/README.md b/README.md index 1b9200a..5911495 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,17 @@ # W25X40CL +Для добавления в проект: +git submodule add https://git.domstudent.ru/Library/DS_W25X40CL + +Затем добавляем в корневой CMakeLists.txt + +# Library folder +set(DS_Include_Dirs + ${CMAKE_SOURCE_DIR}/Library/DS_W25X40CL/Inc +) +target_include_directories(stm32cubemx INTERFACE ${DS_Include_Dirs}) + +set(DS_Application_Src + ${CMAKE_SOURCE_DIR}/Library/DS_W25X40CL/Src/DS_W25X40CL.c +) +target_sources(${CMAKE_PROJECT_NAME} PRIVATE ${DS_Application_Src}) \ No newline at end of file diff --git a/Src/DS_W25X40CL.c b/Src/DS_W25X40CL.c new file mode 100644 index 0000000..e09ba12 --- /dev/null +++ b/Src/DS_W25X40CL.c @@ -0,0 +1 @@ +#include \ No newline at end of file