Commit Graph

4054 Commits (e3d8b28483714f4b09a032aaa73782633354653e)

Author SHA1 Message Date
Martin Kojtal 1c201b4628
Merge pull request #8910 from c1728p9/nrf52_tx_fix
Fix rare NRF52 serial TX lockup
2018-12-05 13:40:03 +01:00
Cruz Monrreal b32151bbe0
Merge pull request #8860 from ithinuel/aconno-port
Add the port for the ACONNO ACN52832 module on MTB's form factor
2018-12-04 11:52:14 -06:00
Cruz Monrreal 0f0e63aaac
Merge pull request #8900 from OpenNuvoton/nuvoton_refine_uart
Nuvoton: Refine UART init/deinit
2018-12-04 11:51:16 -06:00
Martin Kojtal 4dfb97c60f
Merge pull request #8899 from TomoYamanaka/master
Renesas : Add the setting of SD as components
2018-12-04 13:29:33 +01:00
Martin Kojtal 3411e5e095
Merge pull request #8952 from c1728p9/psoc6_mpu
Turn off MPU for PSOC 6
2018-12-04 12:45:25 +01:00
Cruz Monrreal 69c534d4c0
Merge pull request #8920 from juhoeskeli/odin_mpu_workaround
MODULE_UBLOX_ODIN_W2: disable MPU code until target properly supported
2018-12-03 21:16:08 -06:00
Cruz Monrreal f82014e1af
Merge pull request #8922 from juhoeskeli/wise_1570_mpu_disable
MTB_ADV_WISE_1570: disable MPU code until target properly supported
2018-12-03 21:15:21 -06:00
TomoYamanaka 9060bf884c Renesas : Add the setting of SD as components 2018-12-04 10:10:23 +09:00
Russ Butler 0bacb9adad Turn off MPU for PSOC 6
Turn off  the MPU for the PSOC 6 since it has a non-standard memory
map. This fixes crashes on boot for this target.
2018-12-03 14:27:36 -06:00
Russ Butler c48d3de85a Add rather than override PSOC 6 macros
Use "macros_add" rather than "marcos" so any macros defined by
MCU_PSOC6 are not overwritten.
2018-12-03 14:27:08 -06:00
Wilfried Chauveau fd6aa1b568
fix according to @ashok-rao's review 2018-12-03 16:30:46 +00:00
Wilfried Chauveau 1ba5861930
fix copyrights 2018-12-03 16:30:45 +00:00
Wilfried Chauveau 9f8d96a1a3
Add the port for the ACONNO ACN52832 module on MTB's form factor 2018-12-03 16:30:41 +00:00
Kari Haapalehto f6e16b9553 TARGET_WICED updated.
Connection status issue corrected. If the link layer status changes,
the connection status callback is now called correctly.

mbedtls headers from library are removed and the mbed-os one's are used.
2018-12-03 16:33:38 +02:00
Martin Kojtal d321c11531
Merge pull request #8872 from NXPmicro/Fix_RTC_Startup
MCUXpresso: Ensure the RTC OSC is running at bootup on Kinetis platforms
2018-12-03 13:41:56 +01:00
Martin Kojtal 3e90bb8cad
Merge pull request #8883 from NXPmicro/Fix_LPC546XX_Build_Failure
LPC546XX: Fix build failure due to incorrect merge
2018-12-03 13:36:47 +01:00
Martin Kojtal 179098d0f1
Merge pull request #8828 from OpenNuvoton/nuvoton_analogout
Nuvoton: Support DAC HAL
2018-12-03 13:18:57 +01:00
Cruz Monrreal 3cc7530039
Merge pull request #8844 from jeromecoutant/PR_HTML
STM32 : Remove html release notes files
2018-11-30 19:20:44 -06:00
Cruz Monrreal 5b9761e244
Merge pull request #8827 from mprse/ticker_free_k64f_fix
TARGET_MCUXpresso_MCUS: fix lp ticker init function
2018-11-30 17:55:35 -06:00
Cruz Monrreal 0b6ce4b220
Merge pull request #8798 from jeromecoutant/PR_LATENCY
STM32 : Add default deep sleep latency of 3ms
2018-11-30 17:53:25 -06:00
Martin Kojtal fa858a58ac
Merge pull request #8771 from jeromecoutant/PR_LPTICKER_LPTIM
STM32 LPTICKER with LPTIM optimisation
2018-11-30 14:31:52 +01:00
Juho Eskeli 6ba5104281 MTB_ADV_WISE_1570: disable MPU code until target properly supported 2018-11-30 14:41:08 +02:00
Juho Eskeli 05da721933 Disable MPU code until target properly supported 2018-11-30 12:43:09 +02:00
Russ Butler 131eed9b4f Fix rare NRF52 serial TX lockup
When using UARTSerial sending data over the uart follows the sequence
below:
<-TX done ISR runs and sets a software interrupt to pending
<-Software interrupt fires:
    -disables TX done interrupt
    -calls UARTSerial TX handler which sends bytes until the uart
     buffer filled (writeable returns false). Sending a byte
     re-enables the TX done interrupt continuing the cycle

Due to this sequence, if the UARTSerial TX handler does not send a byte
then the transmit state machine mentioned above will get stuck with
the TX done interrupt disabled. The events causing this failure:
<-TX done ISR runs and sets a software interrupt to pending
<-Software interrupt fires:
    -disables TX done interrupt
    -calls UARTSerial TX handler:
        -checks writeable which is true and sends a byte
            <- interrupted by a higher priority interrrupt
            <- TX done ISR runs, setting software interrupt to
               pending again
        -checks writeable which is true and sends a second byte
    -Software interrupt finishes
<-Software interrupt fires:
    -disables TX done interrupt
    -calls UARTSerial TX handler:
        -checks writeable which is false and DOES NOT SEND A BYTE
    -Software interrupt finishes, the TX interrupt is still disabled
*-Byte gets sent but TX done ISR does not fire

This patch prevents the TX lockup by removing the code in the
software interrupt which disables the TX done interrupt. Disabling the
TX done interrupt at this point is not necessary so this code is safe
to remove.
2018-11-29 19:09:04 -06:00
ccli8 a2c70f2ca4 [Nuvoton] Fix time to init/deinit stdio_uart
With support for checking H/W UART initialized or not, we can simplify stdio management:
1. When serial_init(&stdio_uart) calls in, just set the 'stdio_uart_inited' flag.
2. When serial_free(&stdio_uart) calls in, just clear the 'stdio_uart_inited' flag.
Except above, we needn't make special handling with 'stdio_uart'.
2018-11-29 10:23:22 +08:00
Mahesh Mahadevan dcc8b659bc MCUXpresso: Ensure the RTC OSC is running at bootup on Kinetis platforms
This is a fix for Issue 5348.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-11-28 10:31:58 -06:00
Vincent Coubard 93d8c71b73 NORDIC: Fix labels in target.
Somehow during the rebase, both have been inverted.
2018-11-28 11:28:34 +00:00
Vincent Coubard 837ba72cc1 NRF51: Add label to compile BLE softdevice implementation. 2018-11-28 10:26:14 +00:00
Donatien Garnier 89aabaec0d Fix some rebasing quirks 2018-11-28 10:26:14 +00:00
Steve Cartmell 4f7dcf4d34 refactor(pan-cordio): Make nordic softdevice the default link layer 2018-11-28 10:26:14 +00:00
Steve Cartmell 12fdab312e feat(pan-cordio): Add nordic softdevice sources back into repository 2018-11-28 10:26:14 +00:00
Steve Cartmell 0f4ded19ac feat(pan-cordio): Replace NRF51 softdevice BLE stack with cordio 2018-11-28 10:19:08 +00:00
Steve Cartmell c3e611399f fix(pan-cordio): Fix incorrectly adding macros to NRF52_DK target 2018-11-28 10:19:08 +00:00
Steve Cartmell 93267699b8 fix(pan-nordic): Fix memory allocation sizes to resolve NRF52832 issues 2018-11-28 10:19:08 +00:00
Steve Cartmell 815d0d5efc feat(pan-cordio): Add cordio-ll libraries and NORDIC implementation 2018-11-28 10:19:08 +00:00
Steve Cartmell 299ae1d9c6 fix(pan-cordio): Override WSF handler size in a platform specific manner 2018-11-28 10:19:08 +00:00
Martin Kojtal 52822cb8af
Merge pull request #8871 from c1728p9/mpu
MPU API (Reopened)
2018-11-28 10:28:32 +01:00
ccli8 a937a62bff [Nuvoton] Check configuration option for default UART baudrate setting 2018-11-28 16:59:15 +08:00
ccli8 ae98b94a10 [Nuvoton] Avoid re-configuring UART in serial_init() for the same H/W UART
The same H/W UART may be shared by multiple serial_t objects. This fix tries to avoid
re-configuring the same H/W UART in serial_init() when there are multiple serial_t
objects constructed. To re-configure UART, call serial_baud() and serial_format()
explicitly. This can avoid confusion when e.g. a newly constructed serial_t object
changes baudrate unexpectedly in serial_init().
2018-11-28 16:26:21 +08:00
ccli8 6b16112962 [Nuvoton] Remove unused pin_tx/pin_rx fields from serial_s struct 2018-11-28 16:17:39 +08:00
Mahesh Mahadevan 49c9f7f73d LPC546XX: Fix build failure due to incorrect merge
Commit ab84d2bf33 missed including
qspi_device.h file

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-11-27 09:42:52 -06:00
Netanel Gonen f1c5aeb70e add MBEDTLS_PSA_CRYPTO_C defined to K64F PSA target 2018-11-27 14:02:55 +02:00
jeromecoutant 4bc0018a9c STM32 readme md file 2018-11-27 11:26:32 +01:00
Martin Kojtal a2368967c0 add MPU support for 3 targets
They should support MPU as they have all defined. Otherwise it fails to build
2018-11-27 10:24:53 +00:00
jeromecoutant 3b77fb0e78 STM32 : Add default deep sleep latency of 3 ms 2018-11-27 11:15:42 +01:00
Danny Shavit e72d910754 Add a weak implementation for trng_get_bytes() 2018-11-27 11:56:49 +02:00
Donatien Garnier 72f3680f1d Disable MPU on RTL8195A 2018-11-27 09:29:33 +00:00
Russ Butler 02b50b44ef Define MPU_ROM_END for all targets
Set a default value for MPU_ROM_END in target so this is defined for
all targets.
2018-11-27 09:29:33 +00:00
Russ Butler fb7e7e91ff Add MPU to device_has in targets.json
Add MPU for devices which support the API in targets.json.
2018-11-27 09:29:31 +00:00
Oren Cohen 2b3822e6cd Fix targets.json 2018-11-27 09:18:10 +02:00