Skip to content

Commit

Permalink
moved Drv ports to a Ports directory (#3008)
Browse files Browse the repository at this point in the history
* moved driver ports to a Ports directory. This file structure is more inline with how F Prime structures its directories

* fixed location for port

* further clean up

* Adding port subdirectory
  • Loading branch information
kevin-f-ortega authored Nov 18, 2024
1 parent 442e57a commit c34482d
Show file tree
Hide file tree
Showing 12 changed files with 7 additions and 30 deletions.
5 changes: 1 addition & 4 deletions Drv/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
# Module subdirectories

# Ports
add_fprime_subdirectory("${CMAKE_CURRENT_LIST_DIR}/DataTypes/")
add_fprime_subdirectory("${CMAKE_CURRENT_LIST_DIR}/GpioDriverPorts/")
add_fprime_subdirectory("${CMAKE_CURRENT_LIST_DIR}/SpiDriverPorts/")
add_fprime_subdirectory("${CMAKE_CURRENT_LIST_DIR}/I2cDriverPorts/")
add_fprime_subdirectory("${CMAKE_CURRENT_LIST_DIR}/Ports/")

# Components
add_fprime_subdirectory("${CMAKE_CURRENT_LIST_DIR}/BlockDriver/")
Expand Down
12 changes: 0 additions & 12 deletions Drv/I2cDriverPorts/CMakeLists.txt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@
# MOD_DEPS: (optional) module dependencies
#
####
add_fprime_subdirectory("${CMAKE_CURRENT_LIST_DIR}/DataTypes/")

set(SOURCE_FILES
"${CMAKE_CURRENT_LIST_DIR}/GpioDriverPorts.fpp"
"${CMAKE_CURRENT_LIST_DIR}/I2cDriverPorts.fpp"
"${CMAKE_CURRENT_LIST_DIR}/SpiDriverPorts.fpp"
)

register_fprime_module()
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <Drv/DataTypes/DataBuffer.hpp>
#include <Drv/Ports/DataTypes/DataBuffer.hpp>
#include <Fw/Types/Assert.hpp>

namespace Drv {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 0 additions & 12 deletions Drv/SpiDriverPorts/CMakeLists.txt

This file was deleted.

2 changes: 1 addition & 1 deletion cmake/test/src/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"Fw_Prm",
"CFDP_Checksum",
"Drv_ByteStreamDriverModel",
"Drv_DataTypes",
"Drv_Ports_DataTypes",
"Drv_Ip",
"Drv_TcpClient",
"Utils_Hash",
Expand Down

0 comments on commit c34482d

Please sign in to comment.