Commit Graph

1226 Commits (6ee4c7e21963b184b1f93c0bf9375b583dbc9051)

Author SHA1 Message Date
Bartek Szatkowski b97ffe8fdc CMSIS5: Replace target defined NVIC_Set/GetVector with CMSIS implementation 2017-05-30 18:55:51 +01:00
Francisco J. Manno 5e98da14d3 STM32s Serial does not properly handle parity bits
Reworked the serial_format() function for STM32F0x
devices to take the format in the form:
data_bits - parity - stop_bits

E.g. 8 - N - 1

where data_bits exclude the parity bit.
Added a case for 7 bits data as at least the chips
STM32F0x1/STM32F0x2/STM32F0x8 support 7 bits data.

Consolidated serial_format() and uart_init()
functions into a general TARGET_STM serial_api.c
file since the functions are common to all STM targets.

Fixes #4189
2017-05-30 17:17:20 +01:00
Anna Bridge 45b4d41bbd Merge pull request #4329 from adustm/can_sync_error
Fix for #3863: STM Check can sync error
2017-05-30 16:52:09 +01:00
Anna Bridge 9c6a068d48 Merge pull request #4324 from monkiineko/master
STM32F3: Remove dependence upon a specific flash vector table location
2017-05-30 16:50:45 +01:00
Laurent MEUNIER eeb9672387 STM32: Check TIM_AUTORELOAD_PRELOAD_DISABLE
F2 family also require that TIM_AUTORELOAD_PRELOAD_DISABLE is set,
otherwise the field could have undefined value from the stacj and may
lead to undefined behavior.

The error was found using USE_FULL_ASSERT HAL option.

Rather than adding F2 to the list of family, let's set this parameter for
any family where TIM_AUTORELOAD_PRELOAD_DISABLE applies.
2017-05-29 13:48:29 +02:00
Laurent MEUNIER 8576993a1a Introduce stm32_assert.h for MBED port
When we want to activate USE_FULL_ASSERT macro in STM32 CUBE, there is a
need to have the assert map to MBED.

The easiest way to have this definition in a single place for all STM32
HAL and LL files using it, is to add a specific header file where the
porting to MBED is done.
2017-05-29 13:48:29 +02:00
Laurent MEUNIER 5b510a35a6 F2 CUBE V1.6.0
This PR updates STM32 Cube SDK to
- HAL V1.2.1
- LL V1.2.1
- CMSIS 2.2.0
2017-05-29 13:48:29 +02:00
adustm 6770678811 Fix another typo 2017-05-29 10:24:03 +02:00
adustm 795bfd2288 Fix coding style 2017-05-29 10:24:03 +02:00
adustm b99ccf65bd Add timeout also on the 1st while loop 2017-05-29 10:24:03 +02:00
adustm 9a1d05551b Optimize the use of the status value 2017-05-29 10:24:03 +02:00
adustm 897625cc96 Give access to HAL_GetTick function 2017-05-29 10:24:03 +02:00
adustm 52d38a1be0 Handle can_frequency sync error
add a timeout + return an error message
2017-05-29 10:24:03 +02:00
Sam Grove 2561e0bff4 Merge pull request #4299 from jeromecoutant/PULL_REQUEST_CUBE_UPDATE_F4_V1.16.0
STM32F4 cube update from v1.12.0 to v1.16.0
2017-05-26 17:13:08 -05:00
Sam Grove 2500ab03f2 Merge pull request #4351 from jeromecoutant/PULL_REQUEST_CUBE_UPDATE_L4_V1.8.0
STM32L4 cube update from v1.5.0 to v1.8.0
2017-05-26 16:58:37 -05:00
Sam Grove c74013e932 Merge pull request #4383 from snelson-senet/master
#4354 Fix MOTE_L152RC GPIO Write
2017-05-26 16:27:25 -05:00
Sam Grove d11289b576 Merge pull request #4165 from adustm/can_init
fix #3863 Add an mbed API that allows the init of the CAN at the bus frequency
2017-05-26 10:45:19 -05:00
Sam Grove 58e88813a9 Merge pull request #4282 from kl-cruz/FlashAPI_nRF52840
Flash api nRF52840
2017-05-26 10:31:05 -05:00
Sam Grove 049402c39f Merge pull request #4315 from theotherjimmy/thinkberg-master
Add support for ubirch boards
2017-05-26 10:26:40 -05:00
Christopher Haster e352f1b7f8 k64f: Added SPI block write using DSPI_MasterTransferBlocking
performance improvements:
naive block writes    3.997Mbps
DSPI block writes    17.809Mbps
2017-05-25 12:08:39 -05:00
Christopher Haster c1de19e49e spi: Added default spi_master_block_write implementation to all targets
There is an easy default implementation of spi_master_block_write that
just calls spi_master_write in a loop, so the default implementation
of spi_master_block_write has been added to all targets.
2017-05-25 12:04:58 -05:00
Shaun Nelson 30579e8131 4354 Fix MOTE_L152RC GPIO Write
Add #define GPI_IP_WITHOUT_BRR
2017-05-24 11:37:15 -04:00
Jimmy Brisson a3f7d06101 Partially Revert "Remove Cortex A boards as Cortex-A it is not supported in CMSIS5/RTX2"
This partially reverts commit e535493a01.
2017-05-23 13:57:59 -05:00
Leon Lindenfelser d9a0984280 Add IAR to post_binary_hook toolchains so the boot loader is pre-pended to the binary file when using the IAR compiler. 2017-05-22 13:38:02 -05:00
Jimmy Brisson da9b8f3dee Move duplicated NRF52 + MCU_NRF51822 files into NRF52 2017-05-22 11:26:43 -05:00
Jimmy Brisson 0ca9a6b479 Merge pull request #4353 from theotherjimmy/fix-static-nrf5
Add static to NRF5 SDK11 macro definition
2017-05-19 16:44:43 -05:00
Jimmy Brisson e4739835ce Add static to NRF5 SDK11 macro definition 2017-05-19 15:06:41 -05:00
jeromecoutant 5dc49b7d6c STM32L4 replace deprecated macro name 2017-05-19 11:59:38 +02:00
Martin Kojtal 5d0ce3c531 Merge pull request #4338 from andreaslarssonublox/ublox_odin_driver_os_5_v1.3_rc2
u-blox ODIN driver v1.3 rc2 for mbed OS 5
2017-05-19 08:42:14 +01:00
Sam Grove a2a1581e2e Merge pull request #4263 from Pliny/master
stm32f4xx: Consider all DMA ready/busy states in conditionals
2017-05-19 01:45:00 -05:00
jeromecoutant 0178969e90 STM32Cube_FW_L4_V1.8.0
CMSIS v1.1.1 => v1.3.1
    STM32L4 HAL v1.5.1 => v1.7.1
2017-05-18 14:36:32 +02:00
andreas.larsson e563fd477a Updated ODIN driver binaries for v1.3 rc2 2017-05-17 23:14:57 +02:00
andreas.larsson e177bcfd1f Refactored the driver class 2017-05-17 23:13:29 +02:00
andreas.larsson e0de402c77 Added BD_ADDR macros 2017-05-17 23:13:14 +02:00
andreas.larsson dcc303225c Added quality of service functions 2017-05-17 23:12:54 +02:00
andreas.larsson db2623d318 Added cbBSM_setStaticLinkKeyNvdsId 2017-05-17 23:12:19 +02:00
andreas.larsson 9e61a52c12 Added cbHW_setSysTickMode 2017-05-17 23:12:05 +02:00
andreas.larsson 233b92ce3f Added cbSTATUS_RECEIVE_DATA_MODE + macros 2017-05-17 23:11:50 +02:00
andreas.larsson fba7b7f6c1 Fixed startHandle type for cbGATT_addService 2017-05-17 23:11:25 +02:00
andreas.larsson 358fa5d564 Minor comment fixes 2017-05-17 23:11:01 +02:00
andreas.larsson 8d4e602313 Moved stream interface to cb_cert_utils.h 2017-05-17 23:10:25 +02:00
andreas.larsson 27f5806c37 Moved stream interface to cb_cert_utils.h 2017-05-17 23:09:42 +02:00
Martin Kojtal 8f295177ce Merge pull request #4317 from c1728p9/reduce_test_overhead
Reduce test overhead in preperation for CMSIS 5
2017-05-17 10:13:25 +01:00
kl-cruz 5cac624a2d nRF52840: Align sources after rebase 2017-05-17 09:21:51 +02:00
kl-cruz 4bb818cd97 nRF52840: Fixed flashapi test and casting issue 2017-05-17 09:21:39 +02:00
kl-cruz 98d4a13959 nRF52840: Aligned sources to coding standard 2017-05-17 09:21:27 +02:00
kl-cruz 7761af2b8d nRF52840: Removed unused, commented code 2017-05-17 09:21:17 +02:00
kl-cruz bd25d3bbda nRF52840: Added checking if sd is enabled in flashapi 2017-05-17 09:21:05 +02:00
kl-cruz 5e057a685d nRF52840: Cleaned up code 2017-05-17 09:20:54 +02:00
kl-cruz 39b0ef5394 nRF52840: Added flash_api implementation 2017-05-17 09:20:29 +02:00
Bartek Szatkowski eabc0cf70c Enable CMSIS_VECTAB_VIRTUAL for Nordic platforms
This change is part of CMSIS5 update. Enabling CMSIS_VECTAB_VIRTUAL for
Nordic platform is necessary to preserve platform specific NVIC ops.
2017-05-15 17:39:19 -05:00
Bradley Scott 2f73d3b4a7 STM32F3: Remove dependence upon a specific flash vector table location
The STM32F3 cmsis_nvic code is currently checking for a specific flash
address when determining if the vector table is in flash or RAM.  By
changing the test to instead see if the vector table base is NOT set to
the RAM address, it simplifies the code, and removes the dependency on
the flash vectors being located at a specific address.  This becomes
important when adding a custom boot loader, which requires that the
flash vector table location in the mbed project be at a different
address.
2017-05-15 14:20:50 -04:00
Russ Butler 0a3b2561bc Merge pull request #4316 from c1728p9/remove_cortex_a
Remove Cortex A boards as Cortex-A it is not supported in CMSIS5/RTX2
2017-05-15 11:55:36 -05:00
Martin Kojtal cd84f17ac4 Merge pull request #4312 from c1728p9/remove_systick
BEETLE: Remove unused and conflicting systick
2017-05-15 16:24:40 +01:00
Martin Kojtal 349315a207 Merge pull request #4310 from c1728p9/fix_ncs36510_vector_table
Fix RAM vector table for NCS36510
2017-05-15 16:23:44 +01:00
Martin Kojtal cb3531c438 Merge pull request #4305 from LMESTM/fix_increase_stm32_spi_timeout
Increase stm32 timeout for spi transfers
2017-05-15 16:22:59 +01:00
Martin Kojtal 5af3b0d03b Merge pull request #4302 from ytsuboi/master
[RO359B] platform added
2017-05-15 16:22:28 +01:00
Martin Kojtal a75b29bcac Merge pull request #4296 from LMESTM/dev_stm32_hal_F1_V1.5.0
Dev stm32 hal f1 v1.5.0
2017-05-15 16:20:51 +01:00
Martin Kojtal 1705d10790 Merge pull request #4272 from jeromecoutant/PR_F429_D11
STM32 NUCLEO boards with Ethernet connector: solve conflict with D11 arduino pin
2017-05-15 16:12:06 +01:00
Martin Kojtal ef56d9569b Merge pull request #4245 from nvlsianpu/merge_nrf52840_to_nrf5
[NRF5 + NRF52840]: Merge nrf52840 to [NRF5] sources
2017-05-15 16:10:32 +01:00
Martin Kojtal 3ca5c36768 Merge pull request #4241 from OpenNuvoton/nuvoton
[NUC472/M453] Fix serial error with sync/async calls interlaced
2017-05-15 16:07:11 +01:00
Martin Kojtal d98da4089a Merge pull request #4231 from jamike/USBH0ST_TARGET_STM_HUB_SUPPORT
USBHOST hub support for TARGET_STM
2017-05-15 16:01:34 +01:00
Martin Kojtal 444ff098fd Merge pull request #4226 from Wiznet/master
[WIZnet][W7500*] Support for mbed OS 5
2017-05-15 16:00:23 +01:00
Jimmy Brisson c983b3a142 Use target inheritance for USENSE and UBRIDGE 2017-05-15 09:47:32 -05:00
adustm a769d2b6a5 add comment in peripheral pin of DISCO_L476VG so that
the user is aware of conflicts
2017-05-15 15:06:29 +02:00
adustm 577a0d972b STM targets: the free irq function was not well implemented
the index of the table was out of range
2017-05-15 14:27:22 +02:00
adustm 6c1fc983b7 RENESAS: add call to can_frequency and use hz parameter of can_init_freq 2017-05-15 14:27:22 +02:00
adustm 9115dd9b98 Add can_init_freq for STM devices 2017-05-15 14:27:22 +02:00
adustm 3d44a3fcc3 add can_init_freq for NUVOTON platforms 2017-05-15 14:27:22 +02:00
adustm 1fe20b281a Add can_init_frequency for NXP platforms 2017-05-15 14:27:22 +02:00
Bartek Szatkowski c82c40f378 Temporarily increase max number of tasks for small boards
Affected boards: NRF51_DK, NRF52_DK, Beetle. This change is temporary and
will be overwritten by RTX update. It's necessary for the boards to pass
updated tests.
2017-05-15 13:23:08 +01:00
adustm a912d05f3b Add can_init_frequency to RENESAS targets
hz is not used in can_init functions
2017-05-15 14:14:26 +02:00
Bartek Szatkowski e535493a01 Remove Cortex A boards as Cortex-A it is not supported in CMSIS5/RTX2 2017-05-12 17:14:04 -05:00
Matthias L. Jugel 2cf7403edc fix ubridge and usense target
fix ubridge and usense target
2017-05-12 15:15:12 -05:00
Matthias L. Jugel b6d5d9bf5d fixed clock config, fixed UART pins
fixed clock config, fixed UART pins

fixed clock config, fixed UART pins

fixed clock config, fixed UART pins
2017-05-12 15:14:47 -05:00
Matthias L. Jugel 0d5023430b add usense support
add usense support

add usense support
2017-05-12 15:14:46 -05:00
Matthias L. Jugel 2a665882e9 mbed kinetis low power modes
mbed kinetis low power modes

mbed kinetis low power modes
2017-05-12 15:14:46 -05:00
Matthias L. Jugel 265c04697f patch latest clock settings for ubirch#1
fix lpuart clock source settings, retrieve clock frequency accordingly
2017-05-12 15:14:24 -05:00
Matthias L. Jugel 0e504da9f6 fix uart settings 2017-05-12 15:14:03 -05:00
Matthias L. Jugel b1a532553c Add USENSE and UBRIDGE targets, and add trng to K82F and KL82Z 2017-05-12 15:13:32 -05:00
Russ Butler f32be95c9d BEETLE: Remove unused and conflicting systick
Remove the systick_timer driver from the BEETLE. This driver is both
unused and conflicts with the upcoming RTX5 PR.
2017-05-12 14:46:53 -05:00
Russ Butler 5cf2255afb Fix RAM vector table for NCS36510
Fix the ram address of the vector table on the NCS36510. Also reserve
space for it in the linker scripts.
2017-05-12 14:20:30 -05:00
Bartek Szatkowski 2ddf4b33cb CMSIS5: Remove ARM7 support and targets 2017-05-12 13:48:43 -05:00
Jimmy Brisson 0501a14e73 Merge pull request #4308 from c1728p9/MAX32630FTHR_fix_NVIC_SetVector
Fix NVIC_SetVector type in HAL for MAX32630FTHR
2017-05-12 13:14:00 -05:00
Dave Desrochers 42f66eec60 stm32f4xx: Revert #3424
According to @betzw, #3424 was put in for I2S with DMA.  However, the latest I2S library now works without this patch.

The changes in DMA HAL for this potentially introduced corner case
scenarios. So it's best to revert the DMA changes.
2017-05-12 10:11:08 -07:00
Yoshihiro TSUBOI bccda51c68 [RO359B] removed itself from extra_labels 2017-05-12 23:19:01 +09:00
jeromecoutant 92c55e7f31 Correct compilation issue 2017-05-12 15:38:25 +02:00
Laurent MEUNIER 7d17532911 STM32 SPI do not use a timeout for spi transfers
Default timeout of 10ms was reported as an issue in #4300

There seems to be conditions or use cases where the system is loaded with
higher priority tasks so that SPI transfer would be delayed more than 10ms.
Recommendation from MBED team is to not implement any timeout at all as
there is no defined API in MBED to inform application of error cases.
2017-05-12 11:25:47 +02:00
Bartosz Szatkowski 14cfe8bac8 Limit ISR stack to 4k on NUCLEO_F429ZI 2017-05-11 18:11:36 -05:00
Martin Kojtal d4bab30923 MAX32630FTHR: Fix NVIC_SetVector type in HAL
Change the irq_handler parameter of NVIC_SetVector from a function
pointer to a uin32_t so it matches the cmsis specification. This
prevents the following problem from occurring in RTX5 when building
for IAR:
The error: Error[Pe167]: argument of type "void (*)(void)" is incompatible
with parameter of type "uint32_t".
2017-05-11 18:09:58 -05:00
Yoshihiro TSUBOI 3c1399482f [RO359B] platform added 2017-05-11 20:39:45 +09:00
jeromecoutant 927cba8fa5 STM32F4: remove deprecated macro 2017-05-11 12:38:49 +02:00
Laurent MEUNIER c98342eaa1 Fixing Typo in MACRO 2017-05-11 09:20:39 +02:00
Brian Daniels a8bd3b2cb7 Removes FLASH capabilities for the ARCH_PRO.
This platform is failing a flash test at this time. This commit disables
the capability (and therefore the test) until it is fixed.
2017-05-10 15:16:22 -05:00
jeromecoutant 00163067fb STM32 NUCLEO boards with Ethernet connector: solve conflict with D11 arduino pin
If you are using Ethernet, and not SPI Arduino pins:
=> keep your board with the default configuration

If you are using SPI Arduino pins, and not Ethernet:
=> you should remove the JP6 bridge on the front side of the board

If you need SPI Arduino and Ethernet:
=> you have to patch the NUCLEO board on the back side: set solder bridge SB121 to off, and SB122 to on
=> D11 is no more connected to PA_7 but to PB_5
=> overwrite d11_configuration config value in json file
2017-05-10 11:15:14 +02:00
jeromecoutant 39d981cf70 STM32Cube_FW_F4_V1.16.0
CMSIS v2.5.0 => v2.6.1
STM32F4 HAL v1.5.0 => v1.7.1
2017-05-10 10:00:42 +02:00
Laurent MEUNIER 943035a159 STM32 F1: update state check in Serial after HAL update
The states definition in HAL have changed so F1 driver needs updates
accordingly (as done previously on other families)
2017-05-09 16:48:36 +02:00
Laurent MEUNIER 675d78d180 STM32 remove usage of deprecated MACROs 2017-05-09 16:48:34 +02:00
Michel Jaouen c581230cd3 USBHOST: TARGET_STM fix in hal for hub support 2017-05-09 16:18:33 +02:00
Andrzej Puzdrowski 1f1168a51e NRF5: changes for code review of merg nrf52840 to NRF5 sources
s140 headers renamed form ble_* to nrf_ble_*,
Removed s130 and s132 headers named form ble_*
(Them had been added by #2ff572682798562e812015dc775b5896e0fda5a4)
Headers inclusinons were changed in order to meet above changes.

Revrted bad change in us_ticker.c:
use __disable_irq lock instead of core_util_critical_section_enter lock
for setting rtc1 tick for systick emulation as was good before.
2017-05-09 15:43:30 +02:00
ccli8 08c778d18d [NUC472/M453] Change comment for serial_getc/serial_putc 2017-05-09 09:22:41 +08:00
Jimmy Brisson 6aca976433 Merge pull request #4149 from monkiineko/master
STM32F3: Correct handling of USB ISTR and endpoint registers
2017-05-08 11:16:31 -05:00
Jimmy Brisson c1cbd26f1d Merge pull request #4256 from arostm/dev_disco_lora
DISCO_L072CZ_LRWAN1: add a new platform
2017-05-08 11:15:00 -05:00
Jimmy Brisson ef079dbb52 Merge pull request #4270 from bulislaw/fix_odin_wifi
Odin: Disable sleep as it's not compatible with WiFi driver
2017-05-08 11:14:25 -05:00
justinkim 34da12ace2 modify GCC_ARM startup code & mbed_rtx.h syntax error correct. 2017-05-08 09:04:15 +09:00
Anna Bridge a85873c863 Merge pull request #4248 from screamerbg/fix/stm32-usb-support
Fixed STM32 USB Device support for mbed Classic
2017-05-05 13:51:38 +01:00
Anna Bridge 2d22db23db Merge pull request #4169 from 0x6d61726b/master
[NXP LPC176X] flash_api.c implementation
2017-05-04 15:41:17 +01:00
Bartek Szatkowski 5b8033e144 Odin: Disable sleep as it's not compatible with WiFi driver 2017-05-04 10:57:47 +01:00
Laurent MEUNIER 63accf1469 Fix Typo in include file name 2017-05-04 10:51:40 +02:00
Laurent MEUNIER a8d666fe6f F1 CUBE V1.5.0
HAL V1.1.0
LL V1.1.0
CMSIS V4.2.0
2017-05-04 10:31:59 +02:00
Jimmy Brisson 0c2af26523 Merge pull request #4249 from kegilbert/button-mapping-kg
Add consistent button names across targets
2017-05-03 11:26:36 -05:00
Jimmy Brisson 138dbee5fc Merge pull request #4260 from adamgreen/fixXadowM0ExtraLabels
Inherit Xadow M0 target from LPC11U35_501
2017-05-03 09:08:29 -05:00
arostm 3dac027747 DISCO_L072CZ_LRWAN1: change date in periperalPins.c 2017-05-03 09:20:01 +02:00
Kevin Gilbert 0268c85101 Fixed typos 2017-05-02 13:16:14 -05:00
Adam Green a638febc94 Inherit Xadow M0 target from LPC11U35_501
targets/targets.json already added MCU_LPC11U35_501 as an extra label
but it didn't have LPC11U35_501 (without the MCU_ prefix). Both of
these target names are used as folder names to organize files
specific to this device. For example the LPC11U35.ld linker script used
by GCC_ARM for this target is located in a TARGET_LPC11U35_501 folder.

I switched to using inheritance to properly setup the target labels
based on @theotherjimmy comments on PR #4252. Everything in the
XADOW_M0 targe appears to have been copy/pasted from LPC11U35_501
anyway so inheritance seems to be the best way to set the values of
the XADOW_M0 properties.
2017-05-02 10:26:51 -07:00
Kevin Gilbert 418d83b6c2 Addressed review comments: fixed unmapped switches and added Hexiware buttons 2017-05-02 12:20:05 -05:00
Jimmy Brisson 8073f9ed64 Merge pull request #4190 from netzimme/patch-1
LPC4088: Enable LWIP feature
2017-05-02 11:30:42 -05:00
Jimmy Brisson 23c86fc539 Merge pull request #4236 from LMESTM/packed_warning
STM32 Fixed warning related to __packed redefinition
2017-05-02 11:24:38 -05:00
arostm c9173db9cf DISCO_L072CZ_LRWAN1: peripheralPins add and change comments 2017-05-02 12:53:25 +02:00
arostm e51c6942cf DISCO_L072CZ_LRWAN1: prepipheralPins and PinNames correction 2017-05-02 12:53:25 +02:00
arostm 4f2850e283 DISCO_L072CZ_LRWAN1: Typo correction 2017-05-02 12:53:25 +02:00
arostm 6572660204 DISCO_L072CZ_LRWAN1: Typo correction in peipheralPins.c and PinNames.h 2017-05-02 12:53:25 +02:00
arostm 64f8c9650b DISCO_L072CZ_LRWAN1: PinsName.h => PA_5 changed with PB_13 for the
SPI_SCLK
2017-05-02 12:53:25 +02:00
arostm a65bf18c19 DISCO_L072CZ_LRWAN1: targets.json correction 2017-05-02 12:53:25 +02:00
arostm d7c48d6dbd DISCO_L072CZ_LRWAN1: typo correction 2017-05-02 12:53:25 +02:00
arostm 729ed8f493 DISCO_L072CZ_LRWAN1: PinNames.h correction (USB TX and RX) 2017-05-02 12:53:25 +02:00
arostm bffe629563 DISCO_L072CZ_LRWAN1: Clock configuration => 30MHz to 32MHz 2017-05-02 12:53:25 +02:00
arostm 29d5818837 DISCO_L072CZ_LRWAN1: PreipheralPins.c corrections 2017-05-02 12:53:25 +02:00
arostm 97605ddd5a DISCO_L072CZ_LRWAN1: Change LED PIN definition 2017-05-02 12:53:25 +02:00
Alexis ROCHE 93bce7364c DISCO_L072CZ_LRWAN1: typo correction 2017-05-02 12:53:25 +02:00
Alexis ROCHE a59c4ff8a7 DISCO_L072CZ_LRWAN1: add LRWAN1 to the name 2017-05-02 12:53:25 +02:00
Alexis ROCHE 19109d9404 DISCO_L072CZ: Modifications and verifications to build 2017-05-02 11:50:24 +02:00
Alexis ROCHE 7529b8300b DISCO_L072CZ: Add all files (pinout, startup, etc...) 2017-05-02 11:46:40 +02:00
ccli8 e7b737ddad [NUC472/M453] Fix serial error with sync/async calls interlaced
Serial implementation uses different vector handlers for sync/async calls respectively. The issue can be reproduced with the following flow:
1. Register sync mode callback with Serial.attach().
2. Sync call with Serial.putc()/getc().
3. Change to async call with Serial.write()/read().
4. Change back to sync call with Serial.putc()/getc().
Now, vector handller is still for async mode, not for sync mode.

To fix it:
1. Introduce internal function serial_enable_interrupt() for both sync/async vector handler enable/disable.
   Original HAL function serial_irq_set() is reduced to call it for sync mode vector handler enable/disable.
2. Introduce internal function serial_rollback_interrupt() to roll back sync mode vector handler at end of async transfer.
2017-05-02 09:31:09 +08:00
0x6d61726b 7d9e1d4b75 reserved topmost 32 bytes of RAM used by IAP functions
NXP LPC176x/5x User Manual UM10360 Rev 4.1:
32.3.2.8 RAM used by IAP command handler
Flash programming commands use the top 32 bytes of on-chip RAM. The maximum stack 
usage in the user allocated stack space is 128 bytes and it grows downwards.
2017-04-30 14:16:52 +02:00
0x6d61726b 6c3f9bd485 reserved topmost 32 bytes of RAM used by IAP functions
NXP LPC176x/5x User Manual UM10360 Rev 4.1:
32.3.2.8 RAM used by IAP command handler
Flash programming commands use the top 32 bytes of on-chip RAM. The maximum stack 
usage in the user allocated stack space is 128 bytes and it grows downwards.
2017-04-30 14:16:05 +02:00
0x6d61726b c2fa163322 reserved topmost 32 bytes of RAM used by IAP functions
NXP LPC176x/5x User Manual UM10360 Rev 4.1:
32.3.2.8 RAM used by IAP command handler
Flash programming commands use the top 32 bytes of on-chip RAM. The maximum stack 
usage in the user allocated stack space is 128 bytes and it grows downwards.
2017-04-30 14:15:23 +02:00
0x6d61726b 6e46c7ad98 reserved topmost 32 bytes of RAM used by IAP functions
NXP LPC176x/5x User Manual UM10360 Rev 4.1:
32.3.2.8 RAM used by IAP command handler
Flash programming commands use the top 32 bytes of on-chip RAM. The maximum stack 
usage in the user allocated stack space is 128 bytes and it grows downwards.
2017-04-30 14:14:58 +02:00
0x6d61726b 0125f9f1a1 reserved topmost 32 bytes of RAM used by IAP functions
NXP LPC176x/5x User Manual UM10360 Rev 4.1:
32.3.2.8 RAM used by IAP command handler
Flash programming commands use the top 32 bytes of on-chip RAM. The maximum stack 
usage in the user allocated stack space is 128 bytes and it grows downwards.
2017-04-30 14:14:04 +02:00
0x6d61726b 131379aa0c reserved topmost 32 bytes of RAM used by IAP functions
NXP LPC176x/5x User Manual UM10360 Rev 4.1:
32.3.2.8 RAM used by IAP command handler
Flash programming commands use the top 32 bytes of on-chip RAM. The maximum stack 
usage in the user allocated stack space is 128 bytes and it grows downwards.
2017-04-30 14:13:05 +02:00
Adam Green 5f13d955ad Fix C++11 build error w/ u-blox EVK-ODIN-W2
When attempting to perform a test build of various mbed-os targets with
GCC configured to build -std=gnu++11, all of the targets built
successfully except for this one. It gave errors like this:
    ../mbed-os/targets/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/sdk/wifi_emac/wifi_emac_api.cpp: In function 'emac_interface_t* wifi_emac_get_interface()':
    ../mbed-os/targets/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/sdk/wifi_emac/wifi_emac_api.cpp:331:38: error: use of deleted function 'emac_interface::emac_interface()'
             _intf = new emac_interface_t();
                                          ^
    In file included from ../mbed-os/targets/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/sdk/wifi_emac/wifi_emac_api.cpp:9:0:
    ../mbed-os/hal/emac_api.h:150:16: note: 'emac_interface::emac_interface()' is implicitly deleted because the default definition would be ill-formed:
     typedef struct emac_interface {
                    ^
    ../mbed-os/hal/emac_api.h:150:16: error: uninitialized const member in 'struct emac_interface'
    ../mbed-os/hal/emac_api.h:151:32: note: 'const emac_interface_ops_t emac_interface::ops' should be initialized
         const emac_interface_ops_t ops;

This commit contains a proposed change which fixes this issue by not
using the new operator to allocate the emac_interface_t structure but
instead using the malloc() function since the construction is being
handled explicitly in the subsequent lines of the
wifi_emac_get_interface() function anyway.

I also added code which only completes the initialization of the _intf
object if its allocation succeeds and just returns NULL otherwise.

I see no deallocation of the _intf object occurring so no change from
delete to free() needed to be made.
2017-04-28 14:09:31 -07:00
Kevin Gilbert 28d1ac5a44 Added mapping to USER_BUTTON-labelled switches
Revert HRM1017 file source deletion

Added in small comment next to additions

Added mapping to BTN-labelled switches

Added mapping to USER_BUTTON-labelled switches

Undo incorrect mapping to SWIO pin in NORDIC target
2017-04-28 11:37:23 -05:00
Kevin Gilbert 83a510751b Added mapping to BTN-labelled switches 2017-04-28 11:31:48 -05:00
Mihail Stoyanov 301ce550c9 Fixed STM32 USB Device support by migrating all specific target headers to unsupported features where they belong until USB support is officially introduced in mbed OS 5 2017-04-28 17:23:07 +01:00
Andrzej Puzdrowski 382a067d4f Fix compilation errors on linux machine 2017-04-28 16:46:32 +02:00
Andrzej Puzdrowski 708dd4703d remove orphaned NRF5_SDK13 hal api driver 2017-04-28 13:47:44 +02:00
Andrzej Puzdrowski e6dbbde6ad [NRF5] coding style format. 2017-04-28 13:13:27 +02:00
justinkim c71557c605 add to support gcc & iar 2017-04-28 14:25:35 +09:00
Kevin Gilbert 77cc87b050 Adding consistent button pin mappings 2017-04-27 18:42:47 -05:00
justinkim 6f654ea6aa delete dead code. -> gpio_irq_api.c
modified coding style. -> pinmap.c
2017-04-27 17:49:30 +09:00