Mahadevan Mahesh
8c71fbc07f
K64F UART Asynch API: Fix synchronization issue
...
The UART state should be set to busy before starting the transfer
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-01-10 10:45:28 -06:00
Laurent MEUNIER
b15fc6a6b5
STM32: TIM: Initialize new TIM parameter
2017-01-10 16:53:20 +01:00
Laurent MEUNIER
cdcaf2a473
STM32: Serial: Use up to date MACROs
...
Following STM32 HAL update, it is needed to use up-to-date MACROs.
Otherwise, build would fail.
2017-01-10 16:53:17 +01:00
Laurent MEUNIER
0ca04ffb3e
STM32: HAL update, use I2C function instead of MACRO
...
Following HAL update, this is needed to use the I2C API function
rather than previously used MACRO.
An assert would fail at compilation time otherwise.
2017-01-10 16:53:15 +01:00
Laurent MEUNIER
af6cdabc28
STM32Cube_FW_F0_V1.7.0
...
CMSIS v2.3.0 => v2.3.1
STM32F0 HAL v1.4.0 => v1.5.0
LL Layer introduction for STM32F0
2017-01-10 16:50:35 +01:00
Alessandro Angelino
89641bc7e0
uVisor: Update K64F and EFM32GG linker scripts
...
This commit improves consistency between different platforms' linker
scripts. In particular, we use "__UVISOR_SRAM_START" instead of
"__UVISOR_BSS_START" as the uVisor BSS sections might be outside of the
SRAM (for example, when using a tightly-coupled memory).
2017-01-10 13:15:54 +00:00
adustm
3a53a5adc8
DISCO_F429ZI: Add support for uVisor
2017-01-10 13:15:54 +00:00
bcostm
ead72934ef
Add CAN feature and activate CAN tests for this platform
2017-01-10 11:22:51 +01:00
bcostm
31e6e5c182
Add CAN object structure
2017-01-10 11:15:38 +01:00
TomoYamanaka
0236d95fed
Fix I2C driver for RZ/A1H
...
Previously, when "length = 0" as failsafe, "return 0" is executed.
But we changed so that only START bit and STOP bit are executed same as other devices.
2017-01-10 12:44:12 +09:00
Sam Grove
be28fd85a9
Merge pull request #3438 from NXPmicro/SERIAL_ASYNC_API
...
K64F: Add support for SERIAL ASYNCH API
2017-01-09 10:46:46 -06:00
Sam Grove
4f9e9f635f
Merge pull request #3540 from LMESTM/fix_spi_rx_init
...
STM: SPI: Initialize Rx in spi_master_write
2017-01-09 10:37:05 -06:00
Sam Grove
5fd8a5e43a
Merge pull request #3539 from bcostm/dev_trng_nucleo-f412zg
...
NUCLEO_F412ZG - Add support of TRNG peripheral
2017-01-09 10:34:18 -06:00
Sam Grove
10b6dbf839
Merge pull request #3504 from CalSol/canfixes
...
[LPC15xx] CAN implementation improvements
2017-01-09 10:18:43 -06:00
Sam Grove
c305000f2b
Merge pull request #3503 from CalSol/pwmfix
...
[LPC15xx] Ensure that PWM=1 is resolved correctly
2017-01-09 10:18:01 -06:00
Sam Grove
cefae22703
Merge pull request #3492 from Nodraak/fix/3463/can_read_return_value
...
Fix #3463 CAN read() return value
2017-01-09 10:17:27 -06:00
Sam Grove
ddcd3ad711
Merge pull request #3488 from LMESTM/dev_stm_i2c_v2_unitary_functions
...
Dev stm i2c v2 unitary functions
2017-01-09 10:15:55 -06:00
jeromecoutant
633240b93b
STM32L4 deepsleep improvement
2017-01-09 12:21:24 +01:00
Laurent MEUNIER
fd3a3f9de8
STM: SPI: Initialize Rx in spi_master_write
...
In case Rx is not initiliased its content might be random from stack.
This is causing problem in case of 8 bits read only as the left-side 8 bits
of the returned int value may contain this random byte data. This was for
instance detected when using SDFileSystem Lib.
2017-01-06 13:20:55 +01:00
bcostm
30ac4aae75
Add support of TRNG peripheral
2017-01-06 10:36:29 +01:00
Laurent MEUNIER
4297e3fd36
STM32: I2C: i2c_byte_read return value in case of error
...
To make clear that an error is being reported, we shall report -1,
2 being the timeout error for i2c_byte_write only.
2017-01-03 18:06:19 +01:00
Adrien Chardon
885b018f77
Set bit without reseting the whole register
2017-01-03 11:46:27 +01:00
Adrien Chardon
7e0b4fe3c9
Fix can_read() return value for STM32 boards
2017-01-03 11:46:25 +01:00
Laurent MEUNIER
455c2ecbea
STM32: I2C: remove debug code
...
Few debug lines were to be removed / updated.
Move the printf to DEBUG_PRINTF and return the error when needed.
2017-01-03 10:18:56 +01:00
Richard Lin
14d579ad50
Fix && -> & typo
2017-01-02 01:47:43 -08:00
Michel Jaouen
25c0d9034f
USBHOST STM : add more board
...
NUCLEO : F411RE, L476VG, F746ZG
DISCO : L476VG
2017-01-02 09:51:48 +01:00
Michel Jaouen
14153dcbc3
USBHOST STM support :
...
NUCLEO : F429ZI, F446ZE, F207ZG, F767ZI, F401RE,
DISCO : F429ZI
2017-01-02 09:48:16 +01:00
Michel Jaouen
8af69dcbd6
STM32 HAL HCD : USBHOST changes for f4,f2,l4,f7
...
- reset toggle_out , toggle_in at init
- in/out toggle in on ctrl endpoint
- remove call back when transmission restarted
2017-01-02 09:48:15 +01:00
Martin Kojtal
e7361ebc44
Merge pull request #3365 from OpenNuvoton/nuvoton_usb
...
[NUC472/M453] Support USB device
2016-12-30 12:43:53 +01:00
Martin Kojtal
518b07263c
Merge pull request #3502 from NXPmicro/I2C_Zerobyte_Write
...
MCUXpresso I2C: Handle 0 byte write
2016-12-30 12:36:36 +01:00
Martin Kojtal
6598e32785
Merge pull request #3405 from samos2011/stm32f1_can_bug
...
Repair the transmit mailbox (0,1,2) empty interrupt flag not clear BUG
2016-12-30 12:31:18 +01:00
Mahadevan Mahesh
1280dfcca5
MCUXpresso I2C: Handle 0 byte write
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-12-28 08:03:49 -06:00
Richard Lin
9a8cd059f8
Ensure that PWM=1 is resolved correctly
2016-12-24 23:20:56 -08:00
Richard Lin
fd24700c50
Add TX, EW, EP, BO interrupts; allow reset to clear a bus-off condition
2016-12-24 01:51:55 -08:00
Martin Kojtal
6e7ee0e51e
Merge pull request #3489 from bcostm/fix_issue_3474
...
NUCLEO_F103RB - Correct CAN and PWM alternate-functions
2016-12-23 13:15:37 +00:00
Martin Kojtal
d652d391e6
Merge pull request #3454 from 0xc0170/jeromecoutant-PR_LPT
...
STM32: Refactor lp_ticker.c + rtc_api.c + sleep.c + rtc_api_hal.h files
2016-12-23 13:06:02 +00:00
Martin Kojtal
9b8efb2659
Merge pull request #3391 from jeromecoutant/PR_ST_F4_ASSERT
...
STM32F4 : map ST HAL assert into MBED assert
2016-12-23 13:05:35 +00:00
Mahadevan Mahesh
ece7b6f05b
K64F: Add support for SERIAL ASYNCH API
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-12-21 11:35:27 -06:00
jeromecoutant
2b4d83ef1e
Run astyle
2016-12-21 16:54:19 +00:00
jeromecoutant
ab28a5e5cb
STM32: Refactor lp_ticker.c + rtc_api.c + sleep.c + rtc_api_hal.h files
2016-12-21 16:54:18 +00:00
Martin Kojtal
3d620f9726
Merge pull request #3459 from 0xc0170/u-blox-Adding-UBLOX_EVK_NINA_B1-target
...
Target: Add new target UBLOX_EVK_NINA_B1
2016-12-21 15:09:09 +00:00
Martin Kojtal
920db8e4a3
Merge pull request #3451 from NXPmicro/Rename_KSDK2_MCUXpresso
...
Rename KSDK2 to MCUXpresso. This is the new name of this package
2016-12-21 15:08:28 +00:00
bcostm
30dddf115a
Correct wrong alternate-function number for CAN PB_8/PB_9 pins and PWM PC_7 pin
2016-12-21 10:27:50 +01:00
Laurent MEUNIER
20c9af8bec
STM32: I2C unitary functions for IP V2
...
STM32 supported targets have 2 possible versions of I2C.
This patch makes the start / stop / read and write byte work ok for IP V2.
This was not working before and does not seem to be widely used.
2016-12-21 09:27:52 +01:00
Michael Ammann
b1a9e7b1c8
Target: Add new target UBLOX_EVK_NINA_B1
...
Based on nrf51 MCU.
2016-12-20 10:31:14 +00:00
tomoyuki yamanaka
623f8acdc4
[RZ/A1H]Fix TTB setting of RO_DATA area
...
I modified the TTB setting of RO_DATA area.
The current setting of this area is "not executable".
Therefore, when trying to execute a program placed in this area, a prefetch abort will occur.
So I changed from "Sect_Normal_RO" to "Sect_Normal_Cod".
2016-12-20 16:44:52 +09:00
Mahadevan Mahesh
e5ba1d2b37
Rename KSDK2 to MCUXpresso. This is the new name of this package from NXP
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-12-19 14:20:25 -06:00
Anna Bridge
20eb127f80
Merge pull request #3460 from NXPmicro/I2C_UpdateReturnValue
...
KSDK I2C: Update the return value to match the API documentation change
2016-12-19 17:56:50 +00:00
Anna Bridge
f2ce7ebb99
Merge pull request #3442 from LMESTM/dev_stm_i2c_f1
...
Dev stm i2c f1
2016-12-19 17:51:58 +00:00
Anna Bridge
9e03765d04
Merge pull request #3422 from szechyjs/disco_f303vc_can
...
Enable CAN on DISCO_F303VC
2016-12-19 17:37:48 +00:00
Anna Bridge
d1aa6eea52
Merge pull request #3410 from jeromecoutant/PR_ST_L4_ASSERT
...
STM32L4 : map ST HAL assert into MBED assert
2016-12-19 17:33:13 +00:00
Anna Bridge
a915fa86e4
Merge pull request #3390 from jeromecoutant/PR_ST_F3_ASSERT
...
STM32F3 : map ST HAL assert into MBED assert
2016-12-19 17:24:26 +00:00
Anna Bridge
42389c1420
Merge pull request #3389 from jeromecoutant/PR_ST_F2_ASSERT
...
STM32F2 : map ST HAL assert into MBED assert
2016-12-19 17:23:37 +00:00
Anna Bridge
89190fd794
Merge pull request #3381 from jeromecoutant/PR_ST_F1_ASSERT
...
STM32F1 : map ST HAL assert into MBED assert
2016-12-19 17:22:54 +00:00
Mahadevan Mahesh
8ec93ca4a4
KSDK I2C: Update the return value to match the API documentation change
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-12-16 13:16:03 -06:00
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
ccli8
fff8357c1e
[NUC472] Fix compile error with Travis CI
...
Use MBED_CONF_RTOS_PRESENT to filter out mbedtls alternative for mbed OS 2.
2016-12-15 11:43:43 +08: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
jeromecoutant
dd88e97e0b
STM32F4 : correct ST HAL API call
...
- RCC init: one PLL parameter was missing
- GPIO: mode was not allowed by ST HAL API
2016-12-14 10:03:02 +01:00
Laurent MEUNIER
57eb4a0d1d
STM32 F1: move F1 to I2C common code
...
Now that F1 HAL has been updated to support required APIs,
the F1 family can also be moved to common code.
2016-12-14 08:36:30 +01:00
Laurent MEUNIER
e7cab5c8dc
[STM32] HAL F1: I2C fix btf / rxne cases
...
Applying the same fix as in L1 and F4.
This is an alignement to F4 HAL as the same IP is used.
2016-12-14 08:35:32 +01:00
Laurent MEUNIER
f88803b7fe
STM32 F1 HAL V1.0.5
...
This is a partial update of HAL drivers, especially for I2C driver update
2016-12-14 08:35:12 +01:00
Sam Lin
d4c18b0058
Use __HAL_CAN_CLEAR_FLAG macro clear TSR .
...
Redress stm32f1xx_hal_can.h header file comment
2016-12-14 08:42:55 +08:00
Jared Szechy
f941960d1c
Add alternative CAN pins to DISCO_F303VC
2016-12-13 11:20:22 -05: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
Jared Szechy
f5f3dc8143
Enable CAN on DISCO_F303VC
2016-12-11 22:03:29 -05: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