pub
Fork of CANnucleo by
Diff: stm32f1xx_hal_msp.c
- Revision:
- 30:cebc6f21046e
- Parent:
- 28:eed6929956ea
--- a/stm32f1xx_hal_msp.c Sat Mar 11 10:13:27 2017 +0000 +++ b/stm32f1xx_hal_msp.c Sun May 28 09:18:54 2017 +0000 @@ -113,7 +113,7 @@ GPIO_InitStruct.Pin = GPIO_PIN_12; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - GPIO_InitStruct.Speed = GPIO_SPEED_LOW; + GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); } else @@ -137,7 +137,7 @@ GPIO_InitStruct.Pin = GPIO_PIN_9; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - GPIO_InitStruct.Speed = GPIO_SPEED_LOW; + GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); } else @@ -222,9 +222,9 @@ rxCompleteCallback(); if (_canHandle->State == HAL_CAN_STATE_BUSY_TX) - _canHandle->State = HAL_CAN_STATE_BUSY_TX_RX; + _canHandle->State = HAL_CAN_STATE_BUSY_TX_RX0; else { - _canHandle->State = HAL_CAN_STATE_BUSY_RX; + _canHandle->State = HAL_CAN_STATE_BUSY_RX0; /* Set CAN error code to none */ _canHandle->ErrorCode = HAL_CAN_ERROR_NONE;