Eddie James | b5508d7 | 2018-05-02 15:57:23 -0500 | [diff] [blame] | 1 | #include "occ_device.hpp" |
2 | #include "occ_bus.hpp" | ||||
3 | |||||
4 | namespace open_power | ||||
5 | { | ||||
6 | namespace occ | ||||
7 | { | ||||
8 | |||||
9 | fs::path Bus::bindPath = fs::path(OCC_BUS_PATH) / "bind"; | ||||
10 | fs::path Bus::unBindPath = fs::path(OCC_BUS_PATH) / "unbind"; | ||||
11 | |||||
12 | void Bus::reset() const | ||||
13 | { | ||||
14 | #ifndef I2C_OCC | ||||
15 | Device::write(unBindPath, config); | ||||
16 | Device::write(bindPath, config); | ||||
17 | #endif | ||||
18 | } | ||||
19 | |||||
20 | } // namespace occ | ||||
21 | } // namespace open_power |