Laurent MEUNIER
580d96431e
STM32 I2C manage STOP specific case
...
In case the user applicaiton makes a mixed usage of unitary function
(start, stop, byte write & read) with SYNC operation (write and read of
data buffers with start and stop management), we need to reset the
STM32 HAL state as it is by-passed by a direct call to STOP
2016-12-16 08:54:39 +01:00
Laurent MEUNIER
8406a99dc8
STM32 I2C: avoid timeout to be 0
...
In continuation of previous IsDeviceReady case, let's
add 1 in case length is 0 (even though not recommended)
2016-12-16 08:54:39 +01:00
Laurent MEUNIER
37c94a03f0
STM I2C: manage Is Device Ready case
...
Some device drivers use a data lenght of 0 to check if device is ready.
STM32 HAL provides a dedicated service for that, so let's use it.
2016-12-16 08:54:39 +01:00
Laurent MEUNIER
c0ca0a7e2c
STM I2C - move i2c_read in SYNC part
...
just change the place of code to have i2c_read and i2c_write together
2016-12-16 08:54:39 +01:00
Sam Grove
6b64dbc5fe
Merge pull request #3434 from OpenNuvoton/nuvoton
...
[NUC472/M453] Fix stuck in lp_ticker_init and other updates
2016-12-15 10:38:35 -06:00
Sam Grove
19acef97ee
Merge pull request #3429 from LMESTM/fix_stm_i2c_fix_init
...
Fix stm i2c fix init
2016-12-15 10:35:13 -06:00
Sam Grove
45fa92dcb3
Merge pull request #3427 from LMESTM/fix_stm_i2c_slave
...
Fix stm i2c slave
2016-12-15 10:33:06 -06:00
Sam Grove
cf75543cfa
Merge pull request #3424 from bcostm/fix_dma_f4
...
STM32F4 - FIX to add the update of hdma->State variable
2016-12-15 10:32:22 -06:00
Sam Grove
4524c5f917
Merge pull request #3411 from jeromecoutant/PR_ST_L0_ASSERT
...
STM32L0 : map ST HAL assert into MBED assert
2016-12-15 10:30:03 -06:00
Sam Grove
4c2b84a865
Merge pull request #3408 from jeromecoutant/PR_ST_F7_ASSERT
...
STM32F7 : map ST HAL assert into MBED assert
2016-12-15 10:29:34 -06:00
Sam Grove
ea555e68a1
Merge pull request #3393 from andreaslarssonublox/ublox_fix_isr_reg_reeval
...
ISR register never re-evaluated in HAL_DMA_PollForTransfer for STM32F4
2016-12-15 10:28:30 -06:00
Sam Grove
0a40444b76
Merge pull request #3379 from jeromecoutant/PR_ST_F0_ASSERT
...
STM32F0 : map ST HAL assert into MBED assert
2016-12-15 10:25:09 -06:00
Sam Grove
38411e917f
Merge pull request #3366 from bcostm/dev_nucleo_f412zg
...
NUCLEO_F412ZG - Add new platform
2016-12-15 10:19:51 -06:00
Sam Grove
c60f134c0c
Merge pull request #3348 from TomoYamanaka/master
...
Fix frequency function of CAN driver.
2016-12-15 10:18:23 -06:00
jeromecoutant
e1f4d69109
STM32L0 : correct ST HAL API call
...
- RCC init: unused clock was enabled without any init parameters
- ADC: a parameter setting was missing
- GPIO: mode was not allowed by ST HAL API
- tick: init value was too high for 16b
2016-12-14 11:10:03 +01:00
jeromecoutant
2c5249b196
STM32L0 : refactor stm32l0xx_hal_conf.h and map ST HAL assert into MBED assert
2016-12-14 11:09:32 +01:00
Laurent MEUNIER
77e202f064
STM32 I2C: use higher IRQ priority for slave vs. master
2016-12-13 11:59:12 +01:00
cyliangtw
e4a5401b9b
[NUC472/M453] Fix GCC warnings
2016-12-13 15:41:41 +08:00
ccli8
64e27b2e3d
[NUC472/M453] Fix stuck in lp_ticker_init()
2016-12-13 11:10:51 +08:00
cyliangtw
ec945db013
[NUC472] Resolve TRNG GCC warning
2016-12-13 11:10:51 +08:00
ccli8
3ff2df1875
[NUC472] Fix compile error for SHA-256 alternative on some condition
...
Also include non-issue refinement for SHA-1/SHA-256 alternatives.
2016-12-13 11:10:51 +08:00
ccli8
6af60f9b32
[NUC472/M453] Fix PWM clock error in BSP driver
2016-12-13 11:10:51 +08:00
ccli8
f796eb5d2d
[NUC472/M453] Change UART RTS/CTS to low level active
2016-12-13 11:10:51 +08:00
ccli8
59e38666ae
[NUC472/M453] Fix serial async transfer failed as data with is 16/32
2016-12-13 11:10:51 +08:00
Laurent MEUNIER
36a0365d2d
STM32 I2C: differentiate HW reset and driver reset
...
Make a distinct i2c_reset function as defined in MBED HAL api,
from the i2C_hw_reset which simply drives the HW reset signals
2016-12-12 17:33:14 +01:00
Laurent MEUNIER
6cdac88a1c
SMT32 I2C: initialize clock before configuring PINs
...
This is needed especially for F1 family but can apply to all.
2016-12-12 14:52:11 +01:00
Laurent MEUNIER
ee9c8acbe4
STM32 I2C: Initialize hz parameter before reset
...
The hz value is used to compute timeouts,
and timeout are used in reset function, so the parameter needs to be
initialized to its default value before being used.
2016-12-12 14:48:43 +01:00
Laurent MEUNIER
9895bcf130
STM32 I2C: restore slave address in case of reset
2016-12-12 14:44:37 +01:00
bcostm
fe73b43a0a
FIX to add the update of hdma->State variable
2016-12-12 10:43:25 +01:00
Brian Daniels
6085905658
Renames i2c_api.c for STM32F1 targets to fix IAR exporter.
...
The IAR build system does not allow two files to have the same name.
This renames the i2c_api.c file for the STM32F1 family to
i2c_api_stm32f1.c to avoid this issue. The common i2c_api.c file shared
among all ST targets is not actually used for STM32F1 targets as it
protected with an #ifdef guard.
2016-12-09 12:47:17 -06:00
Martin Kojtal
ce9d2526f8
Merge pull request #3409 from jeromecoutant/PR_ST_L1_ASSERT
...
STM32L1 : map ST HAL assert into MBED assert
2016-12-09 15:38:21 +01:00
Martin Kojtal
e01366ce8f
Merge pull request #3399 from bcostm/fix_issue_3266
...
NUCLEO_F103RB - Add SERIAL_FC feature
2016-12-09 15:37:57 +01:00
Martin Kojtal
e00850dbc9
Merge pull request #3382 from kgills/max32620_serial_readable
...
[MAX32620] Fixing serial readable function.
2016-12-09 15:37:25 +01:00
Martin Kojtal
00696e623f
Merge pull request #3378 from NXPmicro/K66_ENET
...
K66F: Enable LWIP feature
2016-12-09 15:36:58 +01:00
Martin Kojtal
b13954c6b5
Merge pull request #3377 from LMESTM/fix_L152RE_Rcc_Config
...
STM32 NUCLEO-L152RE Update system core clock to 32MHz
2016-12-09 15:36:07 +01:00
Martin Kojtal
a3e41f246e
Merge pull request #3369 from adustm/disco_f469_newpins
...
Add CAN2 missing pins for connector CN12
2016-12-09 15:35:07 +01:00
Martin Kojtal
04f940de2d
Merge pull request #3324 from LMESTM/dev_i2c_common_code
...
Dev i2c common code
2016-12-09 15:30:00 +01:00
Martin Kojtal
163667165e
Merge pull request #3312 from NXPmicro/SPI_ASYNCH_API
...
K64F: SPI Asynch API implementation
2016-12-09 15:15:54 +01:00
jeromecoutant
3ab5dce41d
STM32L1 : correct ST HAL API call
...
- RCC init: unused clock was enabled without any init parameters
- RCC init: one PLL parameter was missing
- ADC: a parameter setting was missing to init clock
- GPIO: mode was not allowed by ST HAL API
- ll_utils: compilation issue
2016-12-09 11:32:08 +01:00
jeromecoutant
db9dcb8b40
STM32F7 : correct ST HAL API call
...
- RCC init: unused clock was enabled without any init parameters
- RCC init: one PLL parameter was missing
- GPIO: mode was not allowed by ST HAL API
2016-12-09 09:58:54 +01:00
jeromecoutant
6aef5333bd
STM32F0 : correct ST HAL API call
...
- CAN: compilation issue with assert enabled
- ADC: init parameter was not allowed by ST HAL API
- GPIO: mode was not allowed by ST HAL API
2016-12-09 09:44:54 +01:00
jeromecoutant
12d2795871
STM32L1 : refactor stm32l1xx_hal_conf.h and map ST HAL assert into MBED assert
2016-12-08 17:03:25 +01:00
bcostm
810a980cb7
Add SERIAL_FC in targets.json/device_has field for NUCLEO_F103RB
2016-12-08 16:45:30 +01:00
bcostm
88988b688b
Add external declaration of PinMap_UART_RTS/CTS[] const tables
2016-12-08 16:43:26 +01:00
bcostm
db8f966a2c
Correct A3, A4, A5 pins definitions
2016-12-08 15:57:05 +01:00
bcostm
6787c14d97
Add platform in other python and json files
2016-12-08 15:57:05 +01:00
bcostm
9ce9d1a9e7
Correct SDIO_UART pins configuration
2016-12-08 15:57:05 +01:00
bcostm
49755981dd
Add this platform in mbed_rtx.h file
2016-12-08 15:57:05 +01:00
bcostm
5b2946ded9
Correct system clock configuration
2016-12-08 15:57:05 +01:00
bcostm
1796e8cd9a
Update hal_tick files
2016-12-08 15:57:05 +01:00