-
Notifications
You must be signed in to change notification settings - Fork 108
Add Huawei_V100R023C10 PowerSupply driver #1336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
modules/HardwareDrivers/PowerSupplies/Huawei_V100R023C10/fusion_charger_lib/.clang-format
Outdated
Show resolved
Hide resolved
d418a87
to
37ead93
Compare
* 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]>
37ead93
to
713c140
Compare
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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
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) |
There was a problem hiding this comment.
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
set(CMAKE_CXX_STANDARD 20) | |
set(CMAKE_CXX_STANDARD 17) |
@@ -0,0 +1,13 @@ | |||
project(huawei-fusion-charger) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
project(huawei-fusion-charger) | |
cmake_minimum_required(VERSION 3.16) | |
project(huawei-fusion-charger) |
|
||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
|
||
if(BUILD_TESTS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if(BUILD_TESTS) | |
if(EVEREST_CORE_BUILD_TESTING) |
if(BUILD_TESTS) | ||
include(CTest) | ||
endif() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(or remove entirely)
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() |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comments about testing
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() |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comments on testing
## 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 | ||
``` |
There was a problem hiding this comment.
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
Describe your changes
Added the Huawei_V100R023C10 PowerSupply driver from BaseCamp
Issue ticket number and link
Checklist before requesting a review