Commit Graph

10328 Commits (77551a8931360914e2de31037786e7ac981c5ff5)

Author SHA1 Message Date
ccli8 77551a8931 Fix DMA channel over-allocate 2017-05-21 14:37:58 +01:00
justinkim 7280486af0 modify GCC_ARM startup code & mbed_rtx.h syntax error correct. 2017-05-21 14:37:58 +01:00
justinkim 056ba62eeb add to support gcc & iar 2017-05-21 14:37:58 +01:00
justinkim c8f26e92d7 delete dead code. -> gpio_irq_api.c modified coding style. -> pinmap.c 2017-05-21 14:37:58 +01:00
justinkim e92314d655 modified typo 2017-05-21 14:37:57 +01:00
justinkim b2f6fe00da Modified coding style of mbed. - deleted dead code - deleted test code 2017-05-21 14:37:57 +01:00
justinkim 0fe89f8580 Modifying the code to support mbed OS 5 -> add mbed_rtx.h Modifying the code for mbed ci shield test -> analogin_api.c, W7500x_adc.c, gpio_irq_api.c, W7500x_gpio.c Modifying the code for fix bug -> W7500x_uart.c(register control driver problem), W7500x_uart.h, pinmap.c(pullup, pulldown problem) 2017-05-21 14:37:57 +01:00
Martin Kojtal 9743c6d4ce 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-21 14:37:57 +01:00
Bartosz Szatkowski 07a29ebd56 Limit ISR stack to 4k on NUCLEO_F429ZI 2017-05-21 14:37:56 +01:00
Daniel Zimmermann 5dc7fc9cb8 LPC4088: add LPC4088Code.binary_hook to the white list of the embitz, gnuarmeclipse and makefile exporter. 2017-05-21 14:37:56 +01:00
Andrzej Puzdrowski ada0d21401 avoid 03/05 intel-hex records for nordics devices
use Intelhex::write_hex_file instead of IntelHex::tofile
2017-05-21 14:37:56 +01:00
Bradley Scott c5d379e908 STM32F3: Correct handling of USB ISTR and endpoint registers
The USB ISTR register consists of a mix of bits that are
write-zero-to-clear and read only bits.  As such, to clear a bit in
the ISTR, you should simply write the bitwise-NOT of the bit to clear.
Previously, the __HAL_PCD_CLEAR_FLAG() macro would do a bitwise-AND
with the ISTR register contents to clear a bit, but this could result
in another bit being inadvertently cleared if it is set by hardware
between the read and the write of the ISTR register.

Similarly, the USB endpoint registers have two bits that are
write-zero-to-clear, USB_EP_CTR_RX and USB_EP_CTR_TX, but the
PCD_CLEAR_RX_EP_CTR() and PCD_CLEAR_TX_EP_CTR() macros wrote back the
last read value for one of these bits when clearing the other bit.
This could result in inadvertent clearing of one of these bits if it
were set by the hardware between the read and the write.  These macros
have now both been adjusted to always write one to the bit not being
cleared to prevent inadvertent clears.
2017-05-21 14:37:55 +01:00
Tony Wu 4f0733da36 lwip - delay mbed_lwip_set_mac_address until device is inited
mbed_lwip_set_mac_address calls mbed_mac_address to get hwaddr
from device, but device may not be accessible until it is powered
up and initialized.

This patch delays mbed_lwip_set_mac_address call until device is
ready.

Signed-off-by: Tony Wu <tonywu@realtek.com>
2017-05-21 14:37:54 +01:00
Tony Wu 0150e56c76 lwip - power up emac before reading its settings
emac settings are only available after powered up.

Signed-off-by: Tony Wu <tonywu@realtek.com>
2017-05-21 14:37:54 +01:00
arostm 5a05033f86 DISCO_L072CZ_LRWAN1: change date in periperalPins.c 2017-05-21 14:37:54 +01:00
arostm 6b588e2f86 DISCO_L072CZ_LRWAN1: delete tests mbed os2 result 2017-05-21 14:37:54 +01:00
arostm d28d022a68 DISCO_L072CZ_LRWAN1: peripheralPins add and change comments 2017-05-21 14:37:53 +01:00
arostm 868a5f64ab DISCO_L072CZ_LRWAN1: prepipheralPins and PinNames correction 2017-05-21 14:37:53 +01:00
arostm f412e3dd96 DISCO_L072CZ_LRWAN1: Typo correction 2017-05-21 14:37:53 +01:00
arostm de2f5408d7 DISCO_L072CZ_LRWAN1: Typo correction in peipheralPins.c and PinNames.h 2017-05-21 14:37:53 +01:00
arostm 8eb8f3a0c1 DISCO_L072CZ_LRWAN1: PinsName.h => PA_5 changed with PB_13 for the SPI_SCLK 2017-05-21 14:37:52 +01:00
arostm a1e78eab4c DISCO_L072CZ_LRWAN1: targets.json correction 2017-05-21 14:37:52 +01:00
arostm 71505b3ca0 DISCO_L072CZ_LRWAN1: typo correction 2017-05-21 14:37:52 +01:00
arostm f1b01cf518 DISCO_L072CZ_LRWAN1: PinNames.h correction (USB TX and RX) 2017-05-21 14:37:51 +01:00
arostm af661bc703 DISCO_L072CZ_LRWAN1: Clock configuration => 30MHz to 32MHz 2017-05-21 14:37:51 +01:00
arostm f71b20ff1b DISCO_L072CZ_LRWAN1: PreipheralPins.c corrections 2017-05-21 14:37:51 +01:00
arostm bb71895b7c DISCO_L072CZ_LRWAN1: Change LED PIN definition 2017-05-21 14:37:51 +01:00
Alexis ROCHE 3b393f84bd DISCO_L072CZ_LRWAN1: add IAR export 2017-05-21 14:37:50 +01:00
Alexis ROCHE 6432da0763 DISCO_L072CZ_LRWAN1: typo correction 2017-05-21 14:37:50 +01:00
Alexis ROCHE 37069888c6 DISCO_L072CZ_LRWAN1: add LRWAN1 to the name 2017-05-21 14:37:50 +01:00
Alexis ROCHE 04645f09bb DISCO_L072CZ: Modifications and verifications to build 2017-05-21 14:37:49 +01:00
Alexis ROCHE e5db7c1da5 DISCO_L072CZ: Add all files (pinout, startup, etc...) 2017-05-21 14:35:28 +01:00
Bartek Szatkowski a50c6f3812 Odin: Disable sleep as it's not compatible with WiFi driver 2017-05-21 14:35:27 +01:00
Jimmy Brisson 8d21974ba3 Merge pull request #4278 from ARMmbed/release-candidate
Release candidate for mbed-os-5.4.5
2017-05-09 10:57:46 -05:00
adbridge 499584744b Update MBED_LIBRARY_VERSION to v142 2017-05-05 16:48:53 +01:00
0x6d61726b c9313005fb removed warning: unused variable 'ethhdr' [-Wunused-variable] 2017-05-05 16:48:53 +01:00
Kevin Gilbert 5fb0d56d76 Fixed typos 2017-05-05 16:48:52 +01:00
Kevin Gilbert e52f649555 Addressed review comments: fixed unmapped switches and added Hexiware buttons 2017-05-05 16:48:52 +01:00
Kevin Gilbert ad8f2fcbdf 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-05-05 16:48:51 +01:00
Kevin Gilbert 1b53295f46 Added mapping to BTN-labelled switches 2017-05-05 16:48:51 +01:00
Kevin Gilbert b1653431a8 Adding consistent button pin mappings 2017-05-05 16:48:50 +01:00
Adam Green 5fdf630396 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-05 16:48:50 +01:00
Christopher Haster ed1daf62b2 Removed debug links to printf/exit in NDEBUG builds
Allows development of small applications where stdio is avoided
2017-05-05 16:48:50 +01:00
Jimmy Brisson b20bf0e623 Add a config test to check for failing bootloader images 2017-05-05 16:48:49 +01:00
Jimmy Brisson 7f12628fbb Error when bootloader is specified but does not exist
The changes to build_api.py make the error happen when running things
like get_config.py
2017-05-05 16:48:49 +01:00
Daniel Zimmermann 14a2801a1b LPC4088: Enable LWIP feature
This patch enable the LWIP feature for the LPC4088 and LPC4088_DM boards.
The lwIP stack support already this hardware.
See: ./features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NXP/lpc17_emac.c
2017-05-05 16:48:48 +01:00
Jimmy Brisson f97184af84 Add `mbed new .` output to export 2017-05-05 16:48:48 +01:00
Laurent MEUNIER f38998cae5 STM32 Fixed warning related to __packed redefinition
Before this patch, many warnings like below were generated
during compilation with ArmCC
[Warning] lwip_ethernet.h@57,0:  #3135-D: attribute does not apply to any entity

This happens here as ``--gnu`` option of ArmCC is being used, which
enables the GNU compiler extensions that the ARM compiler supports.

This is solve by adding a extra check on __CCARM .
2017-05-05 16:48:48 +01:00
Adam Green 2f2026e36f 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-05-05 16:48:47 +01:00
Martin Kojtal 5ab3fb8710 Config: config header file should contain new line 2017-05-05 16:48:47 +01:00