Commit 126941d1 authored by Gallacchi Mattia's avatar Gallacchi Mattia
Browse files
parent a5b7afd5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ if (UNIX)
    set_target_properties(i2c PROPERTIES IMPORTED_LOCATION ${I2C_LIB_PATH})
    include_directories(${I2C_INCLUDE_DIR})
elseif(WIN32)
    include_directories(${CMAKE_SOURCE_DIR}/MCP2221_DLL/unmanaged/dll)
    include_directories(${CMAKE_CURRENT_SOURCE_DIR}/MCP2221_DLL/unmanaged/dll)
endif()

include_directories(lib)
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ elseif(WIN32)
        target_compile_options(${PROJECT_NAME} PRIVATE /Gz)
    endif()
     # Make sure this points to your actual import lib
    set(MCP_LIB "${CMAKE_SOURCE_DIR}/MCP2221_DLL/unmanaged/dll/mcp2221_dll_um_x64.lib" CACHE INTERNAL "Path to MCP2221 DLL import library")
    set(MCP_LIB "${CMAKE_CURRENT_SOURCE_DIR}/../MCP2221_DLL/unmanaged/dll/mcp2221_dll_um_x64.lib" CACHE INTERNAL "Path to MCP2221 DLL import library")

    if (EXISTS "${MCP_LIB}")
        message(STATUS "Linking to ${MCP_LIB}")
+1 −0
Original line number Diff line number Diff line
@@ -124,6 +124,7 @@ namespace MCP2221A {
    void I2CMaster::read_register(uint8_t slave_addr, uint8_t reg_addr, uint8_t *data, size_t length)
    {
        // Windows implementation to read register

    }

    std::vector<int> I2CMaster::get_slaves_addresses(bool force_scan)