Skip to content

Conversation

james-ctc
Copy link
Member

Describe your changes

Added the Huawei_V100R023C10 PowerSupply driver from BaseCamp

Issue ticket number and link

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • I read the contribution documentation and made sure that my changes meet its requirements

@hikinggrass hikinggrass changed the title import the Huawei_V100R023C10 PowerSupply driver Add Huawei_V100R023C10 PowerSupply driver Aug 28, 2025
@james-ctc james-ctc force-pushed the feature/added-huawei-v100r023c10 branch 2 times, most recently from d418a87 to 37ead93 Compare August 28, 2025 19:43
* Add Huawei power stack driver

Co-authored-by: Fabian Gajek <[email protected]>
Co-authored-by: Mark Oude Elberink <[email protected]>

Huawei V100R023C10 Updates (#137)

Huawei V100R023C10: multiple connector support

Co-authored-by: Tim <[email protected]>

import Huawei_V100R023C10 power supply from BaseCamp

Signed-off-by: James Chapman <[email protected]>

fix: removed clang format files

Signed-off-by: James Chapman <[email protected]>
@james-ctc james-ctc force-pushed the feature/added-huawei-v100r023c10 branch from 37ead93 to 713c140 Compare August 28, 2025 19:51
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be removed

@@ -0,0 +1,45 @@
cmake_minimum_required(VERSION 3.22)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To keep this in line with everest-core itself

Suggested change
cmake_minimum_required(VERSION 3.22)
cmake_minimum_required(VERSION 3.16)

cmake_minimum_required(VERSION 3.22)
project(fusion-charge-dispenser)

set(CMAKE_CXX_STANDARD 20)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

everest-core targets C++17

Suggested change
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 17)

@@ -0,0 +1,13 @@
project(huawei-fusion-charger)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
project(huawei-fusion-charger)
cmake_minimum_required(VERSION 3.16)
project(huawei-fusion-charger)


set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

if(BUILD_TESTS)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if(BUILD_TESTS)
if(EVEREST_CORE_BUILD_TESTING)

Comment on lines +5 to +7
if(BUILD_TESTS)
include(CTest)
endif()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(or remove entirely)

Comment on lines +12 to +19
if(BUILD_TESTING)
if(TEST_COVERAGE)
# Add coverage flags
target_compile_options(modbus-client PUBLIC --coverage)
target_link_options(modbus-client PUBLIC --coverage)
endif()
add_subdirectory(tests)
endif()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comments about coverage and testing

target_include_directories(modbus-registers PUBLIC include)
target_link_libraries(modbus-registers PUBLIC modbus-server)

if(BUILD_TESTING)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comments about testing

Comment on lines +11 to +18
if(BUILD_TESTING)
if(TEST_COVERAGE)
# Add coverage flags
target_compile_options(modbus-server PUBLIC --coverage)
target_link_options(modbus-server PUBLIC --coverage)
endif()
add_subdirectory(tests)
endif()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comments on testing and coverage

Build with tests:

```bash
cmake -B build -DBUILD_TESTS=ON
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comments on testing

Comment on lines +55 to +73
## Run tests

Without coverage:

```bash
cmake -B build -DBUILD_TESTS=ON
cd build
make -j$(nproc)
ctest
```

With coverage (note that in some cases the build folder must be removed first):
```bash
cmake -B build -DBUILD_TESTS=ON -DTEST_COVERAGE=ON
cd build
make -j$(nproc)
ctest
make coverage
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comments on coverage and testing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants