/* Changes the state of the driver enable pin for the available serial port. This is only applicable for RS485 networks, which require an RS485 transceiver.  */
static void TbxMbPortUartDriverEnable(tTbxMbUartPort port, uint8_t value)
/* Changes the state of the driver enable pin for the available serial port. This is only applicable for RS485 networks, which require an RS485 transceiver.  */
static void TbxMbPortUartDriverEnable(tTbxMbUartPort port, uint8_t value)
{
  if (port == TBX_MB_UART_PORT1)
  {
    if (value == TBX_ON)
    {
      HAL_GPIO_WritePin(GPIOA, GPIO_PIN_8, GPIO_PIN_SET);
    }
    else
    {
      HAL_GPIO_WritePin(GPIOA, GPIO_PIN_8, GPIO_PIN_RESET);
    }
  }
}