Skip to content

Commit

Permalink
Merge pull request #634 from ut-issl/feature/update_hils
Browse files Browse the repository at this point in the history
最新のs2e-coreでHILSが動かせるようにする
  • Loading branch information
seki-hiro authored Apr 25, 2024
2 parents 520ed7e + fd7504b commit db02f9f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/components/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ ports/i2c_port.cpp
if(USE_HILS)
set(SOURCE_FILES
${SOURCE_FILES}
hils/ports/hils_uart_port.cpp
hils/ports/hils_i2c_target_port.cpp
ports/hils_uart_port.cpp
ports/hils_i2c_target_port.cpp
)
endif()

Expand Down
5 changes: 3 additions & 2 deletions src/components/ports/hils_i2c_target_port.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

#include "hils_uart_port.hpp"

const unsigned int kDefaultCommandSize = 0xff; //!< Default command size
const unsigned int kDefaultTxSize = 0xff; //!< Default TX size

/**
* @class HilsI2cTargetPort
* @brief Class to control I2C-USB converter for the target(device) side from COM port
Expand Down Expand Up @@ -93,8 +96,6 @@ class HilsI2cTargetPort : public HilsUartPort {
int GetStoredFrameCounter();

private:
const unsigned int kDefaultCommandSize = 0xff; //!< Default command size
const unsigned int kDefaultTxSize = 0xff; //!< Default TX size
unsigned char max_register_number_ = 0xff; //!< Maximum register number
unsigned char saved_register_address_ = 0x00; //!< Saved register address
unsigned int stored_frame_counter_ = 0; //!< Send a few frames of telemetry to the converter in advance.
Expand Down
4 changes: 2 additions & 2 deletions src/simulation/hils/hils_port_manager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#define S2E_SIMULATION_HILS_HILS_PORT_MANAGER_HPP_

#ifdef USE_HILS
#include "ports/hils_i2c_target_port.hpp"
#include "ports/hils_uart_port.hpp"
#include "../../components/ports/hils_i2c_target_port.hpp"
#include "../../components/ports/hils_uart_port.hpp"
#endif
#include <map>

Expand Down

0 comments on commit db02f9f

Please sign in to comment.