fix(UML-1462): Поправил инициализацию
This commit is contained in:
parent
a8d6b23a4b
commit
8890af415d
@ -11,9 +11,11 @@ namespace free_rtos {
|
|||||||
|
|
||||||
Eth *EthEcatApi::eth_{nullptr};
|
Eth *EthEcatApi::eth_{nullptr};
|
||||||
|
|
||||||
bool EthEcatApi::init(Eth& eth, TEthMacPorts port_id, uint16_t address_base) {
|
void EthEcatApi::init(Eth& eth) {
|
||||||
eth_ = ð
|
eth_ = ð
|
||||||
|
}
|
||||||
|
|
||||||
|
bool EthEcatApi::config_init(TEthMacPorts port_id, uint16_t address_base) {
|
||||||
bool status = false;
|
bool status = false;
|
||||||
|
|
||||||
get_ecat().Init(port_id);
|
get_ecat().Init(port_id);
|
||||||
|
|||||||
@ -20,7 +20,8 @@ namespace free_rtos {
|
|||||||
|
|
||||||
class EthEcatApi {
|
class EthEcatApi {
|
||||||
public:
|
public:
|
||||||
static bool init(Eth& eth, TEthMacPorts port_id, uint16_t address_base);
|
static void init(Eth& eth);
|
||||||
|
static bool config_init(TEthMacPorts port_id, uint16_t address_base);
|
||||||
static void process(); // Внутри бесконечный цикл. Запускать в отдельном потоке
|
static void process(); // Внутри бесконечный цикл. Запускать в отдельном потоке
|
||||||
|
|
||||||
static std::vector<ecat_buffer::PDOMap>& get_ecat_pdo_map();
|
static std::vector<ecat_buffer::PDOMap>& get_ecat_pdo_map();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user