Skip to content

Commit

Permalink
Merge pull request #1 from zye1996/main
Browse files Browse the repository at this point in the history
merge
  • Loading branch information
Yaonian72 authored May 26, 2021
2 parents bacb7fc + 515ac27 commit f6c59a9
Show file tree
Hide file tree
Showing 170 changed files with 9,270 additions and 11,245 deletions.
Binary file added .DS_Store
Binary file not shown.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .idea/GSAaio-wifi.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions .vscode/extensions.json

This file was deleted.

13 changes: 0 additions & 13 deletions .vscode/settings.json

This file was deleted.

33 changes: 33 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# !!! WARNING !!! AUTO-GENERATED FILE, PLEASE DO NOT MODIFY IT AND USE
# https://docs.platformio.org/page/projectconf/section_env_build.html#build-flags
#
# If you need to override existing CMake configuration or add extra,
# please create `CMakeListsUser.txt` in the root of project.
# The `CMakeListsUser.txt` will not be overwritten by PlatformIO.

cmake_minimum_required(VERSION 3.13)
set(CMAKE_SYSTEM_NAME Generic)
set(CMAKE_C_COMPILER_WORKS 1)
set(CMAKE_CXX_COMPILER_WORKS 1)

project("GSAaio-wifi" C CXX)

include(CMakeListsPrivate.txt)

if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/CMakeListsUser.txt)
include(CMakeListsUser.txt)
endif()

add_custom_target(
Production ALL
COMMAND platformio -c clion run "$<$<NOT:$<CONFIG:All>>:-e${CMAKE_BUILD_TYPE}>"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)

add_custom_target(
Debug ALL
COMMAND platformio -c clion run --target debug "$<$<NOT:$<CONFIG:All>>:-e${CMAKE_BUILD_TYPE}>"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)

add_executable(Z_DUMMY_TARGET ${SRC_LIST})
100 changes: 100 additions & 0 deletions CMakeListsPrivate.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# !!! WARNING !!! AUTO-GENERATED FILE, PLEASE DO NOT MODIFY IT AND USE
# https://docs.platformio.org/page/projectconf/section_env_build.html#build-flags
#
# If you need to override existing CMake configuration or add extra,
# please create `CMakeListsUser.txt` in the root of project.
# The `CMakeListsUser.txt` will not be overwritten by PlatformIO.



set(CMAKE_CONFIGURATION_TYPES "adafruit_feather_f405" CACHE STRING "Build Types reflect PlatformIO Environments" FORCE)

set(CLION_SVD_FILE_PATH "$ENV{HOME}/.platformio/platforms/ststm32/misc/svd/STM32F40x.svd" CACHE FILEPATH "Peripheral Registers Definitions File" FORCE)

SET(CMAKE_C_COMPILER "$ENV{HOME}/.platformio/packages/toolchain-gccarmnoneeabi/bin/arm-none-eabi-gcc")
SET(CMAKE_CXX_COMPILER "$ENV{HOME}/.platformio/packages/toolchain-gccarmnoneeabi/bin/arm-none-eabi-g++")
SET(CMAKE_CXX_FLAGS "-std=gnu++14 -fno-threadsafe-statics -fno-rtti -fno-exceptions -fno-use-cxa-atexit -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Os -mcpu=cortex-m4 -mthumb -ffunction-sections -fdata-sections -Wall -nostdlib --param max-inline-insns-single=500")
SET(CMAKE_C_FLAGS "-std=gnu11 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Os -mcpu=cortex-m4 -mthumb -ffunction-sections -fdata-sections -Wall -nostdlib --param max-inline-insns-single=500")

SET(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 14)

if (CMAKE_BUILD_TYPE MATCHES "adafruit_feather_f405")
add_definitions(-D'PLATFORMIO=50101')
add_definitions(-D'STM32F405xx')
add_definitions(-D'USBCON')
add_definitions(-D'USBD_USE_CDC')
add_definitions(-D'ENABLE_USB_SERIAL')
add_definitions(-D'PIO_FRAMEWORK_ARDUINO_ENABLE_CDC')
add_definitions(-D'PIO_FRAMEWORK_ARDUINO_USB_FULLMODE')
add_definitions(-D'STM32F4xx')
add_definitions(-D'ARDUINO=10808')
add_definitions(-D'ARDUINO_ARCH_STM32')
add_definitions(-D'ARDUINO_ADAFRUIT_FEATHER_F405')
add_definitions(-D'BOARD_NAME=\"ADAFRUIT_FEATHER_F405\"')
add_definitions(-D'HAL_UART_MODULE_ENABLED')
add_definitions(-D'USBD_USE_CDC')
add_definitions(-D'HAL_PCD_MODULE_ENABLED')

include_directories("${CMAKE_CURRENT_LIST_DIR}/include")
include_directories("${CMAKE_CURRENT_LIST_DIR}/src")
include_directories("${CMAKE_CURRENT_LIST_DIR}/lib/protoc")
include_directories("${CMAKE_CURRENT_LIST_DIR}/lib/AIOapp")
include_directories("$ENV{HOME}/.platformio/packages/framework-arduinoststm32/libraries/SoftwareSerial/src")
include_directories("${CMAKE_CURRENT_LIST_DIR}/lib/SensorBoard")
include_directories("${CMAKE_CURRENT_LIST_DIR}/lib/FlowController")
include_directories("${CMAKE_CURRENT_LIST_DIR}/lib/actuator")
include_directories("${CMAKE_CURRENT_LIST_DIR}/.pio/libdeps/adafruit_feather_f405/Adafruit ADS1X15")
include_directories("${CMAKE_CURRENT_LIST_DIR}/.pio/libdeps/adafruit_feather_f405/Adafruit BusIO")
include_directories("$ENV{HOME}/.platformio/packages/framework-arduinoststm32/libraries/SPI/src")
include_directories("$ENV{HOME}/.platformio/packages/framework-arduinoststm32/libraries/Wire/src")
include_directories("${CMAKE_CURRENT_LIST_DIR}/.pio/libdeps/adafruit_feather_f405/PID")
include_directories("${CMAKE_CURRENT_LIST_DIR}/.pio/libdeps/adafruit_feather_f405/ELClient")
include_directories("$ENV{HOME}/.platformio/packages/framework-arduinoststm32/cores/arduino/avr")
include_directories("$ENV{HOME}/.platformio/packages/framework-arduinoststm32/cores/arduino/stm32")
include_directories("$ENV{HOME}/.platformio/packages/framework-arduinoststm32/cores/arduino/stm32/LL")
include_directories("$ENV{HOME}/.platformio/packages/framework-arduinoststm32/cores/arduino/stm32/usb")
include_directories("$ENV{HOME}/.platformio/packages/framework-arduinoststm32/cores/arduino/stm32/OpenAMP")
include_directories("$ENV{HOME}/.platformio/packages/framework-arduinoststm32/cores/arduino/stm32/usb/hid")
include_directories("$ENV{HOME}/.platformio/packages/framework-arduinoststm32/cores/arduino/stm32/usb/cdc")
include_directories("$ENV{HOME}/.platformio/packages/framework-arduinoststm32/system/Drivers/STM32F4xx_HAL_Driver/Inc")
include_directories("$ENV{HOME}/.platformio/packages/framework-arduinoststm32/system/Drivers/STM32F4xx_HAL_Driver/Src")
include_directories("$ENV{HOME}/.platformio/packages/framework-arduinoststm32/system/STM32F4xx")
include_directories("$ENV{HOME}/.platformio/packages/framework-arduinoststm32/system/Middlewares/ST/STM32_USB_Device_Library/Core/Inc")
include_directories("$ENV{HOME}/.platformio/packages/framework-arduinoststm32/system/Middlewares/ST/STM32_USB_Device_Library/Core/Src")
include_directories("$ENV{HOME}/.platformio/packages/framework-arduinoststm32/system/Middlewares/OpenAMP")
include_directories("$ENV{HOME}/.platformio/packages/framework-arduinoststm32/system/Middlewares/OpenAMP/open-amp/lib/include")
include_directories("$ENV{HOME}/.platformio/packages/framework-arduinoststm32/system/Middlewares/OpenAMP/libmetal/lib/include")
include_directories("$ENV{HOME}/.platformio/packages/framework-arduinoststm32/system/Middlewares/OpenAMP/virtual_driver")
include_directories("$ENV{HOME}/.platformio/packages/framework-cmsis/CMSIS/Core/Include")
include_directories("$ENV{HOME}/.platformio/packages/framework-arduinoststm32/system/Drivers/CMSIS/Device/ST/STM32F4xx/Include")
include_directories("$ENV{HOME}/.platformio/packages/framework-arduinoststm32/system/Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc")
include_directories("$ENV{HOME}/.platformio/packages/framework-cmsis/CMSIS/DSP/Include")
include_directories("$ENV{HOME}/.platformio/packages/framework-arduinoststm32/cores/arduino")
include_directories("$ENV{HOME}/.platformio/packages/framework-arduinoststm32/variants/FEATHER_F405")
include_directories("${CMAKE_CURRENT_LIST_DIR}/.pio/libdeps/adafruit_feather_f405/ELClient@src-e2c0ec61fbd0b994ec6fe5cedef0a859")
include_directories("$ENV{HOME}/.platformio/packages/framework-arduinoststm32/libraries/CMSIS_DSP/src")
include_directories("$ENV{HOME}/.platformio/packages/framework-arduinoststm32/libraries/EEPROM/src")
include_directories("$ENV{HOME}/.platformio/packages/framework-arduinoststm32/libraries/IWatchdog/src")
include_directories("$ENV{HOME}/.platformio/packages/framework-arduinoststm32/libraries/Keyboard/src")
include_directories("$ENV{HOME}/.platformio/packages/framework-arduinoststm32/libraries/Mouse/src")
include_directories("$ENV{HOME}/.platformio/packages/framework-arduinoststm32/libraries/Servo/src")
include_directories("$ENV{HOME}/.platformio/packages/framework-arduinoststm32/libraries/SrcWrapper/src")
include_directories("$ENV{HOME}/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/9.2.1")
include_directories("$ENV{HOME}/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/9.2.1/arm-none-eabi")
include_directories("$ENV{HOME}/.platformio/packages/toolchain-gccarmnoneeabi/lib/gcc/arm-none-eabi/9.2.1/include")
include_directories("$ENV{HOME}/.platformio/packages/toolchain-gccarmnoneeabi/lib/gcc/arm-none-eabi/9.2.1/include-fixed")
include_directories("$ENV{HOME}/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include")

FILE(GLOB_RECURSE EXTRA_LIB_SOURCES
${CMAKE_CURRENT_LIST_DIR}/.pio/libdeps/adafruit_feather_f405/*.*
)
endif()


FILE(GLOB_RECURSE SRC_LIST
${CMAKE_CURRENT_LIST_DIR}/src/*.*
${CMAKE_CURRENT_LIST_DIR}/lib/*.*
)

list(APPEND SRC_LIST ${EXTRA_LIB_SOURCES})
Loading

0 comments on commit f6c59a9

Please sign in to comment.