diff options
| author | Damien George <damien.p.george@gmail.com> | 2017-08-29 17:03:28 +1000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2017-08-29 17:03:28 +1000 |
| commit | 8388ec4e35142539fb09d2a9ef5981b5732a349f (patch) | |
| tree | 7ae59d98af7d0238ef56fec5fea92d5e4361b506 /stmhal/can.c | |
| parent | fe6f0354f6c1392dbdcfc7d9331c6a5ef3b3773a (diff) | |
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.
Diffstat (limited to 'stmhal/can.c')
| -rw-r--r-- | stmhal/can.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |
