diff --git a/boards/varmint/CMakeLists.txt b/boards/varmint/CMakeLists.txt index 234aa8e0..a1593c7c 100644 --- a/boards/varmint/CMakeLists.txt +++ b/boards/varmint/CMakeLists.txt @@ -4,7 +4,8 @@ set(BOARD_NAME varmint) include_directories( include - include/board + include/drivers + include/drivers/interfaces lib/usb_device/App lib/usb_device/Target lib/drivers/STM32H7xx_HAL_Driver/Inc @@ -22,7 +23,7 @@ file(GLOB_RECURSE VARMINT_SOURCES "lib/middleware/*.c" ) -set(LINKER_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/STM32H753VIHX_FLASH.ld) +set(LINKER_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/src/STM32H753VIHX_FLASH.ld) add_link_options(-T ${LINKER_SCRIPT}) diff --git a/boards/varmint/include/board/BoardConfig.h b/boards/varmint/include/BoardConfig.h similarity index 100% rename from boards/varmint/include/board/BoardConfig.h rename to boards/varmint/include/BoardConfig.h diff --git a/boards/varmint/include/board/ByteFifo.h b/boards/varmint/include/ByteFifo.h similarity index 100% rename from boards/varmint/include/board/ByteFifo.h rename to boards/varmint/include/ByteFifo.h diff --git a/boards/varmint/include/board/Callbacks.h b/boards/varmint/include/Callbacks.h similarity index 100% rename from boards/varmint/include/board/Callbacks.h rename to boards/varmint/include/Callbacks.h diff --git a/boards/varmint/include/board/CubeMX.h b/boards/varmint/include/CubeMX.h similarity index 100% rename from boards/varmint/include/board/CubeMX.h rename to boards/varmint/include/CubeMX.h diff --git a/boards/varmint/include/board/PacketFifo.h b/boards/varmint/include/PacketFifo.h similarity index 100% rename from boards/varmint/include/board/PacketFifo.h rename to boards/varmint/include/PacketFifo.h diff --git a/boards/varmint/include/board/Packets.h b/boards/varmint/include/Packets.h similarity index 100% rename from boards/varmint/include/board/Packets.h rename to boards/varmint/include/Packets.h diff --git a/boards/varmint/include/board/Adc.h b/boards/varmint/include/drivers/Adc.h similarity index 100% rename from boards/varmint/include/board/Adc.h rename to boards/varmint/include/drivers/Adc.h diff --git a/boards/varmint/include/board/Adis165xx.h b/boards/varmint/include/drivers/Adis165xx.h similarity index 100% rename from boards/varmint/include/board/Adis165xx.h rename to boards/varmint/include/drivers/Adis165xx.h diff --git a/boards/varmint/include/board/Bmi088.h b/boards/varmint/include/drivers/Bmi088.h similarity index 100% rename from boards/varmint/include/board/Bmi088.h rename to boards/varmint/include/drivers/Bmi088.h diff --git a/boards/varmint/include/board/Bmi088_config.h b/boards/varmint/include/drivers/Bmi088_config.h similarity index 100% rename from boards/varmint/include/board/Bmi088_config.h rename to boards/varmint/include/drivers/Bmi088_config.h diff --git a/boards/varmint/include/board/Bmi08_defs.h b/boards/varmint/include/drivers/Bmi08_defs.h similarity index 100% rename from boards/varmint/include/board/Bmi08_defs.h rename to boards/varmint/include/drivers/Bmi08_defs.h diff --git a/boards/varmint/include/board/DlhrL20G.h b/boards/varmint/include/drivers/DlhrL20G.h similarity index 100% rename from boards/varmint/include/board/DlhrL20G.h rename to boards/varmint/include/drivers/DlhrL20G.h diff --git a/boards/varmint/include/board/Dps310.h b/boards/varmint/include/drivers/Dps310.h similarity index 100% rename from boards/varmint/include/board/Dps310.h rename to boards/varmint/include/drivers/Dps310.h diff --git a/boards/varmint/include/board/Iis2mdc.h b/boards/varmint/include/drivers/Iis2mdc.h similarity index 100% rename from boards/varmint/include/board/Iis2mdc.h rename to boards/varmint/include/drivers/Iis2mdc.h diff --git a/boards/varmint/include/board/Pwm.h b/boards/varmint/include/drivers/Pwm.h similarity index 100% rename from boards/varmint/include/board/Pwm.h rename to boards/varmint/include/drivers/Pwm.h diff --git a/boards/varmint/include/board/Sbus.h b/boards/varmint/include/drivers/Sbus.h similarity index 100% rename from boards/varmint/include/board/Sbus.h rename to boards/varmint/include/drivers/Sbus.h diff --git a/boards/varmint/include/board/Sd.h b/boards/varmint/include/drivers/Sd.h similarity index 100% rename from boards/varmint/include/board/Sd.h rename to boards/varmint/include/drivers/Sd.h diff --git a/boards/varmint/include/board/Spi.h b/boards/varmint/include/drivers/Spi.h similarity index 100% rename from boards/varmint/include/board/Spi.h rename to boards/varmint/include/drivers/Spi.h diff --git a/boards/varmint/include/board/Telem.h b/boards/varmint/include/drivers/Telem.h similarity index 100% rename from boards/varmint/include/board/Telem.h rename to boards/varmint/include/drivers/Telem.h diff --git a/boards/varmint/include/board/Time64.h b/boards/varmint/include/drivers/Time64.h similarity index 100% rename from boards/varmint/include/board/Time64.h rename to boards/varmint/include/drivers/Time64.h diff --git a/boards/varmint/include/board/Ubx.h b/boards/varmint/include/drivers/Ubx.h similarity index 100% rename from boards/varmint/include/board/Ubx.h rename to boards/varmint/include/drivers/Ubx.h diff --git a/boards/varmint/include/board/Vcp.h b/boards/varmint/include/drivers/Vcp.h similarity index 100% rename from boards/varmint/include/board/Vcp.h rename to boards/varmint/include/drivers/Vcp.h diff --git a/boards/varmint/include/board/Driver.h b/boards/varmint/include/drivers/interfaces/Driver.h similarity index 100% rename from boards/varmint/include/board/Driver.h rename to boards/varmint/include/drivers/interfaces/Driver.h diff --git a/boards/varmint/include/board/misc.h b/boards/varmint/include/misc.h similarity index 100% rename from boards/varmint/include/board/misc.h rename to boards/varmint/include/misc.h diff --git a/boards/varmint/src/board/Callbacks.cpp b/boards/varmint/src/Callbacks.cpp similarity index 100% rename from boards/varmint/src/board/Callbacks.cpp rename to boards/varmint/src/Callbacks.cpp diff --git a/boards/varmint/STM32H753VIHX_FLASH.ld b/boards/varmint/src/STM32H753VIHX_FLASH.ld similarity index 100% rename from boards/varmint/STM32H753VIHX_FLASH.ld rename to boards/varmint/src/STM32H753VIHX_FLASH.ld diff --git a/boards/varmint/src/board/Adc.cpp b/boards/varmint/src/drivers/Adc.cpp similarity index 100% rename from boards/varmint/src/board/Adc.cpp rename to boards/varmint/src/drivers/Adc.cpp diff --git a/boards/varmint/src/board/Adis165xx.cpp b/boards/varmint/src/drivers/Adis165xx.cpp similarity index 100% rename from boards/varmint/src/board/Adis165xx.cpp rename to boards/varmint/src/drivers/Adis165xx.cpp diff --git a/boards/varmint/src/board/Bmi088.cpp b/boards/varmint/src/drivers/Bmi088.cpp similarity index 100% rename from boards/varmint/src/board/Bmi088.cpp rename to boards/varmint/src/drivers/Bmi088.cpp diff --git a/boards/varmint/src/board/DlhrL20G.cpp b/boards/varmint/src/drivers/DlhrL20G.cpp similarity index 100% rename from boards/varmint/src/board/DlhrL20G.cpp rename to boards/varmint/src/drivers/DlhrL20G.cpp diff --git a/boards/varmint/src/board/Dps310.cpp b/boards/varmint/src/drivers/Dps310.cpp similarity index 100% rename from boards/varmint/src/board/Dps310.cpp rename to boards/varmint/src/drivers/Dps310.cpp diff --git a/boards/varmint/src/board/Iis2mdc.cpp b/boards/varmint/src/drivers/Iis2mdc.cpp similarity index 100% rename from boards/varmint/src/board/Iis2mdc.cpp rename to boards/varmint/src/drivers/Iis2mdc.cpp diff --git a/boards/varmint/src/board/Pwm.cpp b/boards/varmint/src/drivers/Pwm.cpp similarity index 100% rename from boards/varmint/src/board/Pwm.cpp rename to boards/varmint/src/drivers/Pwm.cpp diff --git a/boards/varmint/src/board/Sbus.cpp b/boards/varmint/src/drivers/Sbus.cpp similarity index 100% rename from boards/varmint/src/board/Sbus.cpp rename to boards/varmint/src/drivers/Sbus.cpp diff --git a/boards/varmint/src/board/Sd.cpp b/boards/varmint/src/drivers/Sd.cpp similarity index 100% rename from boards/varmint/src/board/Sd.cpp rename to boards/varmint/src/drivers/Sd.cpp diff --git a/boards/varmint/src/board/Telem.cpp b/boards/varmint/src/drivers/Telem.cpp similarity index 100% rename from boards/varmint/src/board/Telem.cpp rename to boards/varmint/src/drivers/Telem.cpp diff --git a/boards/varmint/src/board/Ubx.cpp b/boards/varmint/src/drivers/Ubx.cpp similarity index 100% rename from boards/varmint/src/board/Ubx.cpp rename to boards/varmint/src/drivers/Ubx.cpp diff --git a/boards/varmint/src/board/Vcp.cpp b/boards/varmint/src/drivers/Vcp.cpp similarity index 100% rename from boards/varmint/src/board/Vcp.cpp rename to boards/varmint/src/drivers/Vcp.cpp diff --git a/boards/varmint/src/board/misc.cpp b/boards/varmint/src/misc.cpp similarity index 100% rename from boards/varmint/src/board/misc.cpp rename to boards/varmint/src/misc.cpp