TsungtaWu
1bc31a80a4
Add DELTA_DFCM_NNN50 platform
...
greentea tests are all passing
mbedgt: test case results: 175 OK
Please kindly review this PR
2017-01-30 11:19:01 +00:00
Mahadevan Mahesh
0a7848cb68
K22F: Enable TRNG
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-01-30 11:18:40 +00:00
Jimmy Brisson
dd8f2b6ddb
Correct definition of LPC4088* to use a common ancestry
2017-01-30 11:18:07 +00:00
jeromecoutant
366c7f3599
DISCO_F769NI: targets update
...
- correct clock for USB
- add ARM micro support
- add OS5 release support
- add TRNG support
- add ARDUINO form factor support
2017-01-30 11:17:28 +00:00
jeromecoutant
802d3fd88d
STM32Cube_FW_F7_V1.5.1 CMSIS v1.1.0 => v1.1.2 STM32F7 HAL v1.1.0 => v1.1.2
2017-01-30 11:17:23 +00:00
Laurent MEUNIER
4f12a3728d
STM32: make PeripheralPins.h a common file
...
Simple effort to avoid duplicate code.
2017-01-30 11:17:19 +00:00
Laurent MEUNIER
56053092ce
STM32: gpio: factorize gpio_api.c and gpio_object.h
...
Let's make the code more common for gpios.
The only difference between STM32 families is that BRR register may
not be available. In case BRR is not available, we use the 16 left bits
of BSRR instead. We could always use BSRR, but BRR saves one left-shift
operation, so let's use it when available.
By default we will consider using BRR, except for platforms that define
GPIO_IP_WITHOUT_BRR.
2017-01-30 11:17:15 +00:00
Laurent MEUNIER
84d144ba20
STM32: remove useless include
...
gpio_object.h is included from common_objects.h,
so no need to have it here.
2017-01-30 11:17:11 +00:00
Mike Fiore
0c16cb6639
use LSI for RTC since LSE is no longer populated by default
2017-01-30 11:17:07 +00:00
Alessandro Angelino
61f569b216
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-30 11:16:58 +00:00
adustm
169c2f14c7
DISCO_F429ZI: Add support for uVisor
2017-01-30 11:16:54 +00:00
Brian Daniels
c8d916e281
Fixes linking errors when building with debug profile
...
When building with the debug profile, certain ST plaforms error with
'get_i2c_timing' not being defined. This is because the function is not
defined as 'static inline', but just 'inline'.
2017-01-13 14:35:57 +00:00
Laurent MEUNIER
f2a94c8dce
STM32: TIM: Initialize new TIM parameter
2017-01-13 14:35:55 +00:00
Laurent MEUNIER
08f1a4fc2b
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-13 14:35:54 +00:00
Laurent MEUNIER
b4a0c0370f
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-13 14:35:52 +00:00
Laurent MEUNIER
d3c583858a
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-13 14:35:51 +00:00
Russ Butler
c630d5309a
LPC4088 - Fix vector checksum
...
Turn on the vector checksum on all LPC4088 variants. This checksum is
required for an application to boot.
2017-01-13 14:35:49 +00:00
Mahadevan Mahesh
018e286ba2
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-13 14:35:47 +00:00
TomoYamanaka
ec7f949bfe
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-13 14:35:41 +00:00
bcostm
17397467c7
Add CAN feature and activate CAN tests for this platform
2017-01-13 14:35:36 +00:00
bcostm
9edb16f60c
Add CAN object structure
2017-01-13 14:35:35 +00:00
jeromecoutant
bb453c666e
STM32L4 deepsleep improvement
2017-01-13 14:35:32 +00:00
Mahadevan Mahesh
609d6a1e14
MCUXpresso: Fix ENET driver to enable interrupts after interrupt handlers are set
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-01-13 14:35:26 +00:00
Mahadevan Mahesh
92813b9ff6
K64F: Add support for SERIAL ASYNCH API
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-01-13 14:35:20 +00:00
Laurent MEUNIER
58edf549c8
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-13 14:35:19 +00:00
bcostm
7ba1aa5027
Add support of TRNG peripheral
2017-01-13 14:35:17 +00:00
Richard Lin
5c9ea66fcb
Fix && -> & typo
2017-01-13 14:35:01 +00:00
Richard Lin
9b8f5c33b1
Add TX, EW, EP, BO interrupts; allow reset to clear a bus-off condition
2017-01-13 14:34:59 +00:00
Richard Lin
7ff993bd9d
Ensure that PWM=1 is resolved correctly
2017-01-13 14:34:58 +00:00
Adrien Chardon
22c454bcb5
Set bit without reseting the whole register
2017-01-13 14:34:56 +00:00
Adrien Chardon
189747f8fd
Fix can_read() return value for STM32 boards
2017-01-13 14:34:55 +00:00
Laurent MEUNIER
76e406f323
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-13 14:34:53 +00:00
Laurent MEUNIER
dbecf14c36
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-13 14:34:52 +00:00
Laurent MEUNIER
859dbb4240
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.
2017-01-13 14:34:45 +00:00
Mahadevan Mahesh
14a2e3afe2
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-30 12:47:49 +00:00
ccli8
4c2406ee73
Fix compile error with Travis CI
...
Use MBED_CONF_RTOS_PRESENT to filter out mbedtls alternative for mbed OS 2.
2016-12-30 12:42:56 +00:00
ccli8
702cf49648
Integrate with Travis CI
...
1. Add targets into build_travis.py and tests.py.
2. Add target SPI pins into SPI SD test samples.
3. Rename target TOOLCHAIN_GCC_ARM/retarget.c to avoid name collision of compiled retarget.o with platform/retargets.cpp.
2016-12-30 12:42:49 +00:00
ccli8
fa5333195f
Support USB device
2016-12-30 12:42:47 +00:00
Mahadevan Mahesh
1be750c669
MCUXpresso I2C: Handle 0 byte write
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-12-30 12:42:43 +00:00
Sam Lin
57bdd47f17
Use __HAL_CAN_CLEAR_FLAG macro clear TSR . Redress stm32f1xx_hal_can.h header file comment
2016-12-30 12:42:28 +00:00
Sam Lin
836ff13919
Repair the Transmit mailbox (0,1,2) empty interrupt Flag not clear BUG
2016-12-30 12:42:26 +00:00
bcostm
a2ca39538f
Correct wrong alternate-function number for CAN PB_8/PB_9 pins and PWM PC_7 pin
2016-12-30 12:42:23 +00:00
jeromecoutant
4e83b88257
Run astyle
2016-12-30 12:42:06 +00:00
jeromecoutant
8627204d36
STM32: Refactor lp_ticker.c + rtc_api.c + sleep.c + rtc_api_hal.h files
2016-12-30 12:42:04 +00:00
jeromecoutant
c9e5f2753e
STM32F4 : correct ST HAL API call
...
- RCC init: one PLL parameter was missing
- GPIO: mode was not allowed by ST HAL API
2016-12-30 12:42:02 +00:00
jeromecoutant
48ee909a6d
STM32F4 : refactor stm32f4xx_hal_conf.h and map ST HAL assert into MBED assert
2016-12-30 12:42:00 +00:00
Michael Ammann
be467a64ac
Target: Add new target UBLOX_EVK_NINA_B1
...
Based on nrf51 MCU.
2016-12-30 12:41:53 +00:00
tomoyuki yamanaka
9a577b2340
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-30 12:41:49 +00:00
Mahadevan Mahesh
6070652197
KSDK I2C: Update the return value to match the API documentation change
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-12-30 12:41:32 +00:00
Laurent MEUNIER
abd9014853
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-30 12:41:27 +00:00
Laurent MEUNIER
e736c4b2d1
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-30 12:41:25 +00:00
Laurent MEUNIER
b62d237fde
STM32 F1 HAL V1.0.5
...
This is a partial update of HAL drivers, especially for I2C driver update
2016-12-30 12:41:23 +00:00
Jared Szechy
ca10f72bf7
Add alternative CAN pins to DISCO_F303VC
2016-12-30 12:41:19 +00:00
Jared Szechy
613d552a21
Enable CAN on DISCO_F303VC
2016-12-30 12:41:14 +00:00
jeromecoutant
b8ddac0fbb
STM32L4 : correct ST HAL API call
...
- ll_utils: compilation issue
- GPIO: mode was not allowed by ST HAL API
2016-12-30 12:41:12 +00:00
jeromecoutant
3a6edfe7f1
STM32L4 : refactor stm32l4xx_hal_conf.h and map ST HAL assert into MBED assert
2016-12-30 12:41:10 +00:00
jeromecoutant
fae4f10678
STM32F3 : correct ST HAL API call
...
- CAN: compilation issue with assert enabled
- GPIO: mode was not allowed by ST HAL API
2016-12-30 12:41:06 +00:00
jeromecoutant
218d9c61a7
STM32F3 : map ST HAL assert into MBED assert
2016-12-30 12:41:03 +00:00
jeromecoutant
7bce9c78d3
STM32F2 : correct ST HAL API call
...
- GPIO: mode was not allowed by ST HAL API
2016-12-30 12:41:01 +00:00
jeromecoutant
23510b4152
STM32F2 : map ST HAL assert into MBED assert
2016-12-30 12:40:59 +00:00
jeromecoutant
605ceb5e1e
STM32F1 : correct ST HAL API call
...
- GPIO: mode was not allowed by ST HAL API
- PIN map: assert has highlighted an issue for pullup/pulldown setting
- RTC: year after 2000 was not taken into account
2016-12-30 12:40:57 +00:00
jeromecoutant
765095e33c
STM32F1 : map ST HAL assert into MBED assert
2016-12-30 12:40:55 +00:00
Laurent MEUNIER
e69cbf70bf
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-30 12:40:52 +00:00
Laurent MEUNIER
1fe00ca5c6
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-30 12:40:50 +00:00
Laurent MEUNIER
60aca8fdc0
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-30 12:40:48 +00:00
Laurent MEUNIER
4c56b1e24c
STM I2C - move i2c_read in SYNC part
...
just change the place of code to have i2c_read and i2c_write together
2016-12-30 12:40:46 +00:00
Anna Bridge
137fb4aba3
Manually patch: DELTA_DFBM_NQ620 default configuration #3298
2016-12-19 14:54:55 +00:00
cyliangtw
9c5eb11087
Fix GCC warnings
2016-12-19 14:40:02 +00:00
ccli8
a6a2ecf0fa
Fix stuck in lp_ticker_init()
2016-12-19 14:40:00 +00:00
cyliangtw
e50c7af143
Resolve TRNG GCC warning
2016-12-19 14:39:59 +00:00
ccli8
db119c774c
Fix compile error for SHA-256 alternative on some condition
...
Also include non-issue refinement for SHA-1/SHA-256 alternatives.
2016-12-19 14:39:57 +00:00
ccli8
4fcb5058fc
Fix PWM clock error in BSP driver
2016-12-19 14:39:56 +00:00
ccli8
5510375dee
Change UART RTS/CTS to low level active
2016-12-19 14:39:54 +00:00
ccli8
acafdf8304
Fix serial async transfer failed as data with is 16/32
2016-12-19 14:39:52 +00:00
Laurent MEUNIER
cf1ea9cecc
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-19 14:39:51 +00:00
Laurent MEUNIER
aec4f2dbb5
SMT32 I2C: initialize clock before configuring PINs
...
This is needed especially for F1 family but can apply to all.
2016-12-19 14:39:49 +00:00
Laurent MEUNIER
6906fbb4a6
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-19 14:39:48 +00:00
Laurent MEUNIER
151a9ef6c6
STM32 I2C: use higher IRQ priority for slave vs. master
2016-12-19 14:39:46 +00:00
Laurent MEUNIER
277503e4bb
STM32 I2C: restore slave address in case of reset
2016-12-19 14:39:45 +00:00
bcostm
6e94ec7dbe
FIX to add the update of hdma->State variable
2016-12-19 14:39:43 +00:00
jeromecoutant
4a7316e786
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-19 14:39:27 +00:00
jeromecoutant
0eb0121ba3
STM32L0 : refactor stm32l0xx_hal_conf.h and map ST HAL assert into MBED assert
2016-12-19 14:39:26 +00:00
jeromecoutant
9fb2a1820d
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-19 14:39:24 +00:00
jeromecoutant
ebda4649d8
STM32F7 : refactor stm32f7xx_hal_conf.h and map ST HAL assert into MBED assert
2016-12-19 14:39:23 +00:00
andreas.larsson
d40c1837c9
Added tmpisr = regs->ISR; at the end of the while loop to re-evaluate the ISR value
2016-12-19 14:39:21 +00:00
jeromecoutant
dc3252b61a
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-19 14:39:18 +00:00
jeromecoutant
35ccdab0cc
STM32F0 : map ST HAL assert into MBED assert
2016-12-19 14:39:16 +00:00
bcostm
01c120894b
Correct A3, A4, A5 pins definitions
2016-12-19 14:39:11 +00:00
bcostm
d2bbadfec8
Add platform in other python and json files
2016-12-19 14:39:10 +00:00
bcostm
3541878896
Correct SDIO_UART pins configuration
2016-12-19 14:39:08 +00:00
bcostm
3b838d28ec
Add this platform in mbed_rtx.h file
2016-12-19 14:39:07 +00:00
bcostm
035c8d3770
Correct system clock configuration
2016-12-19 14:39:05 +00:00
bcostm
51000a3a1e
Update hal_tick files
2016-12-19 14:39:03 +00:00
bcostm
702320acd7
Add startup and linker files for ARM_STD, ARM_MICRO, IAR
2016-12-19 14:39:02 +00:00
bcostm
e22bbbaee6
Add GCC_ARM files and fix errors during GCC build
2016-12-19 14:39:00 +00:00
bcostm
c279154a6b
Add cmsis, hal_tick, system files
2016-12-19 14:38:58 +00:00
bcostm
b64f0870a4
Add first pin, port and objects files
2016-12-19 14:38:57 +00:00
tomoyuki yamanaka
c01027b2b4
Fix frequency function of CAN driver.
...
Until now, when the frequency function of CAN driver was executed, signal no output, and the frequency could not be changed.
Since there was an error in the frequency changing procedure I modified it.
2016-12-19 14:38:55 +00:00
Brian Daniels
ddf1de5152
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-19 14:38:52 +00:00
jeromecoutant
00d58f0fa3
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-19 14:38:50 +00:00