Commit 744fc1bd authored by Rostislav Spinar's avatar Rostislav Spinar

Fix in SPI and UART mapping

- data type  for IO mapping
parent 099e2ee1
Pipeline #3769 passed with stages
in 25 minutes and 7 seconds
......@@ -414,8 +414,8 @@ namespace iqrf {
m_cfg.pgmSwitchGpioPin = PGM_SWITCH_GPIO;
m_cfg.trModuleReset = TR_MODULE_RESET_DISABLE;
m_cfg.powerEnableGpioPin = (uint8_t)Pointer("/powerEnableGpioPin").GetWithDefault(d, (int)m_cfg.powerEnableGpioPin).GetInt();
m_cfg.busEnableGpioPin = (uint8_t)Pointer("/busEnableGpioPin").GetWithDefault(d, (int)m_cfg.busEnableGpioPin).GetInt();
m_cfg.powerEnableGpioPin = (int8_t)Pointer("/powerEnableGpioPin").GetWithDefault(d, (int)m_cfg.powerEnableGpioPin).GetInt();
m_cfg.busEnableGpioPin = (int8_t)Pointer("/busEnableGpioPin").GetWithDefault(d, (int)m_cfg.busEnableGpioPin).GetInt();
// bus signal separated into more
if (m_cfg.busEnableGpioPin == -1) {
......@@ -424,7 +424,7 @@ namespace iqrf {
m_cfg.i2cEnableGpioPin = (int8_t)Pointer("/i2cEnableGpioPin").GetWithDefault(d, (int)m_cfg.i2cEnableGpioPin).GetInt();
}
m_cfg.pgmSwitchGpioPin = (uint8_t)Pointer("/pgmSwitchGpioPin").GetWithDefault(d, (int)m_cfg.pgmSwitchGpioPin).GetInt();
m_cfg.pgmSwitchGpioPin = (int8_t)Pointer("/pgmSwitchGpioPin").GetWithDefault(d, (int)m_cfg.pgmSwitchGpioPin).GetInt();
Value* v = Pointer("/spiReset").Get(d);
if (v && v->IsBool())
m_cfg.trModuleReset = v->GetBool() ? TR_MODULE_RESET_ENABLE : TR_MODULE_RESET_DISABLE;
......
......@@ -354,8 +354,8 @@ namespace iqrf {
m_cfg.pgmSwitchGpioPin = PGM_SWITCH_GPIO;
m_cfg.trModuleReset = TR_MODULE_RESET_DISABLE;
m_cfg.powerEnableGpioPin = (uint8_t)Pointer("/powerEnableGpioPin").GetWithDefault(d, (int)m_cfg.powerEnableGpioPin).GetInt();
m_cfg.busEnableGpioPin = (uint8_t)Pointer("/busEnableGpioPin").GetWithDefault(d, (int)m_cfg.busEnableGpioPin).GetInt();
m_cfg.powerEnableGpioPin = (int8_t)Pointer("/powerEnableGpioPin").GetWithDefault(d, (int)m_cfg.powerEnableGpioPin).GetInt();
m_cfg.busEnableGpioPin = (int8_t)Pointer("/busEnableGpioPin").GetWithDefault(d, (int)m_cfg.busEnableGpioPin).GetInt();
// bus signal separated into more
if (m_cfg.busEnableGpioPin == -1) {
......@@ -364,7 +364,7 @@ namespace iqrf {
m_cfg.i2cEnableGpioPin = (int8_t)Pointer("/i2cEnableGpioPin").GetWithDefault(d, (int)m_cfg.i2cEnableGpioPin).GetInt();
}
m_cfg.pgmSwitchGpioPin = (uint8_t)Pointer("/pgmSwitchGpioPin").GetWithDefault(d, (int)m_cfg.pgmSwitchGpioPin).GetInt();
m_cfg.pgmSwitchGpioPin = (int8_t)Pointer("/pgmSwitchGpioPin").GetWithDefault(d, (int)m_cfg.pgmSwitchGpioPin).GetInt();
Value* v = Pointer("/uartReset").Get(d);
if (v && v->IsBool())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment