From 8388ec4e35142539fb09d2a9ef5981b5732a349f Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 29 Aug 2017 17:03:28 +1000 Subject: stmhal: Update to new STM Cube HAL library. This upgrades the HAL to the versions: - F4 V1.16.0 - F7 V1.7.0 - L4 V1.8.1 The main changes were in the SD card driver. The vendor changed the SD read/write functions to accept block number intead of byte address, so there is no longer any need for a custom patch for this in stm32lib. The CardType values also changed, so pyb.SDCard().info() will return different values for the 3rd element of the tuple, but this function was never documented. --- stmhal/can.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stmhal/can.c') diff --git a/stmhal/can.c b/stmhal/can.c index 9047e78ca..f3db98372 100644 --- a/stmhal/can.c +++ b/stmhal/can.c @@ -527,7 +527,7 @@ STATIC mp_obj_t pyb_can_recv(mp_uint_t n_args, const mp_obj_t *pos_args, mp_map_ // receive the data CanRxMsgTypeDef rx_msg; - self->can.pRxMsg = &rx_msg; + self->can.pRxMsg = self->can.pRx1Msg = &rx_msg; HAL_StatusTypeDef status = HAL_CAN_Receive(&self->can, args[0].u_int, args[1].u_int); if (status != HAL_OK) { -- cgit v1.2.3