Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2a36155d8e |
21
Inc/DS_TMP112.h
Normal file
21
Inc/DS_TMP112.h
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
#ifndef DS_TMP112_H
|
||||||
|
#define DS_TMP112_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_TMP112_H
|
||||||
15
README.md
15
README.md
@@ -1,2 +1,17 @@
|
|||||||
# TMP112
|
# TMP112
|
||||||
|
|
||||||
|
Для добавления в проект:
|
||||||
|
git submodule add https://git.domstudent.ru/Library/DS_TMP112
|
||||||
|
|
||||||
|
Затем добавляем в корневой CMakeLists.txt
|
||||||
|
|
||||||
|
# Library folder
|
||||||
|
set(DS_Include_Dirs
|
||||||
|
${CMAKE_SOURCE_DIR}/Library/DS_TMP112/Inc
|
||||||
|
)
|
||||||
|
target_include_directories(stm32cubemx INTERFACE ${DS_Include_Dirs})
|
||||||
|
|
||||||
|
set(DS_Application_Src
|
||||||
|
${CMAKE_SOURCE_DIR}/Library/DS_TMP112/Src/DS_TMP112.c
|
||||||
|
)
|
||||||
|
target_sources(${CMAKE_PROJECT_NAME} PRIVATE ${DS_Application_Src})
|
||||||
1
Src/DS_TMP112.c
Normal file
1
Src/DS_TMP112.c
Normal file
@@ -0,0 +1 @@
|
|||||||
|
#include <DS_TMP112.h>
|
||||||
Reference in New Issue
Block a user