jeromecoutant
2a70879ffa
STM32L496 : wrong ADC init
2018-09-13 16:31:49 +02:00
Aleshandre Diaz
190803ae6a
choose which lpc1768 timer to use for us_ticker.c
2018-09-13 05:57:13 -07:00
Russ Butler
ab50681c33
Rename device option STCLK_OFF_DURING_SLEEP
...
Rename STCLK_OFF_DURING_SLEEP to SYSTICK_CLK_OFF_DURING_SLEEP to avoid
confusion with the STmicroelectronics.
2018-09-12 14:40:25 -05:00
jeromecoutant
12522210a2
STM32L0 internal channel ADC_TEMP
...
Temperature measurement was not stable
2018-09-12 17:21:36 +02:00
jeromecoutant
5bbe62889a
STM32L072 : ADC internal channels correction
2018-09-12 17:21:30 +02:00
Cruz Monrreal
8d9e2e5d0a
Merge pull request #7909 from KariHaapalehto/f411re_iar
...
Adjust STMF411xE IAR linker file to mbed-os memory needs.
2018-09-12 09:20:15 -05:00
Mahesh Mahadevan
3661dc7e71
MIMXRT1050_EVK: Fix the PWM Hal driver
...
1. Add Pin defines for missing PWM pins
2. Update the hal to account for the number of PWM instances
3. Fix the register reload policy
4. Configure the XBAR to put the PWM fault inputs in inactive state
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-09-12 08:52:39 -05:00
jeromecoutant
827c8bd486
STM32 RTC : remove not necessary macro
...
__HAL_RCC_RTC_CLKPRESCALER is called in __HAL_RCC_RTC_CONFIG
2018-09-11 14:14:19 +02:00
jeromecoutant
5c46bec4d4
STM32 RTC with LSI : stop reset registers during init
2018-09-11 14:13:43 +02:00
jeromecoutant
0fecc56e84
STM32 RTC : Start LSI clock asap
2018-09-11 14:04:03 +02:00
Naveen Kaje
9e175db443
NRF52: Ensure that we configure hardware after flow control changes
...
Call the routines to program the hardware to reflect the updates made to
flow control so that the object and hardware are in synch.
2018-09-10 10:47:28 -05:00
deepikabhavnani
ff80e298d2
Align to CMSIS defines for Non-secure
...
CMSIS updated the __DOMAIN_NS define to DOMAIN_NS. Update the define
in existing code for non-secure part.
2018-09-10 09:25:27 -05:00
ccli8
6ac163088a
Support Nuvoton's NuMaker-IoT-M487 board
2018-09-10 11:32:54 +08:00
ccli8
a65e3d42e5
[M2351] Update secure library/executable
...
1. Remove hal_sleep/hal_deepsleep from secure library
2. Add CLK_Idle_S/CLK_PowerDown_S
2018-09-10 11:09:40 +08:00
ccli8
0550de72f5
[M2351] Fix hal_deepsleep with serial_can_deep_sleep
...
Add secure functions CLK_PowerDown_S/CLK_Idle_S
2018-09-10 10:55:45 +08:00
ccli8
beb04a82dc
[Nuvoton] Fix serial corruption due to deep sleep
...
Prevent deep sleep when there is still any character being transmitted on the UART.
This allows tickless to be safely enabled.
2018-09-10 10:55:44 +08:00
ccli8
310b12a235
[Nuvoton] Fix HAL sleep test failure with lp_ticker
...
Replace wait_us with nu_busy_wait_us in lp_ticker since wait_us is not allowed in sleep test
which would suspend us ticker layer on which wait_us relies. nu_busy_wait_us is implemented
by calling us ticker HAL API directly rather than relying on us ticker layer.
2018-09-10 10:55:44 +08:00
ccli8
26c0444cc3
[Nuvoton] Add nu_delay_cycle_x4
...
nu_delay_cycle_x4 is a replacement for wait_us when us ticker is not available.
2018-09-10 10:55:43 +08:00
ccli8
88b9f20ec4
[Nuvoton] Add nu_busy_wait_us
...
nu_busy_wait_us is a replacement for wait_us when intermediary us ticker layer is disabled.
2018-09-10 10:55:43 +08:00
ccli8
2b632b9eb0
[Nuvoton] Move nu_countdown_init/expired/free implementations to nu_timer.c from nu_timer.h
2018-09-10 10:55:42 +08:00
ccli8
ab7b93ca58
[Nuvoton] Synchronize us_ticker to lp_ticker
...
This is to make implementations of us_ticker/lp_ticker consistent.
2018-09-10 10:50:22 +08:00
ccli8
6639a92bcd
[Nuvoton] Fix lp_ticker_free cannot pass speed test
2018-09-10 10:50:22 +08:00
ccli8
9ee83f575a
[Nuvoton] Fix spurious us_ticker/lp_ticker interrupts
...
If us_ticker/lp_ticker is scheduled and then the interrupt is disabled, the originally scheduled
interrupt may still become pending. If this occurs, then an interrupt will fire twice on the next
call to us_ticker_set_interrupt/lp_ticker_set_interrupt - once immediately and then a second time
at the appropriate time.
This patch prevents the first interrupt by clearing interrupts in
us_ticker_set_interrupt/lp_ticker_set_interrupt before calling NVIC_EnableIRQ.
2018-09-10 10:50:21 +08:00
Naveen Kaje
28c63ec0f3
NRF52: serial_api: Use polling for putc
...
There are scenarios where putc is called within a critical section, e.g
to log ASSERTs in early initialization code. The interrupts being
disabled here prevents the handlers for the UARTE from executing.
This breaks the tx_in_progress flag based approach. The tx_in_progress
never gets reset. Poll on the TXDRDY instead.
It can be recreated with a simple program as shown here:
*************** Current Behavior ****************
++ MbedOS Error Info ++
Error Status: 0x80FF0100 Code: 256 Module: 255
Error Message: F
************** With Fix *************************
++ MbedOS Error Info ++
Error Status: 0x80FF0100 Code: 256 Module: 255
Error Message: Fatal Run-time error
Location: 0x2C0A9
Error Value: 0x0
Current Thread: Id: 0x20005520 Entry: 0x30EBF StackSize: 0x1000 StackMem: 0x20004520 SP: 0x20005490
For more info, visit: https://armmbed.github.io/mbedos-error/?error=0x80FF0100
-- MbedOS Error Info --
nrf failure at .\main.cpp:22
***************************************************
2018-09-09 16:33:30 -05:00
Cruz Monrreal
d311a96061
Merge pull request #7950 from c1728p9/l4_malloc_fix
...
Fix memory allocation on STM32L4 devices
2018-09-07 22:50:05 -05:00
Cruz Monrreal
76827c3704
Merge pull request #7971 from JammuKekkonen/fix_softdevice_memory_reservation_for_nrf52dk
...
Fix memory reservation for Softdevice in NRF52_DK
2018-09-07 11:46:58 -05:00
Russ Butler
66cce67d38
Update the K64F to use boot stack size config
...
Update the K64F linker scripts to make use of the newly added stack
size target config.
2018-09-07 17:00:48 +01:00
Russ Butler
1ead033423
Add framework for configuring boot stack size
...
Add the target config option "boot-stack-size" which is passed to the
linker as the define "MBED_BOOT_STACK_SIZE" so the linker can
adjust the stack accordingly. On mbed 2 the boot stack becomes the
main stack after boot. On mbed 5 the boot stack becomes the
ISR stack after boot. Because of these different uses the stack size
for mbed 2 is set to 4K by default while on mbed 5 it is set to 1k.
Additionally, the NRF5X family requires a larger interrupt stack size
due to the softdevice so the size is increased to 2k on mbed 5 builds.
2018-09-07 16:31:49 +01:00
mattbrown015
792cec773e
STM32: Disabling of IRQs shared by multiple events
...
Discern if an IRQ is being shared by multiple events and only disable the IRQ if no events are using it.
2018-09-07 14:48:02 +01:00
Martin Kojtal
e30435bd08
Merge pull request #7990 from maciejbocianski/qspi_small_fixes
...
DISCO_L475VG_IOT01A remove old QSPI pins
2018-09-07 10:47:19 +02:00
Steven
7711d4c93b
Word-sized input to GPCRC is only valid for 32-bit polynomial
2018-09-07 00:19:32 +02:00
Cruz Monrreal
ff1a0ede1f
Merge pull request #7995 from yossi2le/revert-pinnames-files
...
Reverting PinNames.h after PR #7774 changes
2018-09-06 13:20:43 -05:00
Russ Butler
e084865e8e
Fix comparison warning on STM32L4 devices
...
Cast the pointer used in l4_retarget to uint32_t before comparing it
to fix the warning:
"comparison between pointer and integer"
2018-09-06 16:07:03 +01:00
Cesar
80c9814fd0
Revert file permissions
2018-09-06 13:57:06 +02:00
Cesar
b2d8b54f7d
Revert file permissions
2018-09-06 12:56:13 +02:00
Kari Haapalehto
86f966fa00
Adjust STMF411xE IAR linker file to mbed-os memory needs.
...
Stack size decreased and heap size increased.
2018-09-06 13:34:12 +03:00
zzw
ff20fc3341
"gpio_api.c" update
...
1, "gpio_api.c" update. fix issues for compiling the mbed-cloud-client-example
2018-09-06 14:40:06 +08:00
zzw
b06553fa25
rtl8195am lib updates
...
1, rtl8195am lib updates. Preparation for the low power features.
2018-09-06 14:28:34 +08:00
Cruz Monrreal
201ec14d45
Merge pull request #7779 from MateuszMaz/fix_for_NRF52_pwm_issues
...
Fix for nrf52 pwm issues
2018-09-05 20:05:35 -05:00
Mahesh Mahadevan
16ff8e7369
NXP: Update serial driver's parity handling
...
This is a fix for issue 6305. This fix set the default
parity value to NONE.
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-09-05 13:30:36 -05:00
Mahesh Mahadevan
e09f1e2149
LPC1768: Enable RTC
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-09-05 12:21:03 -05:00
Cruz Monrreal
dc45990a58
Merge pull request #7904 from NXPmicro/MIMXRT1050_Fix_Spi
...
MIMXRT1050_EVK: Update SPI HAL driver
2018-09-05 09:18:58 -05:00
Mahesh Mahadevan
a8fca70fa9
MIMXRT1050_EVK: Add RTC support
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-09-05 08:29:37 -05:00
Yossi Levy
acfda5895e
Changes in PR #7774 of PinNames.h should be reverted. This commit reverts those files excpet for K82F and K64F which are left as an example
2018-09-05 14:13:05 +03:00
Michael Kaplan
dd2e93fbd3
Fix EFM32 pwmout hal function pwmout_period
...
In pwmout_period() is a check for changed values, which is not working because of a wrongly used bitmask. This is fixed now.
2018-09-05 11:17:28 +02:00
Maciej Bocianski
050604f1b8
DISCO_L475VG_IOT01A remove old QSPI pins
2018-09-05 09:58:20 +02:00
ccli8
2da75c860c
[M2351] Fix STDIO_UART error
2018-09-05 11:52:40 +08:00
ccli8
958c7fe564
[M2351] Update to NuMaker-PFM-M2351 V1.3 board
...
1. Update UNO pin A4/A5
2. Update UNO pin D2/D3
2018-09-04 15:19:33 +08:00
Martin Kojtal
44925d8527
Merge pull request #7579 from u-blox/ublox_odin_driver_os_5_v3.0.0_rc1
...
Updated ODIN drivers to v3.0.0 RC1
2018-09-03 09:25:32 +02:00
Seppo Takalo
4c105fc2d7
SDT64B is not Arduino FF. It does not define Arduino pins.
2018-09-01 12:40:38 -05:00
Seppo Takalo
3ab9c41983
WISE-1510 is not Arduino form factor
2018-09-01 12:37:46 -05:00
Seppo Takalo
710d1bb00a
Enable default Mesh interface on KW24D
...
This device still requires MCR20A driver to be in build tree
and this patch https://github.com/ARMmbed/mcr20a-rf-driver/pull/18
2018-09-01 12:36:27 -05:00
Cruz Monrreal
993c897b55
Merge pull request #7774 from yossi2le/sd-spif-to-mbed-os
...
Add default block device support (SD, SPIF and FLASHIAP)
2018-09-01 11:15:13 -05:00
Russ Butler
e2d003a420
Fix memory allocation on STM32L4 devices
...
Depending on initial size allocated on STM32L4 devices with
TWO_RAM_REGIONS set a crash may occur. This is because there is a
mismatch between the size newlib is expecting and the size actually
returned by _sbrk. This is because the STM32L4 implementation of _sbrk
is performing alignment internally.
This patch fixes this problem by removing the code in __wrap__sbrk
which performs the alignment.
2018-08-31 18:31:52 -05:00
Cruz Monrreal
00b7700be2
Merge pull request #7875 from c1728p9/feature_CMSIS_5_0b521765
...
Update CMSIS to 5.4.0
2018-08-31 11:31:37 -05:00
Cesar
f91bba9803
Updated pinmap to fix CAN and enable UART hardware flow control
2018-08-31 17:17:29 +02:00
Cesar
c10907288d
Corrected device_has_add flags for bluepill_f103c8 target
2018-08-31 17:17:29 +02:00
Jammu Kekkonen
1a9999708e
Fix memory reservation for Softdevice in NRF52_DK
2018-08-31 14:13:55 +03:00
Maciej Bocianski
3a64383de5
fix qspi address sending for nrf52
...
fix address sending in qspi_command_transfer
now address is send MSB first
2018-08-31 10:48:37 +02:00
Ammad Rehmat
b934632653
Access Point API
2018-08-31 11:33:30 +05:00
ccli8
55328ebdd5
[Nuvoton] Fix pin mode mapping between input pull mode/direction and I/O mode
...
1. Modify PinMode enum to fully support GPIO I/O modes.
2. Translate input pull mode/direction to I/O mode, where H/W doesn't support
separate configuration for input pull mode/direction.
3. Allow for configuring I/O mode in addition to input pull mode.
2018-08-31 10:06:30 +08:00
Cruz Monrreal
06a98e7dcf
Merge pull request #7778 from SeppoTakalo/provide_default_mesh
...
Fix MeshInterface::get_default_instance()
2018-08-30 16:11:00 -05:00
Wajahat Abbas
a93ff7c931
Added PC2 pin to ADC pin map
2018-08-30 15:19:50 +05:00
Seppo Takalo
4989650854
Don't provide default interface on NCS36510, won't fit testcases on IAR
2018-08-30 11:04:25 +03:00
Martin Kojtal
56117a86c8
Merge pull request #7871 from juhoeskeli/NUCLEO_F207ZG_LINKER_MCC
...
Updated linker files (GCC_ARM, ARM, IAR) for NUCLEO_F207ZG and enabled bootloader functionality
2018-08-30 09:49:17 +02:00
justinkim
251ab0173d
Stack size change to 1K in IAR Linker Script.
2018-08-30 08:41:12 +09:00
Yossi Levy
ed8e170d15
Moving SD, SPIF and FLASHIAP into mbedos and refactoring features storage directory structure.
2018-08-29 12:01:11 +03:00
justinkim
3f4d30de56
Fix Bug : IAR heap memory problem
2018-08-29 14:20:30 +09:00
Edmund Hsu
b57f90241e
Apply consistent system return code to adi_system_EnableRetention()
2018-08-29 13:42:16 +10:00
Edmund Hsu
ae492d9c4a
Add consistent ADuCM3029 System return codes and remove duplicate codes
2018-08-29 13:38:30 +10:00
Martin Kojtal
16d23702bf
Merge pull request #7873 from 0xc0170/fix_realtek_ipv6
...
realtek: fix #7829 - remove dhcps files
2018-08-28 14:37:46 +02:00
Seppo Takalo
9836b9bd6a
Provide default mesh driver on NCS36510
2018-08-28 11:02:58 +03:00
Juho Eskeli
d5b374b327
Correct comment about stack size in IAR linker file
2018-08-28 08:44:08 +03:00
Juho Eskeli
5cc06238ea
Enable bootloader for NUCLEO_F207ZG
2018-08-28 08:44:08 +03:00
Juho Eskeli
22137b45dd
Update NUCLEO_F207ZG linker files
2018-08-28 08:44:08 +03:00
Mahesh Mahadevan
2bc140e978
MIMXRT1050_EVK: Update SPI HAL driver
...
Use a different SDK API to write to the SPI Bus
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-08-27 14:20:49 -05:00
Cruz Monrreal
91354184dc
Merge pull request #7825 from SiliconLabs/siliconlabs-qspi
...
Silicon Labs QSPI HAL implementation
2018-08-27 13:51:38 -05:00
alrodlim
90689c3191
fixed pin names of I2C pins
2018-08-27 07:29:07 -05:00
Martin Kojtal
a24cecfc94
Merge pull request #7805 from jamesbeyond/fm_test
...
Skip Greentea tests for Mbed OS code coverage on Fast Models
2018-08-27 10:39:43 +02:00
Martin Kojtal
ce28c91405
Merge pull request #7534 from bentcooke/mote_L152_en_os5
...
enable MOTE_L152 for OS5
2018-08-27 10:27:36 +02:00
Steven Cooreman
55c6dade3d
Apply changes corresponding to #7817
...
QSPI standard pin names were changed after the QSPI feature PR.
2018-08-27 10:10:18 +02:00
Steven
e0d033bdd1
Allow unaligned input/output for QSPI
...
The code is written such that access to the data input/output happens word-by-word, and that means unaligned access is fine (though with a performance loss) on Cortex-M3/M4 devices.
2018-08-27 10:03:08 +02:00
Steven
845a5beb30
Initial commit of Silicon Labs QSPI HAL implementation
...
* For EFM32GG11, since that is the only Silicon Labs target with QSPI per today
* Verified working using the on-board flash and tests-mbed_hal-qspi
2018-08-27 10:03:08 +02:00
Russ Butler
22ebf69dea
Revert "EFM32: Use SECURE_ACCESS to access the ROM table"
...
This reverts commit 1b0922e97b .
2018-08-25 20:40:35 -05:00
Russ Butler
4ff5ea40dd
Revert uVisor changes for K64F
...
Revert the changes made in the commit:
1c2a7d8842
Added the commit: Access MCG and SIM through secure access
2018-08-25 20:40:31 -05:00
Cruz Monrreal
2f8e679183
Merge pull request #7592 from orenc17/remove_uvisor
...
Remove uVisor from mbed-os
2018-08-25 19:52:24 -05:00
Cruz Monrreal
7531b31c01
Merge pull request #7751 from mikaleppanen/realtek_emac_interf
...
Realtek RTL8195A wifi interface to inherit EMAC interface
2018-08-24 19:30:39 -05:00
Martin Kojtal
31a6fb49bd
Merge pull request #7817 from maciejbocianski/qspi_pinnames
...
standardise QSPI pin names
2018-08-24 21:12:25 +02:00
Martin Kojtal
2d330533a4
Merge pull request #7652 from andrewleech/nrf5x_config_lfclk
...
NRF5x: Fix config of LFCLK source / settings.
2018-08-24 13:05:24 +02:00
Maciej Bocianski
5195c820e6
standardise QSPI pin names
2018-08-24 12:09:51 +02:00
Martin Kojtal
812c6d5c88
Merge pull request #7783 from maciejbocianski/feature-qspi_merging
...
merge QSPI feature branch
2018-08-24 10:50:18 +02:00
Martin Kojtal
ab029b5f65
realtek: fix #7829 - remove dhcps files
2018-08-23 16:48:00 +01:00
Cruz Monrreal
cb8d09a88a
Merge pull request #7843 from codeauroraforum/MXRT_Fix_I2C_Byte_Transfer
...
MIMXRT1050: Fix I2C Byte transfer functions
2018-08-23 10:05:08 -05:00
Fred.Li
84eda278a5
Fix link issue for mbed-cloud-client-example with ARM toolchain.
2018-08-23 17:25:07 +08:00
ben
32647e6888
enable MOTE_L152 for OS5
2018-08-22 11:49:25 -05:00
Ashok Rao
19a571c911
Removing default flow control for BL652
2018-08-22 16:50:22 +01:00
Oren Cohen
787317b7eb
Remove uVisor from mbed-os
2018-08-22 16:36:59 +03:00
Maciej Bocianski
3bf9df7b56
target DISCO_F413ZH: add QSPI flash pin names
2018-08-22 15:02:13 +02:00
adustm
6095ccf1b4
Add reset internal state before call to HAL_QspiInit function
2018-08-22 15:02:11 +02:00
adustm
7dda4e4fc6
Implement qspi_free function
2018-08-22 15:02:10 +02:00
adustm
5c26e15cd3
Fix support of max flash size
2018-08-22 15:02:09 +02:00
jeromecoutant
43258a8ff4
STM32 : add all QSPI pins in available targets
2018-08-22 15:02:08 +02:00
Maciej Bocianski
1534426b7e
nrf52x: fix QSPI enable flag
...
QSPI feature was mistakenly moved form target nrf52840 to nrf52832
while rebasing. This change fixes it
2018-08-22 15:02:07 +02:00
Maciej Bocianski
8b36d6b39a
NRF5: fix qspi R/W opcodes mapping
2018-08-22 15:02:05 +02:00
Maciej Bocianski
c2cc559aa7
NRF5: fix qspi custom command sending
2018-08-22 15:02:05 +02:00
Maciej Bocianski
67798d6eb2
STM: add qspi pin names for DISCO_L475VG_IOT01A
2018-08-22 15:02:04 +02:00
Maciej Bocianski
42935bbdc0
STM qspi: temporary fix for qspi_free return value
2018-08-22 15:02:03 +02:00
Maciej Bocianski
1f4cc95f25
fix qspi command transfer for NORDIC
...
Add address unpacking support.
Only used in erase commands
2018-08-22 15:02:03 +02:00
adustm
2f06423a89
Add support for QSPI on DISCO_L476VG
2018-08-22 15:02:01 +02:00
adustm
c00e49fcf2
Enable QSPI for DISCO_F746NG
2018-08-22 15:01:54 +02:00
adustm
293d1bda42
Add MBED_WEAK for pins
2018-08-22 15:00:22 +02:00
adustm
9b4b28fc3f
Support maximum flash size : 4Gbytes
2018-08-22 15:00:22 +02:00
adustm
50b8225948
Enable QSPI feature for DISCO_F413ZH platform
2018-08-22 15:00:21 +02:00
adustm
c57a47e4b5
Change default FlashSize to 64Mbit = 8Mbytes = 0x800000
2018-08-22 15:00:20 +02:00
adustm
8e08740237
Fix Instruction with no data command
...
Adding QSPI_DATA_NONE activates the transfer
of the command inside HAL_QSPI_COMMAND function
2018-08-22 15:00:19 +02:00
adustm
05899e9c70
Fix Address.Size and AlternateByes.Size by shifting them
...
The ST HAL code is waiting for the correctly shifted vlue
(for a direct write into the HW register)
2018-08-22 15:00:18 +02:00
Martin Kojtal
d282c81e86
QSPI: add STM32L4 support
...
Disco IoT board support for QSPI. As it does not have dual flash support in QSPI,
we need to fix qspi hal implementation.
2018-08-22 15:00:17 +02:00
Martin Kojtal
ae7bb17eaf
QSPI: add flash pins for nrf52480_dk board
2018-08-22 15:00:16 +02:00
Martin Kojtal
0f7fd757a4
QSPI: add flash pins for F469 disco board
2018-08-22 15:00:16 +02:00
Martin Kojtal
c778c90184
QSPI STM32: fix default fifo and cycle
...
As example for DISCO F469NI defines them
2018-08-22 15:00:15 +02:00
Martin Kojtal
8783956a77
QSPI STM32: fix prepare comman - alt/address
2018-08-22 15:00:14 +02:00
Martin Kojtal
fff20729be
QSPI STM32: fix command transfer
...
use write/read from STM32 driver
2018-08-22 15:00:14 +02:00
Martin Kojtal
5038b38622
QSPI STM32: fix pin merging
...
hw name as input
2018-08-22 15:00:13 +02:00
Martin Kojtal
16ca742d87
QSPI STM32: fix disabled format phase
2018-08-22 15:00:12 +02:00
Martin Kojtal
2766672f64
QSPI STM32: add QSPI_x support to pinnames
2018-08-22 15:00:12 +02:00
Martin Kojtal
660d250e0d
QSPI STM32: init returns error if failed to init
2018-08-22 15:00:11 +02:00
Martin Kojtal
551f044e77
QSPI STM32: add qspi_command_transfer implementation
2018-08-22 15:00:11 +02:00
Martin Kojtal
6e5b889e52
QSPI STM32: remove polling from write/read
...
This will be part of custom instruction transfer, the flow will be:
1. write data
2. wait for transfer to complete (poll status register from the memory device)
2018-08-22 15:00:10 +02:00
Martin Kojtal
8da072d8af
QSPI STM32: set default command values to none
2018-08-22 15:00:10 +02:00
Martin Kojtal
11ae100d80
QSPI STM32: fix return value in frequency
2018-08-22 15:00:09 +02:00
Martin Kojtal
5e75b39b78
QSPI STM32: fix ssel af selection
2018-08-22 15:00:09 +02:00
Martin Kojtal
7da0ac2516
QSPI: add STM32 implementation
2018-08-22 15:00:08 +02:00
Senthil Ramakrishnan
cb4308ad64
Remove changes to Nordic SDK and modify HAL to track qspi init
2018-08-22 15:00:03 +02:00
Senthil Ramakrishnan
10a6fd6549
Add support for 1_1_2 and 1_2_2 modes in HAL
2018-08-22 15:00:01 +02:00
Senthil Ramakrishnan
16d121c5d2
Review fixes and doxygen changes
2018-08-22 15:00:00 +02:00
Senthil Ramakrishnan
009cc8b474
Enabling QSPI headers in Nordic HAL implementation and fix for UART STDIO definitions
2018-08-22 14:59:59 +02:00
Senthil Ramakrishnan
2df58e2d25
Modify QSPI HAL API to include an API for command-transfer operations
2018-08-22 14:59:59 +02:00
Martin Kojtal
d1b51b6328
QSPI: initial HAL nrf52840 version
...
This commit adds QSPI HAL implementation for nrf52840 MCU targets
2018-08-22 14:59:58 +02:00
Martin Kojtal
d28d13cc9b
Merge pull request #7790 from jeromecoutant/PR_LPTICKER_RTC
...
STM32 LPTICKER : RTC wake up timer is reset before setting a new one
2018-08-22 14:04:58 +02:00
Andrew Leech
629357270e
NRF5x: Fix config of LFCLK source / settings.
2018-08-22 13:55:28 +10:00
Mahesh Mahadevan
f71004cf89
MIMXRT1050: Fix I2C Byte transfer functions
...
1. Added a flag to issue START command
2. Do not send START command inside i2c_start function as
the LPI2C hardware will issue a STOP on reception
of a NACK
3. Remove the i2c_address global variable, this is not
required
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-08-21 10:25:00 -05:00
Cruz Monrreal
17a525c487
Merge pull request #7619 from u-blox/cellular_ublox_udp_tcp_imp
...
UBLOX cellular api's for UDP and TCP
2018-08-21 10:12:47 -05:00
Cruz Monrreal
4b5c6c8953
Merge pull request #7823 from codeauroraforum/MIMXRT1050_Fix_I2C
...
MIMXRT1050_EVK: Update the I2C driver
2018-08-21 09:54:36 -05:00
Cruz Monrreal
a8f390ebec
Merge pull request #7798 from simosillankorva/NUCLEO_F303RE_bootloader_support
...
Add bootloader support for target NUCLEO_F303RE
2018-08-21 09:50:26 -05:00
Cruz Monrreal
c167275c6d
Merge pull request #7775 from jeromecoutant/PR_ASSERT
...
STM32 wrong MBED_ASSERT use
2018-08-21 09:44:23 -05:00
Cruz Monrreal
c10ad7f544
Merge pull request #7212 from davidsaada/david_flashiap_test_small_flash
...
FlashIAP & NVStore tests: Skip test if overwriting code in flash
2018-08-21 09:41:51 -05:00
Oren Cohen
795248bcaf
Restore lp_ticker_free to previous implementation when running with uvisor
...
This is a temporary patch until uvisor is removed
2018-08-20 13:20:45 +03:00
Mahesh Mahadevan
64e5eb01d2
MIMXRT1050_EVK: Update the I2C driver
...
1. Remove the repeated_start flag and code as this is not needed
for the LPI2C module
2. Enable the SION bit on the I2C pins
3. Enable 22K Pullup option of the I2C pins
4. Update the 0 byte write implementation to ensure the START
command gets flushed out of the FIFO
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-08-17 15:03:35 -05:00
Qinghao Shi
485fe79a71
add __ARM_FM macro in targets.json
2018-08-17 18:01:21 +01:00
Qinghao Shi
f612ea0b47
replace hard-coded vector size with macro in linker scripts
2018-08-17 17:59:17 +01:00
Cruz Monrreal
f15dbf2c3d
Merge pull request #7706 from jamesbeyond/fm_mem
...
Refactoring memory regions definitions for Fast Models MPS2 targets
2018-08-17 11:10:36 -05:00
Cruz Monrreal
8e25d2d905
Merge pull request #7669 from SigmaDeltaTechnologiesInc/master
...
SDT64, 8195, 32620, 32625, 51822, 52832B added to targets
2018-08-17 11:10:12 -05:00
David Saada
62a70f461b
Fix TMPM64B IAR linker file
...
Remove unnecessary manual inclusion of tmpm64b_fc object file in linker script
2018-08-16 21:59:44 +03:00
Simo Sillankorva
c6acfd389b
Change NUCLEO_F303RE IAR Linker script heap size
...
* Change the heap size value to be the stated 1/4 of the RAM.
2018-08-16 01:58:43 -07:00
Jiwon Yune
515e35efe9
fixed errors related to MAX32625_NO_BOOT
2018-08-16 13:53:47 +09:00
Jiwon Yune
f50e7e9620
SDT8195B removed
2018-08-16 11:05:19 +09:00
Cruz Monrreal
134ff0a3a9
Merge pull request #7777 from jeromecoutant/PR_SUNDAY
...
STM32F1 RTC : wrong Sunday value
2018-08-15 16:15:48 -05:00
Cruz Monrreal
c4e814d9cc
Merge pull request #7716 from MateuszMaz/#issue5119_pwm_fix
...
Fix issue #5119 , changed pwmout_api.
2018-08-15 16:12:41 -05:00
Cruz Monrreal
b01d0abf4c
Merge pull request #7693 from kapi90/cm3ds_gpio_api_fix
...
Fix for CM3DS GPIO api
2018-08-15 15:53:42 -05:00
Cruz Monrreal
b4e88392dd
Merge pull request #7645 from naveenkaje/fix_nrf
...
nrf_drv_twi: remove redundant nrf_drv_disable call in nrf_drv_twi_uninit
2018-08-15 15:51:21 -05:00
Simo Sillankorva
83608d59ac
Add bootloader support for target NUCLEO_F303RE
2018-08-15 07:30:05 -07:00
jeromecoutant
c8d628baf6
STM32 : update LPTICKER_DELAY_TICKS value
...
- decreased to 1 for low freq targets
- removed for high freq targets
- not changed for targets with LPTIM
2018-08-14 16:54:39 +02:00
jeromecoutant
a0fa0b6a5a
STM32 RTC : remove compilation warning with unused variable
2018-08-14 14:00:25 +02:00
jeromecoutant
7b77e50082
STM32 LPTICKER : RTC wake up timer is reset before settign a new one
2018-08-14 13:59:48 +02:00
jeromecoutant
b5c258e398
STM32L4 : code cleanup in MSI SetSysClock
2018-08-14 09:20:52 +02:00
MateuszM
2aa67b8c16
Fix for issue #7707 PwmOut inverted
...
since obj->sequence = &obj->pulse
and most significant bit of sequence denotes the polarity, we should set it.
2018-08-13 17:39:27 +02:00
MateuszM
e1d50193b0
Fix for issue #7743 NRF52 Cannot initialize PWM
...
Deleted lines that caused the problem. Note that, in nrf_drv_pwm_init there are lines that check if pwm instance is already running, so we don't even need to check it in nordic_pwm_init.
nrf_drv_uninit should be used in nordic_pwm_restart.
2018-08-13 17:29:49 +02:00
jeromecoutant
e455d74f3d
STM32 : Sunday value is different for STM32F1
2018-08-13 17:04:56 +02:00
Cruz Monrreal
0e68570d49
Merge pull request #7686 from KariHaapalehto/1530_led
...
Correct MTB_ADV_WISE_1530 led configuration
2018-08-13 09:18:27 -05:00
jeromecoutant
063cad5992
STM32L4 assert in SetSysClock replaced
2018-08-13 16:01:49 +02:00
jeromecoutant
ac06d5574b
STM32L1 assert in SetSysClock replaced
2018-08-13 15:56:20 +02:00
jeromecoutant
220d033468
STM32L0 assert in SetSysClock replaced
2018-08-13 15:55:51 +02:00
jeromecoutant
749343f695
STM32F7 assert in SetSysClock replaced
2018-08-13 15:55:17 +02:00
jeromecoutant
b47c1ef6c4
STM32F4 assert in SetSysClock replaced
2018-08-13 15:54:51 +02:00
jeromecoutant
974141ce48
STM32F3 assert in SetSysClock replaced
2018-08-13 15:51:35 +02:00
jeromecoutant
bf7dc5f8b8
STM32F2 assert in SetSysClock replaced
2018-08-13 15:48:26 +02:00
jeromecoutant
dc02be705a
STM32F1 assert in SetSysClock replaced
2018-08-13 15:04:02 +02:00
jeromecoutant
76356039d9
STM32F0 assert in SetSysClock replaced
2018-08-13 14:53:33 +02:00
Markus Siglreithmaier
97fef1160c
STM32L4: Fix sleep implementation
...
Correctly detect and handle the low power run mode when entering and exiting sleep mode.
The generic `hal_sleep` implementation tries to exit LPR mode always, resulting in a spin-loop during a critical section (disabled IRQ).
The new approach returns from LPR to Run mode if enabled (LPR bit set), enters sleep, and resets to the original state on wakeup (WFI).
2018-08-13 09:21:31 +02:00
Mika Leppänen
4385361d38
Changed Realtek RTL8195A wifi interface to inherit EMAC interface
...
This allows connection status callback build into EMAC interface class
to work with Realtek RTL8195A wifi.
2018-08-10 10:07:16 +03:00
Cruz Monrreal
54f40a0f4f
Merge pull request #7523 from maximmbed/max32625pico-bl-updates
...
Add bootloader configuration parameters for MAX32625PICO
2018-08-09 19:06:30 -05:00
Cruz Monrreal
7bcbb78661
Merge pull request #7729 from davidsaada/david_fix_arm_linker_script_renesas_realtek
...
Rename text region in ARM linker file for Renesas & Realtek boards
2018-08-09 15:57:29 -05:00
Cruz Monrreal
c52d49c67b
Merge pull request #7731 from mirelachirica/wise_1570_clock_source_back_to_HSE_XTAL
...
Cellular: WISE_1570's system clock back to HSE_XTAL
2018-08-09 10:18:53 -05:00
Cruz Monrreal
e85acac175
Merge pull request #7717 from LMESTM/fix_checkfifo
...
STM32: check for UART ongoing transfers before entering deepsleep
2018-08-09 10:17:00 -05:00
MateuszM
b5eb59091a
fix formatting
2018-08-08 16:53:21 +02:00
Mirela Chirica
2d53282c38
Cellular: WISE_1570's system clock back to HSE_XTAL
2018-08-08 16:24:33 +03:00
Cruz Monrreal
d360da9d1d
Merge pull request #7419 from codeauroraforum/Add_MXRT_Sleep_Support
...
MIMXRT1050EVK: Fix Sleep support
2018-08-08 07:36:24 -05:00
David Saada
84412d6493
Rename text region in ARM linker file for Renesas & Realtek boards
2018-08-08 14:56:58 +03:00
Cruz Monrreal
0eb7e7dd89
Merge pull request #7703 from li-ho/adi_tmr_api
...
Resolve us_ticker.c api discrepancy between EV_COG_AD4050LZ and EV_COG_AD3029LZ
2018-08-07 09:16:55 -05:00
Cruz Monrreal
54bc12f91c
Merge pull request #7643 from bcostm/fix_uart_remove_force_reset
...
STM32: remove uart force_reset at init
2018-08-07 09:14:20 -05:00
Laurent Meunier
e12d98e1c0
Use HAL coding style for function naming
2018-08-07 13:42:46 +02:00
Laurent Meunier
402f3f1c3f
STM32: check for UART ongoing transfers before entering deepsleep
...
As suggested by Russ Butler in mbed-os issue #7328 , and until there is an
implementation of mbed-os issue #4408 , we are implementing a workaround
at HAL level to check if there is any ongoing serial transfer (which happens
if HW FIFO is not yet empty).
In case a transfer is ongoing, we're not entering deep sleep and
return immediately.
2018-08-07 11:30:53 +02:00
MateuszM
b5d23c3f26
Fix issue #5119 , changed pwmout_api.
...
The period of pwm we could get was limited to 69.9 ms, because prescaler value was set once only during initialization. base->mod is a 16 bit register, to get longer period we have to slow down the clk.
2018-08-07 09:36:32 +02:00
Mahesh Mahadevan
9cf2b76db9
MXRT1050_EVK: Enable Sleep function and add SKIP_SYSCLK_INIT macro
...
SKIP_SYSCLK_INIT prevents reinitializing the SYS_CLK PLL used by SDRAM.
This PLL is setup during bootup by the ROM code.
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-08-06 11:55:33 -05:00
Mahesh Mahadevan
74c96b6359
MXRT1050_EVK: Sleep: add pre/post processing steps
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-08-06 11:55:32 -05:00
Mahesh Mahadevan
e18e0f12f4
MXRT1050_EVK: Ensure certain low power function are linked to internal memory
...
Low power functions related to powering off FLEXSPI and SDRAM needs
to be copied to internal memory
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-08-06 11:55:13 -05:00
Mahesh Mahadevan
a1d8298057
MIMXRT1050_EVK: Add Low Power Manager files
...
This is needed to support different Low-Power modes available
in MXRT1050
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-08-06 10:36:16 -05:00
Jiwon Yune
04fc7aa36f
Generic pin names added
2018-08-06 14:50:19 +01:00
Edmund Hsu
10af90ac0a
Resolve adi_tmr_ConfigTimer api conflict in us_ticker.c for both EV_COG_AD4050LZ and EV_COG_AD3029LZ
2018-08-06 16:41:55 +10:00
Edmund Hsu
da6c6bdc49
Resolve adi_tmr_ConfigTimer discrepancy between __ADuCM4050__ and __ADuCM3029__
2018-08-06 16:36:36 +10:00
Edmund Hsu
6a7bfeba6d
Disable unused Configuration data from compiler warning
...
Add __ADuCM3029__ constants
2018-08-06 16:32:18 +10:00
Edmund Hsu
20de3366ae
Add C++ linkage for adi_tmr.h
2018-08-06 16:25:32 +10:00
Edmund Hsu
9579440ce7
Add __ADUCM4050__ and __ADUCM3029__ to include MCU specific configurations
2018-08-06 16:23:25 +10:00
Qinghao Shi
f2aae22f92
Refactoring memory regions definitions for MPS2_M0 targets
...
* align MPS2_M0 FVP target with other MPS2 targets
* moved memory_zones.h
* chnage the flash_api.c where referencing the old memory_zones
* modify mbed_rtx.h to use the memory_zones definations as INITIAL_SP
* all linker scripts reference the definitions from memory_zones.h
* tool chains use predefined 1K as ISR Stack size
* ARM Complier 5 and GCC will auto calculated heap size
* IAR use predefined 2MiB as heap size
2018-08-06 01:48:53 +01:00
Qinghao Shi
6f92504467
Refactoring memory regions definitions for MPS2_M0P targets
...
* added memory_zones.h
* all linker scripts reference the definitions from memory_zones.h
* tool chains use predefined 1K as ISR Stack size
* ARM Complier 5 and GCC will auto calculated heap size
* IAR use predefined 2MiB as heap size
2018-08-06 01:43:45 +01:00
Qinghao Shi
8fc384296e
Refactoring memory regions definitions for MPS2_M7 targets
...
* added memory_zones.h
* all linker scripts reference the definitions from memory_zones.h
* tool chains use predefined 1K as ISR Stack size
* ARM Complier 5 and GCC will auto calculated heap size
* IAR use predefined 2MiB as heap size
2018-08-06 01:42:33 +01:00
Qinghao Shi
7159329efc
Refactoring memory regions definitions for MPS2_M4 targets
...
* added memory_zones.h
* all linker scripts reference the definitions from memory_zones.h
* tool chains use predefined 1K as ISR Stack size
* ARM Complier 5 and GCC will auto calculated heap size
* IAR use predefined 2MiB as heap size
2018-08-06 01:42:15 +01:00
Qinghao Shi
a9f44812ca
Refactoring memory regions definitions for MPS2_M3 targets
...
* added memory_zones.h
* all linker scripts reference the definitions from memory_zones.h
* tool chains use predefined 1K as ISR Stack size
* ARM Complier 5 and GCC will auto calculated heap size
* IAR use predefined 2MiB as heap size
2018-08-06 01:41:35 +01:00
Bence Kaposzta
f335fc10a6
Fix for CM3DS GPIO api
2018-08-03 15:10:49 +02:00
Kari Haapalehto
96457ab1e0
mbed-os-example_blinky didn't work with wise-1530, so MTB_ADV_WISE_1530
...
led configuration have been updated.
Also minor update to MTB_MXCHIP_EMW3166 led configuration, led3 is now
defined but not connected.
2018-08-03 10:29:13 +03:00
Cruz Monrreal
ae40a09036
Merge pull request #7508 from mprse/ticker_free
...
Ticker free() - requirements, pseudo code, tests, implementation
2018-08-02 23:05:14 -05:00
Cruz Monrreal
1023280bd9
Merge pull request #7676 from OpenNuvoton/nuvoton_organize_file_struct
...
Nuvoton: Organize file structure
2018-08-02 10:13:36 -05:00
Jiwon Yune
0046800c09
SDT64B in targets.json simplified
2018-08-02 22:34:14 +09:00
Przemyslaw Stekiel
ace821017f
Add implementation of ticker_free() function to CI boards.
...
This PR provides implementation of ticker_free() function for the following boards:
ARCH_PRO
EV_COG_AD3029LZ
EV_COG_AD4050LZ
K22F
K64F
K82F
KW24D
KW41Z
LPC546XX
NRF51_DK
NRF52_DK
NUCLEO_F207ZG
NUCLEO_F401RE
NUCLEO_F429ZI
NUCLEO_F746ZG
REALTEK_RTL8195AM
2018-08-02 09:48:10 +02:00
TomoYamanaka
04fcd33f15
Renesas : Improve Flash iap
...
I modified the _page_program() because when the request of the size exceeding the maximum size(256 byte) per one writing of Flash recieved, it was not able to loop the writing with sifting the address every 256 byte.
Also I modified the return value of flash_get_page_size() because I found that the minimum size per one writing of Flash is 1 byte by reviewing Flash spec.
"FLASH_PAGE_SIZE" macro's value is remain 256, it doesn't be used at flash_get_page_size(), used at _page_program() for refferencing of the maximum page size.
2018-08-02 13:48:56 +09:00
Cruz Monrreal
f9862b84e5
Merge pull request #7668 from bcostm/fix_cleanup_f7_hal_inittick
...
STM32F7: remove HAL_InitTick() declaration in us_ticker_data.h files
2018-08-01 21:42:22 -05:00
Martin Kojtal
b74a1ddf0d
Merge pull request #7552 from TomoYamanaka/feature-lp-ticker
...
Renesas: Add LPTICKER
2018-08-01 15:01:30 +02:00
Martin Kojtal
9df48f561b
Merge pull request #7606 from bcostm/PULL_REQUEST_CUBE_UPDATE_F1_V1.6.1
...
STM32F1: update to CubeF1 V1.6.1
2018-08-01 15:00:21 +02:00
Martin Kojtal
2ec99158ef
Merge pull request #7642 from ashok-rao/SPI_CS_fix
...
Changing default SPI CS pin to SD card on MTB
2018-08-01 14:57:26 +02:00
Martin Kojtal
c6aeaf0e52
Merge pull request #7658 from KariHaapalehto/update_wiced
...
Add default interface for wiced WiFi.
2018-08-01 14:55:53 +02:00
ccli8
6909159420
[Nuvoton] Organize file structure
...
This re-organization is to avoid duplicates regarding targets of the same MCU series.
2018-08-01 18:00:16 +08:00
Jiwon Yune
209a9dcc94
SDT52832B added
2018-08-01 18:21:45 +09:00
Jiwon Yune
784d17f68b
SDT51822B added
2018-08-01 18:20:22 +09:00
Jiwon Yune
0634be8b5f
SDT32625B added
2018-08-01 18:18:31 +09:00
Jiwon Yune
df3afa7b57
SDT32620B added
2018-08-01 18:17:16 +09:00
Jiwon Yune
4a06f59de0
SDT8195B added
2018-08-01 18:15:46 +09:00
Jiwon Yune
e5877910d2
SDT64B added
2018-08-01 18:13:33 +09:00
bcostm
2c96c5d270
STM32F7: remove HAL_InitTick() declaration in us_ticker_data.h files
2018-08-01 09:56:39 +02:00
Cruz Monrreal
63f62165d8
Merge pull request #7565 from OpenNuvoton/nuc472_emac_rst
...
Nuvoton: Fix NUC472 SD-Host HW IP reset definition
2018-07-31 11:44:01 -05:00
Cruz Monrreal
642fb9cc2c
Merge pull request #7622 from nismad01/myfix
...
MPS2 platform: Enable interrupt on rx for UART
2018-07-31 11:39:50 -05:00
Cruz Monrreal
d65abb662f
Merge pull request #7289 from mikaleppanen/odin_iar_heap_inc
...
On STM32F439xI IAR linker file decreased stack size and increased heap
2018-07-31 11:36:52 -05:00
Cruz Monrreal
cf84b05473
Merge pull request #6985 from OpenNuvoton/nuvoton_fix_rtosless_heap
...
Fix heap base/limit error with ARM_LIB_STACK/ARM_LIB_HEAP in RTOS-less
2018-07-31 11:36:42 -05:00
Kari Haapalehto
83c8571e68
WiFiInterface::get_target_default_instance() added to TARGET_WICED.
2018-07-31 15:54:20 +03:00
TomoYamanaka
87496df078
Add the clear process of "inited" flag in lp_ticker_free()
...
I added "lp_ticker_inited = 0" in lp_ticker_free() of lp_ticker.c, so
re-initialization will work.
2018-07-31 19:22:04 +09:00
TomoYamanaka
52cbc33d44
Implementation of LPTICKER feature for Renesas mbed boards
...
Although other venders implement this feature by using RTC, in my H/W(RZ_A1), I cannot use RTC because it does not satisfy the spec of LP Ticker (ms order and low frequency between 8 KHz and 64 KHz).
Therefore I implemented this feature by creating 1024 division by MTU2(Multi function Timer pulse Unit 2) in order to satisfy this spec.
As a result of investigating, the most unaffected channel among MTU2 placed on GR-PEACH and GR-LYCHEE was channel 3, so I use channel 3 for this feature.
- mbed_drv_cfg.h
I added a macro of MTU2 channel to this file for commonalizing code for GR-PEACH and GR-LYCHEE, and referenced it's macro at us_ticker.c.
- targets.json
I added a macro for enabling LP Ticker.
- mtu2.c mtu2.h
I defined fuction of MTU2's clock supply and stop.
Because MTU2 is utilized by pwm driver too, those function were referenced at lp_ticker driver and pwm driver.
- lp_ticker.c lp_ticker_init()
In order to satisfy the LP Ticker spec, I implemented by creating 1024 division by MTU2.
When an interrupt is required, it will be set with ticker_set_interrupt().
- lp_ticker.c lp_ticker_free()
This function stops the counting and powerdown the lp_ticker.
- lp_ticker.c lp_read()
This function returns the timer counter of MTU2.
- lp_ticker.c lp_ticker_set_interrupt()
In order to satisfy specifications, I implemented lp_ticker_set_interrupt() function.
- lp_ticker.c lp_ticker_fire_interrupt()
In order to satisfy spec, I implemented lp_ticker_fire_interrupt() function.
Also I added GIC_EnableIRQ for allowing the interrupt at end of function.
- lp_ticker.c lp_ticker_get_info()
To satisfy the spec, I implemented lp_ticker_get_info() function. The value of freq includes rounding off.
2018-07-31 19:22:03 +09:00
mudassar-ublox
ffb4f926e9
Artistic style applied and updated power function
2018-07-30 19:41:02 +05:00
Naveen Kaje
db91e7ed02
nrf_drv_twi: remove redundant nrf_drv_disable call in nrf_drv_twi_uninit
...
i2c_api implementation for NRF52 does a disable() followed by uninit().
The uniinit() implementation in NRF drivers layer makes another call to
disable. This throws off the state of the I2C instance leading to an
assert. Since the disable is only invoked from the I2C API layer for
Nordic, remove this redundant call.
Signed-off-by: Naveen Kaje <Naveen.Kaje@arm.com>
2018-07-30 09:18:43 -05:00
bcostm
9598dd9f12
STM32: remove uart force_reset at init
2018-07-30 14:52:31 +02:00
Ashok Rao
8c07fcd09f
Changing default SPI CS pin to SD card on MTB
2018-07-30 12:23:37 +01:00
Nis Madsen
5567ac3be6
MPS2 platform: Enable interrupt on rx for UART
2018-07-27 14:11:27 +02:00
mudassar-ublox
a8abeccdac
UBLOX cellular api's for UDP and TCP
2018-07-26 19:20:38 +05:00
bcostm
b47e599281
F1 ST CUBE V1.6.1: add I2C patches
2018-07-26 15:44:31 +02:00
ccli8
313f322cf7
[Nuvoton] Replace __wrap__sbrk with overriding _sbrk
...
With _sbrk being weak, we can override it directly rather than #if to support heap with
two-region model.
2018-07-26 15:47:25 +08:00
bcostm
8ce35ba845
F1 ST CUBE V1.6.1
...
- stm32f1xx hal V1.1.2
2018-07-25 14:20:11 +02:00
Martin Kojtal
7adfcbef71
Merge pull request #7551 from M-ichae-l/realtek-rtl8195am-remove-DEVICE_EMAC
...
realtek rtl8195am remove DEVICE_EMAC
2018-07-25 14:18:57 +02:00
ccli8
caf06e83c1
[Nuvoton] Fix __user_setup_stackheap and ARM_LIB_STACK/ARM_LIB_HEAP cannot co-exist in RTOS-less build
2018-07-25 17:19:09 +08:00
Przemyslaw Stekiel
c0ee843d63
Add lp/us ticker_free() functions stub.
...
This patch adds only empty stubs of `us_ticker_free()` and `lp_ticker_free()` for all boards where these functions are not implemented.
2018-07-25 08:58:38 +02:00
ccli8
d6ae30a728
[Nuvoton] Merge multiple ARM/ARMC6 sys.cpp into one
2018-07-25 10:04:31 +08:00
Cruz Monrreal
e4108b5842
Merge pull request #7554 from jamesbeyond/fm_flash
...
Enable HAL Flash API on Fast Models MPS2 targets
2018-07-24 11:47:00 -05:00
Cruz Monrreal
5d5ca62a5e
Merge pull request #7553 from bcostm/fix_L496_sct
...
STM32L496: fix RAM size in ARM scatter file
2018-07-23 10:14:05 -05:00
Cruz Monrreal
0c2ffe5e58
Merge pull request #7519 from Wiznet/master
...
Wiznet: fix us_ticker & gpio bug
2018-07-23 10:13:10 -05:00
Cruz Monrreal
21dbbc5e8b
Merge pull request #7510 from mattbrown015/fix_stm32_gpio_irq_deepsleep
...
STM32: Improve GPIO IRQ edge detection when waking from deepsleep
2018-07-23 10:12:49 -05:00
Cruz Monrreal
057138c2a0
Merge pull request #7536 from ganesh-ramachandran/master
...
Add Support for Toshiba TMPM3H6
2018-07-20 12:38:25 -05:00
Cruz Monrreal
bb7b97cadc
Merge pull request #7491 from evva-sfw/feature/EFM32_make_PeripheralPins_overridable
...
EFM32: fix weak PeripheralPins configuration
2018-07-20 08:01:39 -05:00
cyliangtw
240619745d
Fixed NUC472 SD & EMAC IP reset define
2018-07-20 18:23:41 +08:00
Cruz Monrreal
541fc1f28b
Merge pull request #7539 from jeromecoutant/PR_LL_API
...
STM32F2/F4/F7 : LL API is now available for IRQ
2018-07-19 20:43:28 -05:00
Cruz Monrreal
218811024f
Merge pull request #7479 from SiliconLabs/feature/crc
...
Silicon Labs: Add support for hardware CRC
2018-07-19 13:06:42 -05:00
Qinghao Shi
f207944341
enable HAL FLASH API on Fast Models MPS2 targets
2018-07-19 14:41:21 +01:00
bcostm
bf8587ed50
STM32L496: fix RAM size in ARM scatter file
2018-07-19 14:02:05 +02:00
Ganesh Ramachandran
8673286100
Resolved conflict in targets/targets.json
2018-07-19 16:32:51 +05:30
Ganesh Ramachandran
bfcfe9cc4b
Added Support for Toshiba TMPM3H6
2018-07-19 16:31:11 +05:30
zzw
b6a67c103b
realtek rtl8195am remove DEVICE_EMAC
...
1, remove DEVICE_EMAC for wifi feature
2018-07-19 18:07:18 +08:00
Cruz Monrreal
dd6482b955
Merge pull request #7504 from TacoGrandeTX/feature_itm_fix
...
Feature itm fix
2018-07-18 09:01:13 -05:00
Cruz Monrreal
db9a0e8b72
Merge pull request #7533 from marcuschangarm/fix-nrf52832-iar
...
Fix linker script for NRF52832/IAR
2018-07-18 08:56:44 -05:00
Cruz Monrreal
e9e1ff997d
Merge pull request #7302 from OpenNuvoton/nuvoton_m2351_v1.1
...
Support Nuvoton's NUMAKER_PFM_M2351 target
2018-07-18 08:49:55 -05:00
jeromecoutant
59fd0c0cce
STM32F2/F4/F7 : LL API is now available
2018-07-18 15:17:46 +02:00
Marcus Chang
9a073c0ae4
Fix linker script for NRF52832/IAR
...
IAR linker script was using memory settings from the NRF52840 and
not the NRF52832.
2018-07-17 12:43:23 -07:00
PHST
804edd578e
Place "MBED_WEAK" for IAR-Toolchain before the type.
2018-07-17 08:12:41 +02:00
Keyur Hariya
ed94e6aa35
Add bootloader configuration parameters for MAX32625PICO and rework targets.json
2018-07-16 18:26:51 -05:00
PHST
de266d827e
Added missing include.
2018-07-16 19:28:54 +02:00
PHST
1658349965
Replace __attribute__((weak)) with MBED_WEAK
2018-07-16 15:38:25 +02:00
PHST
a8dcf52971
Make PeripheralPins.c configuration tables weakly defined to be overridable for target EFM32GG11.
2018-07-16 12:35:44 +02:00
PHST
95d78df962
EFM32 Make PeripheralPins.c configuration tables weakly defined to be overridable.
...
See issue "https://github.com/ARMmbed/mbed-os/issues/7424#issuecomment-404233377 "
2018-07-16 11:48:53 +02:00
Steven Cooreman
86491627bf
Add implementation for CRC API
2018-07-16 11:08:45 +02:00
justinkim
8b5485664d
fix timer Interrupt callback function bug
2018-07-16 14:44:15 +09:00
justinkim
65601525d6
add Systick configuration function in Init function
2018-07-16 14:43:45 +09:00
justinkim
3b412128af
fix GPIO bug & typo
...
initialization bug
2018-07-16 14:42:48 +09:00
justinkim
6e86402d8a
add GPIO Pad Type Define & fix typo
2018-07-16 14:41:19 +09:00
Deepika
455f1fd440
[M2351] Support only ARMC6 toolchain
...
Support for GCC_ARM/IAR toolchains are TODO.
2018-07-16 10:15:36 +08:00
Cruz Monrreal
38744b9e68
Merge pull request #7498 from bcostm/fix_hsi_lse_lpuart
...
STM32: enable HSI/LSE clocks for LPUART
2018-07-14 13:33:35 -05:00
Cruz Monrreal
671b3c875e
Merge pull request #7507 from jeromecoutant/PR_LPTIM
...
STM32 LPTICKER with LPTIM minor update
2018-07-14 06:29:36 -05:00
Cruz Monrreal
602b0cea09
Merge pull request #7079 from SiliconLabs/feature/EFM32GG11-OS5.9
...
Add support for EFM32GG11
2018-07-13 17:33:34 -05:00
Cruz Monrreal
cc8651e45c
Merge pull request #7505 from naveenkaje/pushbranch
...
Fix linker script for NRF52840/ARM
2018-07-13 13:30:25 -05:00
Cruz Monrreal
531ee3c5d4
Merge pull request #7461 from 0xc0170/fix_raytac_removal
...
Raytac: target removal
2018-07-13 11:46:58 -05:00
Deepika
2bbe043793
[M2351] Adding missing ENDP for ARM
2018-07-13 10:56:45 -05:00
mattbrown015
7ef70223fb
Improve GPIO IRQ edge detection when waking from deepsleep
2018-07-13 16:02:31 +01:00
Cruz Monrreal
1145d6bb3c
Merge pull request #7489 from mirelachirica/wise_1570_hsi_source_clock
...
Cellular: HSI set to be source clock for WISE_1570
2018-07-13 09:12:22 -05:00
jeromecoutant
8a0b83233a
STM32 LPTICKER with LPTIM minor update
...
Code cleaning (L0 Cube update, comment precision)
2018-07-13 10:03:31 +02:00
Naveen Kaje
ed251020b6
NRF52832 linker script: formatting fix
2018-07-12 15:19:13 -05:00
Naveen Kaje
192eb28814
Fix linker script for NRF52840/ARM
2018-07-12 15:19:13 -05:00
RFulchiero
0198481f8f
Improved formatting for preprocessor conditionals.
2018-07-12 13:30:36 -05:00
Marcus Chang
10b90edea3
Fix ITM on NRF52 series
...
The ITM must be initialized before the SoftDevice, but due to the
lazy initialization in C++ on (at least) GCC the ITM init call
might happen too late.
This commit moves the initialization code into the NRF52 system
startup file.
2018-07-12 13:29:24 -05:00
Cruz Monrreal
f4c936f455
Merge pull request #7486 from marcuschangarm/fix-nrf52-iar
...
Fix linker script for NRF52840/IAR
2018-07-12 10:09:12 -05:00
Cruz Monrreal
6300d8b5e4
Merge pull request #7487 from marcuschangarm/fix-nrf52-serial
...
Allow STDIO pins to be NC in NRF52 series
2018-07-12 10:05:08 -05:00
bcostm
665de33cc6
stm32 lpuart: enable lse and hsi if not done
2018-07-12 15:58:02 +02:00
ccli8
e61c5146c6
[M2351] Fix binary-compatible across compilers in secure functions
...
1. Rename m2351_stddriver_sup.h/c to stddriver_secure.h/.c for naming consistency
2. Add hal_secure.h to include hal-exported secure functions
3. Change return/argument type in secure functions:
(1) Change int to int32_t
(2) Change PinName to int32_t
(3) Change time_t to int64_t
4. Update secure lib/bin accordingly
2018-07-12 18:01:41 +08:00
ccli8
6bf8e191af
[M2351] Support configurable for partitioning flash/SRAM
2018-07-12 18:01:39 +08:00
ccli8
778aa1e766
[M2351] Place default secure binary/library
2018-07-12 18:01:38 +08:00
ccli8
31bf7bf342
[M2351] Fix include file name error on case-sensitive system
2018-07-12 18:01:36 +08:00
ccli8
d350f45b4b
[M2351] Synchronize lp_ticker code to us_ticker
...
This is to make us_ticker/lp_ticker code consistent.
2018-07-12 18:01:35 +08:00
ccli8
688029a511
[M2351] Remove special handling for dummy interrupt in lp_ticker
...
It is because dummy interrupt is very rare or pending time caused by it
is very short.
2018-07-12 18:01:34 +08:00
ccli8
124b4ad557
[M2351] Remove NUMAKER_PFM_M2351_S/_NS targets
2018-07-12 18:01:33 +08:00
ccli8
c382e9642e
[M2351] Upgrade chip version to B from A
...
There is a reset halt issue with PLL in A version.
To switch back to A version for some reason, define NU_CHIP_MAJOR to 1.
2018-07-12 17:52:10 +08:00
ccli8
c725f188ec
[M2351] Change pinout to meet NuMaker-PFM-M2351 V1.1
2018-07-12 17:52:09 +08:00
ccli8
93ee13adbe
[M2351] Change secure flash/SRAM to 256KB/32KB as default
...
This is to compilant with CMSIS pack.
2018-07-12 17:52:08 +08:00
ccli8
c3c661da8d
[M2351] Change secure/non-secure stack/heap size
...
1. Change RTOS-less main stack/RTOS ISR stack size to 2KiB
2. Change secure/non-secure heap size to 16KiB/32KiB for IAR
2018-07-12 17:52:07 +08:00
ccli8
04f723755b
[M2351] Meet new RTC HAL spec (Mbed OS 5.9)
...
1. Power down RTC access from CPU domain in rtc_free. After rtc_free, RTC gets
inaccessible from CPU domain but keeps counting.
2. Fix RTC cannot cross reset cycle.
2018-07-12 17:52:06 +08:00
ccli8
6729b65236
[M2351] Meet new lp_ticker HAL spec (Mbed OS 5.9)
...
1. Add LPTICKER in device_has option of targets.json file.
2. Disable interrupt in lp_ticker_init
3. Add lp_ticker_free
4. Enable interrupt in lp_ticker_set_interrupt/lp_ticker_fire_interrupt
5. Disable interupt in ISR
2018-07-12 17:52:05 +08:00
ccli8
9cbc8b21ee
[M2351] Meet new us_ticker HAL spec (Mbed OS 5.9)
...
1. Add USTICKER in device_has option of targets.json file.
2. Disable interrupt in us_ticker_init
3. Add us_ticker_free
4. Enable interrupt in us_ticker_set_interrupt/us_ticker_fire_interrupt
5. Disable interrupt in ISR
2018-07-12 17:52:03 +08:00
ccli8
de83cb2892
[M2351] Add secure gateway functions SYS_LockReg_S/SYS_UnlockReg_S
2018-07-12 17:52:02 +08:00
ccli8
990665512d
[M2351] Add SD pinmap
2018-07-12 17:52:01 +08:00
ccli8
1b9fa07b6f
[M2351] Default MBED_TZ_DEFAULT_ACCESS to 1 to control secure SYS/CLK regions from non-secure threads
...
To initialize/uninitialize H/W module, we need to control secure SYS/CLK regions through secure functions.
For a new thread to call these secure functions, we need to allocate secure context for it.
2018-07-12 17:52:00 +08:00
ccli8
89d32227a0
[M2351] Replace __attribute__((cmse_nonsecure_entry)) with compiler agnostic __NONSECURE_ENTRY
2018-07-12 17:51:59 +08:00
ccli8
767e74b1db
[M2351] Support TrustZone and bootloader for IAR
2018-07-12 17:51:58 +08:00
ccli8
8f1623f717
[M2351] Add consistency check for CRYPTO/CRPT's secure attribute and TRNG/Mbed TLS H/W
2018-07-12 17:51:55 +08:00
ccli8
2854b57091
[M2351] Remove dead code with '#if 0' in SPI
2018-07-12 17:51:54 +08:00
ccli8
d3c64785c7
[M2351] Add GPIO debounce configuration in targets.json
2018-07-12 17:51:53 +08:00
ccli8
13e1209c83
[M2351] Support PWM out
2018-07-12 17:51:52 +08:00
ccli8
d05ef693ac
[M2351] Support analog-in
2018-07-12 17:51:51 +08:00
ccli8
1da430f1e9
[M2351] Support TRNG
...
To change TRNG security state, we need to:
1. Change CRPT/CRYPTO bit in NVIC/SCU in partition_M2351.h
2. Add/remove TRNG in device_has list in targets.json to match partition_M2351.h
2018-07-12 17:51:50 +08:00
ccli8
dd7fd76758
[M2351] Centralize size configuration for secure flash, secure SRAM, NSC, and bootloader
2018-07-12 17:51:48 +08:00
ccli8
ca63abae73
[M2351] Change NSC location
...
NSC location has the following requirements:
1. By IDAU, 0~0x4000 is secure. NSC can only locate in 0x4000~0x10000000.
2. Greentea flash IAP uses last 4 sectors for its test. Avoid this range.
3. Greentea NVSTORE uses last 2 sectors or 4KB x 2 for its test. Avoid this range.
2018-07-12 17:51:48 +08:00
ccli8
42aa7fe0c5
[M2351] Upgrade partition format
...
Following BSP, this upgrade makes partitioning flash/SRAM clear.
flash_api.c relies on flash partition, so it is updated accordingly.
2018-07-12 17:51:47 +08:00
ccli8
805049d80f
[M2351] Fix page size in flash IAP
...
In Mbed OS, page size is program unit, which is different than FMC definition.
After fixing page size, we can pass NVSTORE test (mbed-os-features-nvstore-tests-nvstore-functionality).
2018-07-12 17:51:45 +08:00
ccli8
711cb64e95
[M2351] Support flash IAP
2018-07-12 17:51:44 +08:00
ccli8
fa0124ed8d
[M2351] Add missing delay in lp_ticker
2018-07-12 17:51:43 +08:00
ccli8
06cb070442
[M2351] Trim HIRC48 to 48M against LXT
2018-07-12 17:51:42 +08:00
ccli8
649389a962
[M2351] Support I2C
2018-07-12 17:51:41 +08:00
ccli8
3ca24b62ff
[M2351] Support SPI
2018-07-12 17:51:40 +08:00
ccli8
dcfe1d4283
[M2351] Refine UART code
...
1. Replace SYS_ResetModule/CLK_SetModuleClock/CLK_EnableModuleClock/CLK_DisableModuleClock with TrustZone-aware versions.
2. Configure all UART to secure
3. Support asynchronous transfer
4. Remove sleep management code, which has been replaced with Sleep Manager.
2018-07-12 17:51:38 +08:00
ccli8
ebf53b9f64
[M2351] Support PDMA
2018-07-12 17:51:38 +08:00
cyliangtw
999dd332e6
[M2351] Rework us_ticker and lp_ticker
...
The rework includes the following:
1. Remove ticker overflow handling because upper layer (mbed_ticker_api.c) has done with it.
This makes us_ticker/lp_ticker implementation more succinct and avoids potential error.
2. Refine timer register access with low-power clock source
2018-07-12 17:51:37 +08:00
ccli8
236bf657b6
[M2351] Remove peripheral sleep management from hal_sleep/hal_deepsleep
...
The upper layer has introduced Sleep Manager to handle the task.
2018-07-12 17:51:36 +08:00
ccli8
6bfc90dc73
[M2351] Rework RTC
...
The rework includes the following:
1. Support year range beyond H/W RTC 2000~2099.
2. Refine RTC register access with low-power clock source
2018-07-12 17:51:34 +08:00
ccli8
f16b971482
[M2351] Fix GPIO to be TrustZone-aware
...
1. Revise NU_PORT_BASE to be TrustZone-aware
2. Add TrustZone-aware NU_GET_GPIO_PIN_DATA/NU_SET_GPIO_PIN_DATA to replace GPIO_PIN_DATA
3. Revise pin_function to be TrustZone-aware
2018-07-12 17:51:33 +08:00
ccli8
2aa2b7eb00
[M2351] Fix SystemCoreClockUpdate isn't called in non-secure domain
2018-07-12 17:51:32 +08:00
ccli8
0cb7633356
[M2351] Fix HCLK clock source
...
There is a reset halt issue with PLL in A version.
Work around it by using HIRC48 instead of PLL as HCLK clock source.
2018-07-12 17:51:31 +08:00
ccli8
135f1279ca
[M2351] Add secure BSP driver function
...
SYS_ResetModule_S
CLK_SetModuleClock_S
CLK_EnableModuleClock_S
CLK_DisableModuleClock_S
2018-07-12 17:51:30 +08:00
ccli8
d84a90e29d
[M2351] Unify secure/non-secure peripheral base based on partition file
2018-07-12 17:51:29 +08:00
ccli8
77e45d414b
[M2351] Configure most modules to non-secure
...
All modules are configured to non-secure except:
1. TIMER0/1 hard-wired to secure and TIMER2/3 reserved for non-secure.
2. PDMA0 hard-wired to secure and PDMA1 reserved for non-secure.
3. RTC configured to secure and shared to non-secure through NSC.
4. CRYPTO configured to secure and shared to non-secure through NSC.
2018-07-12 17:51:28 +08:00
ccli8
2da6bf6301
[M2351] Fix STDIO UART
2018-07-12 17:51:27 +08:00
ccli8
a3846932a6
[M2351] Fix target configuration
...
1. NUMAKER_PFM_M2351 defaults to non-secure
2. Add NUMAKER_PFM_M2351_S/NUMAKER_PFM_M2351_NS which are for secure/non-secure build respectively.
3. Change output format to Intel HEX
4. Fix device name to M2351KIAAEES from M2351K1AAEES
5. Add detect_code
2018-07-12 17:51:25 +08:00
cyliangtw
0c3f0f7cb7
[M2351] To fulfill _rtc_localtime one more argument
2018-07-12 17:51:24 +08:00
deepikabhavnani
21de229047
[M2351] Disabled fault handler support
2018-07-12 17:51:23 +08:00
cyliangtw
2b44eeaef5
[M2351] Add gpio_is_connected
2018-07-12 17:51:22 +08:00
cyliangtw
ef7f04808d
[M2351] Set secure SRAM size as 24KB in SAU & SCU
2018-07-12 17:51:21 +08:00
cyliangtw
d99fbcb166
[M2351] Set 48KB SRAM and UART0 as non-secure
2018-07-12 17:51:20 +08:00
cyliangtw
12a7830c9a
[M2351] Resolve reset halt issue in MP chip A version
2018-07-12 17:51:19 +08:00
cyliangtw
6163628b1e
[M2351] Sync IRQ arrangement to fulfill MP version
2018-07-12 17:51:18 +08:00
cyliangtw
331945fa08
[M2351] Remove redundant GetPC
2018-07-12 17:51:17 +08:00
cyliangtw
90fcc04596
[M2351] Migrate for MP chip version, build sucessfully
2018-07-12 17:51:16 +08:00
Deepika
94d95d34a4
[M2351] Support TrustZone in port_read/port_write
2018-07-12 17:51:14 +08:00
Deepika
aec7c5441c
[M2351] Add non-secure reset handler address
2018-07-12 17:51:13 +08:00
deepikabhavnani
eebc6e38cb
[M2351] Corrected Vector table address in scatter file
2018-07-12 17:51:12 +08:00
cyliangtw
46f948aa6f
[M2351] Link register base with partition file & correct heap size in linker file
2018-07-12 17:51:11 +08:00
cyliangtw
5985dcd268
[M2351] Support secure loader invoke non-secure Mbed OS
2018-07-12 17:51:10 +08:00
deepikabhavnani
2f01120d93
[M2351] Corrected preprocess define usage in toolchain specific linker files
2018-07-12 17:51:09 +08:00
cyliangtw
18ca9b5e6c
[M2351] Fix GCC linker file 'cannot move location counter backwards' issue
2018-07-12 17:51:08 +08:00
cyliangtw
ba9e5fdc29
[M2351] IAR linker file support both of secure & non-secure domain
2018-07-12 17:51:07 +08:00
cyliangtw
f06644a920
[M2351] Linker files support both of secure & non-secure domain
2018-07-12 17:51:06 +08:00
cyliangtw
a2aac528f4
[M2351] Update GCC linker for NSC Veneer
2018-07-12 17:51:05 +08:00
Deepika
f7ea847dfe
[M2351] ARMC6 compiler related changes
2018-07-12 17:51:04 +08:00
Deepika
1117e84d9e
[M2351] Removed device name, till device patch is added to IAR/Keil
2018-07-12 17:51:03 +08:00
Deepika
d46220c7e0
[M2351] Set SAU Region present flag for M2351 device and include security header file.
...
As per SAU documents, SAU is always present if the security extension is
available. The functionality differs if the SAU contains SAU regions.
If SAU regions are available it is configured with the macro __SAUREGION_PRESENT
2018-07-12 17:51:02 +08:00
Deepika
11792f60fa
[M2351] Added xx_ticker_fire_interrupt function for M2351 device
2018-07-12 17:51:01 +08:00
Deepika
ffcc438b5a
[M2351] Use Cortex M23 specific header files and interrupts
...
1. Update use of correct header files
2. Added missing entry of M2351 device in IAR defines.
3. Removed support of ARM toolchain in targets.json
2018-07-12 17:51:00 +08:00
cyliangtw
e67ed3f86e
[M2351] Revise nu_bitutil.h for M23
2018-07-12 17:50:59 +08:00
cyliangtw
6b85478730
[M2351] Modify Nuvoton common files to avoid conflicting with master
2018-07-12 17:50:58 +08:00
cyliangtw
98c8427a90
[M2351] Add partition header file for CMSE feature
2018-07-12 17:50:57 +08:00
cyliangtw
368f8eef93
[M2351] Remove mbed_sdk_init_forced
...
1. mbed_sdk_init is called before C++ global obj constructor in OS 5
2. Refine startup file with GCC_ARM toolchain related to this modification.
2018-07-12 17:50:56 +08:00
cyliangtw
06910bdea5
[M2351] remove progen, not used any more
2018-07-12 17:50:55 +08:00
cyliangtw
c5494eb751
[M2351] Support __vector_table instead of __vector_handlers in IAR
2018-07-12 17:50:54 +08:00
cyliangtw
1f27546480
[M2351] Support GCC & IAR toolchain
2018-07-12 17:50:53 +08:00
cyliangtw
dcdd9fb56e
[M2351] Sync SDH_CardDetection type to avoid GCC compiler error
2018-07-12 17:50:52 +08:00
cyliangtw
205f8dbab2
[M2351] Add one new target M2351, regard as M0+ with some V8M CPU control at first
2018-07-12 17:50:51 +08:00
Mirela Chirica
72aabc9db4
Cellular: HSI set to be source clock for WISE_1570
2018-07-12 10:12:15 +03:00
Cruz Monrreal
e1df16e843
Merge pull request #7365 from jeromecoutant/PR_RTC_SHADOW
...
STM32 RTC : bypass shadow registers
2018-07-11 21:29:02 -05:00
Cruz Monrreal
19c6f3b316
Merge pull request #7290 from bcostm/refactor_us_ticker
...
STM32: Refactor us_ticker files
2018-07-11 21:28:32 -05:00
Marcus Chang
fd088d2c4e
Allow STDIO pins to be NC in NRF52 series
...
Prevent ASSERT from triggering when one of the STDIO pins is not
connected.
2018-07-11 17:19:18 -07:00
Marcus Chang
6f0bb757f4
Fix linker script for NRF52840/IAR
...
Add missing noinit section.
2018-07-11 15:48:51 -07:00
Cruz Monrreal
c669655d86
Merge pull request #7042 from shuoo/feature-cm3ds-flash
...
Flash API: Enable Flash api on CM3DS
2018-07-11 09:28:17 -05:00
Cruz Monrreal
38c5e9c669
Merge pull request #7453 from marcuschangarm/fix-nrf52-swi
...
Fix SWI conflict in SoftDevice for NRF52 series
2018-07-11 08:12:30 -05:00
bcostm
0b133be504
stm32 ticker: change th eplace where timer init in done, fix overflow issue with 16-bit timer
...
- Move back the 16/32bit timer initialization in HAL_InitTick() and not in us_ticker_init()
- Use ticker_read_us() and us_ticker_read() in HAL_GetTick() to fix potential overflow issue with the 16bit timer
==> These corrections allow timer, rtc, sleep, tick tests to PASS
2018-07-11 14:45:48 +02:00
bcostm
fc50e28ae6
stm32 ticker: corrections in order to pass tests
2018-07-11 14:44:23 +02:00
bcostm
7097e07b62
stm32 ticker: typo corrections
2018-07-11 14:43:36 +02:00
bcostm
d8e839a789
stm32 ticker: change license
2018-07-11 14:43:16 +02:00
bcostm
32031cbab3
stm32 ticker: rename hal_tick.h in us_ticker_data.h
2018-07-11 14:42:44 +02:00
Cruz Monrreal
dc946b3c34
Merge pull request #7446 from kivaisan/disable_lse_MTB_USI_WM_BN_BM_22
...
Disable LSE for MTB_USI_WM_BN_BM_22
2018-07-11 07:39:44 -05:00
bcostm
fbd7a97e19
stm32 ticker: rename macro and update ST HAL Tick functions
...
- rename TIM_MST_16BIT in TIM_MST_BIT_WIDTH in order to use it directly in ticker info structure
- change HAL_InitTick() and HAL_GetTick()
2018-07-11 14:39:42 +02:00
bcostm
b1bbd765b7
stm32 ticker: rename files and move functions
...
- rename hal_tick_common.c in hal_tick_overrides.c
- move 16 and 32bits timer functions in us_ticker.c
2018-07-11 14:36:58 +02:00
Steven Cooreman
001844231b
Add EFM32GG11_STK3701 support
2018-07-11 10:45:38 +02:00
jeromecoutant
1052993236
STM32 RTC : bypass shadow registers
...
- RTC_SSR for the subseconds
- RTC_TR for the time
- RTC_DR for the date
These registers were accessed through shadow registers which are synchronized with PCLK1 (APB1 clock).
They are now accessed directly in order to avoid waiting for the synchronization duration.
2018-07-11 10:08:02 +02:00
Martin Kojtal
396c88ac3c
Raytac: target removal
...
No files to build - should not be in targets
Reverts part of the https://github.com/ARMmbed/mbed-os/pull/6178
2018-07-10 12:23:34 +01:00
Kimmo Vaisanen
a5ac795304
Disable LSE for MTB_USI_WM_BN_BM_22
...
Current MTB_USI_WM_BN_BM_22 modules do not have OSC32_IN connected, so
external xtal is not in use.
2018-07-10 08:49:38 +03:00
Marcus Chang
4bb84fdb71
Change NRF52 series UART to only use one SWI channel
...
This fixes conflicts with the SoftDevice.
2018-07-09 12:54:09 -07:00
Marcus Chang
cfb99d689a
Fix inconsistent SWI configuration in NRF52 series
...
All SWI channels except SWI0 is being used by the SoftDevice and
not only SWI1.
2018-07-09 12:54:09 -07:00
Marcus Chang
01135e30ce
Remove white space in config files for NRF52 series
2018-07-09 12:54:08 -07:00
Cruz Monrreal
bcec185754
Merge pull request #7352 from bcostm/fix_rtc_ticker
...
STM32: Fix RTC test issue on targets using a 16-bit timer for us_ticker
2018-07-09 10:20:13 -05:00
Karl Zhang
bbb97c803b
Flash API: Enable Flash api on CM3DS
...
Implement flash_api.c for CM3DS on MPS2+.
Because MPS2+ board has no physical flash chip, the implementation emulates
flash over SRAM.
2018-07-09 21:07:48 +08:00
Cruz Monrreal
69d8c0bac3
Merge pull request #7429 from codeauroraforum/MXRT_Fix_AnalogIn
...
MXRT1050: Ensure the pins are in input mode for analogin
2018-07-06 11:24:40 -05:00
Cruz Monrreal
59defa29e9
Merge pull request #7406 from OpenNuvoton/nuvoton_fix_wakeup_delay
...
NANO130: Change PLL clock source to HIRC instead of HXT
2018-07-06 11:20:40 -05:00
Mahesh Mahadevan
19b6ef2e87
MXRT1050: Ensure the pins are in input mode for analogin
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-07-05 17:23:07 -05:00
Mahesh Mahadevan
c24d158fb4
MIMXRT1050_EVK: Move clock enable after check of pin
...
Enable clock could return an error if pin is NC
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-07-05 10:59:00 -05:00
Cruz Monrreal
9f27672f0f
Merge pull request #7420 from codeauroraforum/Fix_MXRT_GPIO_IRQ
...
MIMXRT1050_EVK: Fix the GPIO IRQ number assignements
2018-07-05 10:51:02 -05:00
Cruz Monrreal
4942ec540c
Merge pull request #7413 from mikaleppanen/wiced_removed_def_inst
...
Modified Wiced drivers EMAC instance get
2018-07-05 10:42:41 -05:00
Cruz Monrreal
917dc8394c
Merge pull request #7405 from marcuschangarm/fix-nrf52-target
...
Fix target definition for NRF52 series
2018-07-05 10:41:55 -05:00
Cruz Monrreal
8b6dfc4050
Merge pull request #7401 from marcuschangarm/fix-nrf52-irq
...
Fix interrupt initialization for NRF52 series
2018-07-05 10:41:20 -05:00
Cruz Monrreal
3faedca1cf
Merge pull request #7390 from jeromecoutant/PR_TWO
...
DISCO STM32L4 : Add TWO_RAM_REGIONS macro
2018-07-05 10:39:31 -05:00
Cruz Monrreal
513960f17d
Merge pull request #7386 from evva-sfw/feature/make_clock_src_changeable
...
Make clock source changeable over mbed_app.json for EFM32-Targets
2018-07-05 10:39:11 -05:00
Cruz Monrreal
1941906f72
Merge pull request #7376 from bcostm/dev_leds_disco_L496ag
...
DISCO_L496AG: change LED1 and LED2 pins
2018-07-05 10:37:57 -05:00
Mahesh Mahadevan
9b48f3978a
MIMXRT1050_EVK: Fix the GPIO IRQ number assignements
...
Use the GPIO_Combined IRQ array
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-07-04 11:53:47 -05:00
bcostm
a838cb21d1
save/restore timer registers before/after deepsleep
2018-07-04 16:44:00 +02:00
bcostm
9523bcf8c9
Use elapsed time only for 16bit timer
2018-07-04 16:43:21 +02:00
bcostm
fcdd529f89
Re-enable IT CC1 after deepsleep
2018-07-04 10:16:32 +02:00
bcostm
f785c23e89
HAL_GetTick returns elapsed time
2018-07-04 10:16:31 +02:00
bcostm
26cb388d14
Use us_ticker_read while SDK is not ready
2018-07-04 10:15:15 +02:00
Mika Leppänen
83a82d31e0
Modified Wiced drivers EMAC instance get
...
Removed EMAC get_default_instance() since WLAN drivers are not default EMAC drivers.
Moved EMAC static declaration inside get_instance().
2018-07-04 09:44:28 +03:00
ccli8
13fec628d0
[NANO130] Change PLL clock source to HIRC instead of HXT
...
This change is to reduce delay of wake-up from power-down to pass Greentea test.
Because HIRC's accuracy is worse than HXT's, we must switch back to HXT for e.g. USBD application.
This can be done through setting NU_CLOCK_PLL to NU_HXT_PLL.
2018-07-03 15:37:53 +08:00
Marcus Chang
3f28fe2f54
Fix target definition for NRF52 series
...
* Removed RTC, NRF52840 doesn't support RTC API.
* Reorganized DEVICE_HAS order for NRF52832.
2018-07-02 16:58:33 -07:00
Mahesh Mahadevan
34dab4a4d9
LPC546XX: Fix UART mux setting in the LPCXpresso board
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-07-02 15:16:57 -05:00
Marcus Chang
a0224ed794
Fix interrupt initialization for NRF52 series
...
In some cases the UARTE interrupt would be enabled with pending
interrupts. This commit ensures that interrupts are only enabled
from a known state.
2018-07-02 11:13:50 -07:00
Martin Kojtal
2353e7b1c6
Merge pull request #7029 from OpenNuvoton/nuvoton_5.9_ticker
...
Nuvoton: Adhere to reworked ticker spec to release with Mbed OS 5.9
2018-07-02 17:28:11 +02:00
Martin Kojtal
44acaf587b
Merge pull request #7369 from marcuschangarm/fix-nrf52-serial
...
Fix race condition in serial_api.c for NRF52 series
2018-07-02 17:24:16 +02:00
jeromecoutant
40da60b959
DISCO STM32L4 : Add TWO_RAM_REGIONS macro
2018-07-02 14:03:05 +02:00
bcostm
b6beb74d9d
DISCO_L496AG: update LEDs comments in PeripheralPins.c
2018-07-02 10:27:23 +02:00
bcostm
a9ba4f9bf5
DISCO_L496AG: change LED1 and LED2 pins
2018-07-02 10:20:49 +02:00
PHST
9d9db81841
Make clock source changeable over mbed_app.json
...
By adding the missing include the clock source for EFM32-Targets is changeable over mbed_app.json.
2018-07-02 10:04:05 +02:00
Cruz Monrreal
2da597e56a
Merge pull request #7326 from bcostm/dev_lpuart1_clock_source
...
STM32: add lpuart_clock_source config
2018-06-29 20:09:09 -05:00
bcostm
0c417ab8b7
astyle
2018-06-29 10:12:40 +02:00
Martin Kojtal
58fa28b9b2
Merge pull request #7313 from mprse/NRF52840_ticker_width_fix
...
NRF_52840: Fix us ticker counter size
2018-06-29 10:10:40 +02:00
bcostm
9be8541a30
STM32: add lpuart_clock_source config
...
Keep same clock configuration as done before this PR (LSE and PCLK1).
Use a JSON file to change it.
2018-06-29 10:10:29 +02:00
Marcus Chang
2d71866028
Fix typo in NRF52 series README.md
...
UART configuration parameters mispelled.
2018-06-28 16:38:29 -07:00
Marcus Chang
fc087ab32c
Fix race condition in serial_api.c for NRF52 series
...
* Elevate RTC2 interrupt priority to same level as UARTE to prevent
race condition on shared variables.
* Remove unused TXDRDY event code.
* Fix typo in macro.
2018-06-28 16:36:16 -07:00
jeromecoutant
3721ac44d2
STM32 serial RX/TX active patch
...
In serial_tx_active and serial_rx_active functions,
we check the internal state value with
HAL_UART_STATE_BUSY_TX = 0x21U,
HAL_UART_STATE_BUSY_RX = 0x22U,
It seems that value can also be :
HAL_UART_STATE_BUSY_TX_RX = 0x23U,
2018-06-28 18:05:52 +02:00
Cruz Monrreal
bf21bac52d
Merge pull request #7351 from jeromecoutant/PR_ASTYLE
...
STM32 files with MBED astyle rules
2018-06-28 10:06:03 -05:00
ccli8
4f04ae489e
[Nuvoton] Synchronize lp_ticker code to us_ticker
...
This is to make us_ticker/lp_ticker code consistent.
2018-06-28 16:34:45 +08:00
ccli8
1fa3374310
[Nuvoton] Remove special handling for dummy interrupt in lp_ticker
...
It is because dummy interrupt is very rare or pending time caused by it
is very short.
2018-06-28 16:27:37 +08:00
Cruz Monrreal
5bf483ee17
Merge pull request #7330 from KariHaapalehto/clean_up
...
Clean-up targets.json
2018-06-27 18:44:41 -05:00
Cruz Monrreal
faa31de72e
Merge pull request #7323 from marcuschangarm/fix-serial
...
Improve serial performance for NRF52 series
2018-06-27 18:43:43 -05:00
Przemyslaw Stekiel
9966110dd9
NRF_52840: Fix us ticker counter size
...
It has been noticed that there is a problem with us ticker on NRF_52840 board after 32 bit counter has been used for us ticker on NRF52 family boards.
Currently NRF52 symbol is defined only for MCU_NRF52832 (not for MCU_NRF52840) and based on this symbol 16 or 32 bit counter is selected (16 bit for NRF51 family and 32 for NRF52 family).
Since MCU_NRF52840 defines NRF52840_XXAA and provides 32 bit counters, 32 bit counter should be selected also when NRF52840_XXAA symbol is defined.
2018-06-27 15:33:07 +02:00
jeromecoutant
78410e7032
TARGET_STM32L4 astyle
2018-06-27 14:46:00 +02:00
jeromecoutant
ecffec8336
TARGET_STM32L1 astyle
2018-06-27 14:44:37 +02:00
jeromecoutant
baf97d78aa
TARGET_STM32L0 astyle
2018-06-27 14:43:59 +02:00
jeromecoutant
e9d7128485
TARGET_STM32F7 astyle
2018-06-27 14:42:56 +02:00
jeromecoutant
f50720e2a4
TARGET_STM32F4 astyle
2018-06-27 14:42:28 +02:00
jeromecoutant
6df23ee841
TARGET_STM32F3 astyle
2018-06-27 14:32:10 +02:00
jeromecoutant
f9bd4768a5
TARGET_STM32F2 astyle
2018-06-27 14:31:31 +02:00
jeromecoutant
c8313901fb
TARGET_STM32F1 astyle
2018-06-27 14:31:04 +02:00
jeromecoutant
6066e68ec6
TARGET_STM32F0 astyle
2018-06-27 14:23:31 +02:00
jeromecoutant
433ba46132
TARGET_STM astyle
2018-06-27 14:21:07 +02:00
Kari Haapalehto
34abadc0f6
Cleaning MTB_USI_WM_BN_BM_22, MTB_ADV_WISE_1530 and MTB_MXCHIP_EMW3166 targets
...
These wiced targets are not supported at mbed-os 2 release, so removing
"2" from release_versions.
LWIP feature flag removed, since it isn't needed anymore.
EMAC removed from device_has_add, since it isn't needed with these targets.
"network-default-interface-type": "WIFI" has been added.
2018-06-26 14:31:26 +03:00
Boting Ren
6f9c76c949
fix LED_RED mapping on NUCLEO_F429ZI
2018-06-26 16:22:28 +09:00
ccli8
310a1fe318
[Nuvoton] Synchronize lp_ticker code to us_ticker
...
This is to make us_ticker/lp_ticker code consistent.
2018-06-26 13:47:30 +08:00
ccli8
8e11ddf3b6
[Nuvoton] Fix trap in lp_ticker ISR with non-blocking "clear interrupt flag"
2018-06-26 13:47:29 +08:00
ccli8
fe627cb722
[Nuvoton] Synchronize lp_ticker code to us_ticker
...
This is to make us_ticker/lp_ticker code consistent.
2018-06-26 13:47:27 +08:00
ccli8
86e194d075
[Nuvoton] Reduce blocking code in lp_ticker
...
1. Introduce S/W interrupt enable/disable to reduce calls to TIMER_EnableInt/TIMER_DisableInt.
2. Allow dummy interrupt because clear interrupt flag is not synchronized.
3. Enable LPTICKER_DELAY_TICKS to make lp_ticker_set_interrupt non-blocking.
2018-06-26 13:47:26 +08:00
ccli8
7caec46512
[NANO130] Adjust static/dynamic memory allocation for IAR toolchain to pass Greentea test
2018-06-26 13:47:23 +08:00
ccli8
12792fde27
[NANO130] Fix CLK_Idle incorrectly enters into deep sleep mode
...
This can happen with CLK_PowerDown() called first and then CLK_Idle() called.
2018-06-26 13:47:22 +08:00
ccli8
3f861425da
[Nuvoton] Meet new lp_ticker HAL spec (Mbed OS 5.9)
...
1. Add LPTICKER in device_has option of targets.json file.
2. Disable ticker interrupt in lp_ticker_init
3. Add lp_ticker_free
4. Enable interrupt in lp_ticker_set_interrupt
2018-06-26 13:47:17 +08:00
ccli8
ebd93ba753
[Nuvoton] Meet new us_ticker HAL spec (Mbed OS 5.9)
...
1. Add USTICKER in device_has option of targets.json file.
2. Disable ticker interrupt in us_ticker_init
3. Add us_ticker_free
4. Enable interrupt in us_ticker_set_interrupt
2018-06-26 13:45:33 +08:00
Marcus Chang
6346ba87c0
Improve serial performance for NRF52 series
...
Time sensitive user callbacks are called through lowest priority
SWI handlers instead of the highest priority UART handler.
2018-06-25 17:15:40 -07:00
Marcus Chang
ddc709acec
Make serial_putc non-blocking for the NRF52 series
...
Previous implementation would block until character had been
completely sent, which is not what the API specifies.
2018-06-25 13:19:15 -07:00
Marcus Chang
a42f1d7a81
Remove whitespace from NRF52 serial_api.c
2018-06-25 13:16:11 -07:00
Cruz Monrreal
f3424da060
Merge pull request #7287 from SeppoTakalo/remove_feature_lwip
...
Remove FEATURE_LWIP
2018-06-25 11:23:15 -05:00
Mika Leppänen
50a130b61d
On STM32F439xI IAR linker file decreased stack size and increased heap
...
Decreased stack size from 24kB to 1kB (stack is used on boot-up/interrupt
handler). Increased heap size from 65kB to 89kB.
Change is related to issue https://github.com/ARMmbed/mbed-os/issues/7137
where UBLOX_EVK_ODIN_W2 runs out of heap on WLAN.
2018-06-25 10:19:16 +03:00
TomoYamanaka
36ad12c403
Modify RAM size definition of ARMCC for GR-LYCHEE
...
I modified RAM size of ARMCC compiler for GR-LYCHEE.
In case of GR-LYCHEE, RAM size is 3M Byte(including Non-Cache area), but there was a typo at MACRO definition.
2018-06-25 15:44:01 +09:00
Cruz Monrreal
8e170ccbd1
Merge pull request #6925 from TomoYamanaka/feature-flashiap_bootloader
...
Support Flash iAP and Bootloader for GR-PEACH and GR-LYCHEE
2018-06-22 14:23:57 -05:00
Cruz Monrreal
d160cc6cd0
Merge pull request #7284 from KariHaapalehto/wise1530_usi22_support
...
Add binary drivers for MTB_USI_WM_BN_BM_22 and MTB_ADV_WISE_1530
2018-06-22 10:16:16 -05:00
Cruz Monrreal
24daf18044
Merge pull request #7105 from codeauroraforum/mxrt_add_ivt
...
MIMXRT1050: Update to EVK Rev B
2018-06-22 10:15:33 -05:00
Cruz Monrreal
446de6947a
Merge pull request #7145 from drahnr/master
...
NRF52: add a separate .nvictable section and allow .noinit to be used…
2018-06-21 23:32:22 -05:00
TomoYamanaka
94c13c5362
Support Bootloader for GR-PEACH and GR-LYCHEE
...
The mainly changes is below:
- Update scatter file, linker file for bootloader support
- Update the file for RZ/A1 serial flash boot loader
- Add "device name" and "bootloader_supported" in targets.json
2018-06-22 10:40:45 +09:00
TomoYamanaka
18a8eac72b
Support Flash iAP for GR-PEACH and GR-LYCHEE
...
The mainly changes is below:
- Add flash_api.c
- Add the definition of SPI multi I/O Bus controller that is used for flash access
- Add "FLASH" as device feature
- Add the macro regarding information of the incorporated Flash
- Add the processing to expand code to RAM
2018-06-22 10:40:45 +09:00
Cruz Monrreal
e8ec3614b0
Merge pull request #7291 from aqib-ublox/master
...
adding USTICKER label for C027
2018-06-21 18:23:07 -05:00
Mahesh Mahadevan
632892d355
MIMXRT1050: Update to EVK Rev B
...
1. Add the IVT header to the binary as this is required for boot up
This was earlier added by the DAPLink firmware. As it is no longer
handled in DAPLink, the header needs to be added inside mbed.
2. Update drivers
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-06-21 13:34:12 -05:00
Cruz Monrreal
0b8f46763a
Merge pull request #7220 from melvinvdb/fix_nrf5x_interrupt_pull_mode
...
Fix mbed::InterruptIn.mode() in NRF5x targets
2018-06-21 10:31:48 -05:00
aqib nasim
8efe3b5bcd
adding USTICKER label for C027
2018-06-21 17:00:26 +05:00
Bernhard Schuster
124e15f196
NRF52: attempt to complete 86ce955d96 for ARMCC and IAR
2018-06-21 13:24:49 +02:00
Kari Haapalehto
699811be72
Add binary drivers for MTB_USI_WM_BN_BM_22 and MTB_ADV_WISE_1530
2018-06-21 12:15:53 +03:00
Seppo Takalo
e4d1a9a85a
Remove FEATURE_LWIP. The LwIP stack is enabled on all builds now
...
Leave the FEATURE_LWIP enabled in build scripts so that it does
not break any builds.
Removed 'feature_add: ["LWIP"]' on all targets.
2018-06-21 11:00:00 +03:00
Marcus Chang
6cec180d0b
Fix SPI initialization for NRF52 series
...
New changes to Mbed error reporting in 5.9 exposed bug in SPI
driver where an instance was uninitialized twice which triggered
an ASSERT.
This fix keeps track of which instance has been initialized and
only calls uninit when it is safe.
2018-06-20 15:09:14 -07:00
Cruz Monrreal
84d6b79dec
Merge pull request #7172 from mprse/NRF5x_updates
...
Unify RTC, lp ticker, and us ticker for NRF51 and NRF52 series
2018-06-20 16:08:05 -05:00
Cruz Monrreal
c4113ae2f5
Merge pull request #7175 from jamesbeyond/fm_mbed_hal
...
Enable new HAL us_ticker API on fast model MPS2 platform
2018-06-20 12:58:18 -05:00
Cruz Monrreal
badb79ee4b
Merge pull request #7272 from KariHaapalehto/emw3166_driver_support
...
Add binary drivers for MTB_MXCHIP_EMW3166
2018-06-20 12:56:03 -05:00
Cruz Monrreal
5420c46486
Merge pull request #7271 from innovavn/lpc43xx_serial
...
Fix lpc43xx serial pin map compiling error
2018-06-20 09:04:05 -05:00
Cruz Monrreal
093b4f05a2
Merge pull request #7241 from LMESTM/Fix_DeepsleepStackUsage
...
STM32: Reduce HAL_deepsleep stack usage
2018-06-20 08:38:56 -05:00
Cruz Monrreal
cc1e4f0ff8
Merge pull request #7205 from bcostm/fix_hash_data_alignment
...
STM32: Fix data alignment issue in HASH function for F2, F7, L4
2018-06-20 07:55:57 -05:00
Kari Haapalehto
ea2f53b03f
Add binary drivers for MTB_MXCHIP_EMW3166
2018-06-20 12:42:08 +03:00
canhkha
c64971c100
Fix lpc43xx serial pin map compiling error
2018-06-20 13:59:48 +07:00
Cruz Monrreal
e8005f6d72
Merge pull request #7206 from mikaleppanen/k64f_async_powerup
...
K64f non-blocking powerup
2018-06-19 21:49:37 -05:00
Cruz Monrreal
567689c725
Merge pull request #7259 from SeppoTakalo/default_wifi
...
Provide default WiFi interfaces for Ublox and Realtek
2018-06-19 21:46:45 -05:00
Laurent MEUNIER
81adafb5a7
STM32: Reduce HAL_deepsleep stack usage
...
There are cases where a call hal_deepsleep would overflow the idle task
stack, especially in developper or debug profile.
In order to avoid this case, we split ForceClockOutofDeepSleep
into two separate functions the two structure RCC_ClkInitStruct and
RCC_OscInitStruct are not allocated at the same time.
2018-06-19 17:32:00 +02:00
Cruz Monrreal
31df3d2865
Merge pull request #7242 from davidsaada/david_uniform_text_region
...
Rename text region in ARM linker file for a few NXP CPUs
2018-06-19 09:45:23 -05:00
Seppo Takalo
b4726cbca5
Provide default WiFi interface for Ublox EVK ODIN W2
2018-06-19 16:40:55 +03:00
Seppo Takalo
e2d3769211
Provide default WiFI interface for REALTEK_RTL8195AM
2018-06-19 16:40:54 +03:00
Martin Kojtal
c964f2ee66
Merge pull request #7226 from juhoeskeli/wise_1570_app_start
...
Make MTB_ADV_WISE_1570 respect MBED_APP_START & enable bootloader
2018-06-19 14:12:07 +02:00
Martin Kojtal
97c9925e8a
Merge pull request #7249 from maximmbed/fix-file-name-warning
...
Maxim: Rename files to fix warning
2018-06-19 14:11:21 +02:00
Melvin van den berg
4986daaa7d
- Fixed coding style
...
- Set default pull mode to PullNone in gpio_irq_init
2018-06-19 13:11:31 +02:00
Przemyslaw Stekiel
02d7d25850
us_ticker_set_interrupt: fix bit-shift operation
2018-06-19 08:55:35 +02:00
Przemyslaw Stekiel
80fabcb125
Use lp_ticker.c for NRF51 and NRF52 boards
2018-06-19 08:47:06 +02:00
Przemyslaw Stekiel
4a8de084b9
Use common_rtc.h for NRF51 and NRF52 boards
2018-06-19 08:47:05 +02:00
Przemyslaw Stekiel
b073720d62
NRF5x: Increase lp us ticker interrupt priority
...
Set the second highest user level, leaving the highest for UART (we are having constant overflows) and two levels below for everything else.
This should increase the timer accuracy.
2018-06-19 08:47:05 +02:00
Przemyslaw Stekiel
7e222f2994
NRF5x: Add bug fix for the first timer read.
...
It has been noticed that first read value can not be trusted.
2018-06-19 08:47:04 +02:00
Przemyslaw Stekiel
1583cbc78e
Use common us_ticker.c for NRF51 and NRF52 boards
2018-06-19 08:47:04 +02:00
Przemyslaw Stekiel
cca4090bf6
NRF51, NRF52: Implement us_ticker_free() function.
2018-06-19 08:46:44 +02:00
Cruz Monrreal
f3e74974da
Merge pull request #7225 from bcostm/fix_hal_tick_comment
...
STM32: Add comments for HAL_InitTick function
2018-06-18 17:21:35 -05:00
Cruz Monrreal
c3bdfad392
Merge pull request #7237 from li-ho/ev-cog-cache
...
Enable COG boards instruction cache
2018-06-18 17:18:51 -05:00
Keyur Hariya
762cafc2e1
Rename files to fix warning
...
"aes.c" file name conflict in Maxim platform and mbedtls.
2018-06-18 16:46:18 -05:00
Cruz Monrreal
f2b72b9914
Merge pull request #7201 from codeauroraforum/Fix_ADC_LPC54628
...
LPC54628: Update the ADC clock divider based on the input clock source
2018-06-18 10:08:38 -05:00
Cruz Monrreal
938b924ceb
Merge pull request #7073 from maciejbocianski/sleep_enable_nrf52
...
NRF52_DK: SLEEP enable
2018-06-18 10:07:29 -05:00
David Saada
714d025f6c
Rename text region in ARM linker file for a few NXP CPUs
2018-06-18 17:32:01 +03:00
Edmund Hsu
bc6b145c1b
Enable COG boards flash algo
2018-06-18 16:31:54 +10:00
Edmund Hsu
6feef97409
Enable COG boards instruction cache
2018-06-18 16:31:15 +10:00
Qinghao Shi
43242589de
add comments about TIMER modes and set TIMER2 off by default
2018-06-15 16:26:00 +01:00
Anna Bridge
245a9aab4b
Merge pull request #7128 from davidsaada/david_lpc_flash_api_fix
...
Fix flash_program_page API in LPC boards.
2018-06-15 11:15:23 +01:00
Juho Eskeli
699601535e
Make MTB_ADV_WISE_1570 respect MBED_APP_START & enable bootloader
2018-06-15 13:05:00 +03:00
bcostm
09b8b53b27
Remove text related to channel2
2018-06-15 11:27:52 +02:00
bcostm
1cef655687
Add comments for HAL_InitTick function
2018-06-15 11:19:52 +02:00
Mika Leppänen
b7627e823b
K64F, K66F: Update the ENET PHY driver
...
PHY init and autonegotation is split into own functions.
2018-06-15 10:41:31 +03:00
Cruz Monrreal
276588f9fa
Merge pull request #7098 from SeeedJP/feature-cellular-mux
...
[Wio 3G] Adding platform
2018-06-14 10:17:19 -05:00
Melvin van den berg
5fadb26f14
Fixed broken InterruptIn.mode() in NRF5x target which didn't do anything: interruptIn always remained with pullup resistor enabled.
2018-06-14 16:54:03 +02:00
Cruz Monrreal
0a528ff558
Merge pull request #6831 from mprse/hal_crc_test
...
Add HAL CRC test and header file
2018-06-13 08:47:11 -05:00
Cruz Monrreal
1cb298a1e2
Merge pull request #7151 from mrcoulter45/issue6543
...
Fixes for RZ_A1H issue 6543
2018-06-13 08:45:24 -05:00
bcostm
b5a8dc513c
fix hash alignment of F2, F7, L4
2018-06-13 11:51:24 +02:00
Mahesh Mahadevan
8c6098229b
LPC54628: Update the ADC clock divider based on the input clock source
...
1. Problems were seen on the LPC54628 as the ADC clock source was too
high
2. Moved the pin configuration to set Analog mode to the end of the
function
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-06-12 12:57:31 -05:00
David Saada
9e5efbcfd5
Fix flash_program_page API in LPC boards.
...
This API allocates a program buffer of 256 on the stack to ensure alignment.
However, FlashIAP driver already ensures this alignment of the user data.
2018-06-12 15:09:05 +03:00
Qinghao Shi
3ba635d233
change us_ticker_inited to static
2018-06-12 11:31:16 +01:00
Cruz Monrreal
89876311ae
Merge pull request #7176 from KariHaapalehto/data_aligment
...
Fix data aligment problem at STM32F4 hash write
2018-06-11 21:27:50 -05:00
Michael Coulter
3d3e89097d
Fixes for RZ_A1H issue 6543
...
Removed debugging code, fixed errors indicated in the comments.
2018-06-11 13:30:17 -05:00
Cruz Monrreal
b989afaf79
Merge pull request #6178 from andrewleech/nrf51_16k_s130_linker
...
Add target definition: nrf51 16k on MCU_NRF51_UNIFIED platform
2018-06-11 09:05:16 -05:00
Cruz Monrreal
3d61cb59ab
Merge pull request #6948 from jeromecoutant/PR_ETHER
...
STM32 ETH : remove TX RX locking interrupt perforation
2018-06-11 09:02:21 -05:00
Cruz Monrreal
23bc4e0fe2
Merge pull request #7088 from bcostm/dev_F7_flash_dual_bank
...
STM32F76x: Add support of dual bank flash mode
2018-06-11 08:58:55 -05:00
Cruz Monrreal
871489ebb4
Merge pull request #7106 from bcostm/fix_HAL_GetTick
...
STM32: Replace HAL_GetTick
2018-06-11 08:53:06 -05:00
Cruz Monrreal
cbee41c6f7
Merge pull request #7150 from pan-/fix-armcc-nrf-sections
...
Nordic: Fix nrf sections on ARMCC
2018-06-11 08:52:10 -05:00
Cruz Monrreal
8c6a664380
Merge pull request #7086 from mikaleppanen/nxp_lpc17xx_emac
...
NXP lpc17xx emac driver
2018-06-11 08:43:43 -05:00
Qinghao Shi
0c8527f5c1
add disable interrupt function in us_ticker_free()
2018-06-11 12:01:49 +01:00
Qinghao Shi
810d534c07
update us_ticker driver and revert CMSDK headers changes
2018-06-11 11:49:02 +01:00
Yoshihiro TSUBOI
16e706ecd4
[Wio 3G] Changed suggested points
...
Changed accessibility cellular features member functions, fixed minor target issues
2018-06-08 20:13:58 +09:00
Qinghao Shi
ad668a74dd
Enable new HAL us_ticker API on fast model MPS2 platform
2018-06-08 11:39:02 +01:00
Cruz Monrreal
bacf6a9dec
Merge pull request #6860 from andrewleech/nordic_ble_config
...
Nordic BLE: Allow configuration of softdevice parameters
2018-06-07 10:10:23 -05:00
Przemyslaw Stekiel
4d56b006d1
common_rtc_set_interrupt: Wrap <ticks_count> before comparisons
...
RTC counter is 24-bit. Upper layer handles counter size and wraps ticks count when interrupt is to be fired before passing it to common_rtc_set_interrupt(), but for consistency and safety reasons we can wrap it again in the NRF driver.
2018-06-07 16:06:08 +02:00
Przemyslaw Stekiel
ccba52b45b
NRF5x: Remove duplicate lp ticker initialization from I2C, flash, trng.
2018-06-07 16:05:56 +02:00
Przemyslaw Stekiel
e5e53e5e48
NRF52_DK: Use 32 bit counter for us ticker (instead 16 bit counter)
2018-06-07 16:00:55 +02:00
Przemyslaw Stekiel
a499341b2d
K64F CRC driver: Fix coding style
2018-06-07 15:12:56 +02:00
Przemyslaw Stekiel
ee6a07e7ab
K64F CRC driver: Fix handling of CRC final XOR value
...
According to the test results final XOR was incorrectly handled by the CRC driver.
This patch fixes this issue.
2018-06-07 15:06:36 +02:00
Przemyslaw Stekiel
da557a58a6
K64F CRC driver: hal_crc_is_supported() - fix condition which validates CRC width
...
It looks like the intention was to return false when CRC width is different than: {16, 32} bits.
2018-06-07 15:06:36 +02:00
Przemyslaw Stekiel
68631fcaa9
STM CRC driver: hal_crc_compute_partial() - validate input paramaters.
2018-06-07 15:06:35 +02:00
Vincent Coubard
16ece66f95
Nordic: Fix nrf sections on ARMCC
...
The nrf section features has different implementations for each compilers supported by mbed-os. The header guard was ruling out compiler other than GCC by checking if __GNUC__ is defined. This check is not applicable on mbed os as the ARM compiler compile sources with gnu compatibility.
This patch makes sure that the right implementation is selected for the right compiler . The previous patch has been reverted as it is not reliable.
2018-06-06 17:18:28 +01:00
bcostm
11d0a8399b
Add license
2018-06-06 14:05:22 +02:00
Bernhard Schuster
86ce955d96
NRF52: add a separate .nvictable section and allow .noinit to be used by the application
2018-06-06 14:04:15 +02:00
jeromecoutant
202fc8af18
STM32 : few targets does not support LPTICKER
2018-06-06 13:33:18 +02:00
Mika Leppänen
4d055abea5
Added EMAC configuration for UBLOX_C027
2018-06-06 14:29:49 +03:00
Mika Leppänen
a5a8b350ce
Ported NXP LPCxx ethernet driver to unified EMAC
2018-06-06 14:29:49 +03:00
bcostm
b087390a1a
Remove HAL_TICK_DELAY (no more used)
2018-06-05 16:53:40 +02:00
bcostm
e09e1147d8
Cleanup
...
- Remove calls to HAL_SuspendTick and HAL_ResumeTick
- Rename stm_common.c in hal_tick_common.c
2018-06-05 14:48:54 +02:00
Kari Haapalehto
0c3047f4cc
Fix data aligment problem at STM32F4 hash write
2018-06-05 15:03:37 +03:00
bcostm
74c29cb0e5
Remove code related to timer channel 2
2018-06-05 11:21:02 +02:00
Cruz Monrreal
20a4412082
Merge pull request #7089 from paul-szczepanek-arm/fix-master
...
BLE fixes (SM whitelist creation, Nordic scatter file fix, missing TLS initialisation)
2018-06-04 10:44:54 -05:00
Cruz Monrreal
abed3dfb1a
Merge pull request #7060 from ithinuel/fix-c027
...
UBLOX_C027: init us_ticker in the target initialization
2018-06-04 10:43:08 -05:00
bcostm
91e826d459
Replace HAL_GetTick
2018-06-04 16:00:56 +02:00
jeromecoutant
b79be416c8
Dual Bank Flash support update
2018-06-04 13:37:59 +02:00
bcostm
cc14540140
Add support of Flash dual bank mode on DISCO_F769NI
2018-06-04 13:37:59 +02:00
bcostm
b647ecf80c
Add support of Flash dual bank mode on NUCLEO_767ZI
2018-06-04 13:37:59 +02:00
Anna Bridge
2d0e5f04b1
Merge pull request #6022 from andrewleech/nrf_asserts_error
...
nrf5x: Enable asserts -> mbed_error
2018-06-04 12:24:58 +01:00
ytsuboi
e5b8591818
[Wio 3G] Adding platform
2018-06-04 15:55:43 +09:00
Cruz Monrreal
cabcdcf133
Merge pull request #7062 from jeromecoutant/PR_F413
...
DISCO_F413ZH : map SPI3 to WIFI module
2018-06-02 20:53:18 -05:00
Cruz Monrreal
07fb7c1adc
Merge pull request #6987 from jeromecoutant/PR_ADC
...
STM32 ADC update
2018-06-02 19:52:51 -05:00
Vincent Coubard
dfcdbbfb14
Nordic FIX: place observers sequentially in flash.
2018-06-01 16:59:09 +01:00
Anna Bridge
8c26e463ae
Merge pull request #7056 from M-ichae-l/fix-realtek_rtl8195am-IPv6-build-fails-functional-update
...
fix realtek_rtl8195am IPv6 build fails update
2018-06-01 12:20:21 +01:00
Anna Bridge
9986abe499
Merge pull request #6803 from chuanga/wise-1510-uart-config
...
Wise 1510 uart config
2018-06-01 11:52:34 +01:00
Andrew Leech
bf313aa1db
Move mbed_lib.json from targets folder to feature_ble folder
...
The functionality added all affects BLE features in use so this location is a better fit.
2018-06-01 13:37:16 +10:00
Andrew Leech
c1c425af08
Expose softdevice configurations via new nordic-ble library definition file
2018-06-01 13:37:15 +10:00
Cruz Monrreal
0abf0cfa5b
Merge pull request #7039 from shuoo/feature-cm3ds-misc
...
FPGAIO: Add MISC IO initialization support
2018-05-31 10:56:43 -05:00
Cruz Monrreal
dbc42f696a
Merge pull request #7031 from OpenNuvoton/nuvoton_5.9_rtc
...
Nuvoton: Adhere to reworked RTC spec to release with Mbed OS 5.9
2018-05-31 10:12:50 -05:00
Maciej Bocianski
f6d3058899
NRF52_DK: SLEEP enable
2018-05-31 14:32:02 +02:00
jeromecoutant
2d0890b989
DISCO_F413ZH : pin value error
2018-05-31 13:55:55 +02:00
jeromecoutant
422e124854
DISCO_F413ZH : map SPI3 to WIFI module
2018-05-30 17:56:46 +02:00
Wilfried Chauveau
1c7b91aa8c
us_ticker is not yet initialised at this stage
2018-05-30 15:01:18 +01:00
zzw
4fc8eb1591
fix realtek_rtl8195am IPv6 build fails update
...
fix for #6909
-remove the "dhcps.h" and "dhcps.c" files
-edit "wifi_conf.c" "wifi_conf.h" and "rtw_emac.cpp" to fix compile error
rebase for #6974
2018-05-30 18:53:08 +08:00
Cruz Monrreal
231f4cf9c1
Merge pull request #7034 from TomoYamanaka/master
...
Fix redeclaration of type name "bool_t" for Renesas
2018-05-29 10:44:29 -05:00
Cruz Monrreal
cb3f8a5ad3
Merge pull request #7022 from marcuschangarm/fix-gpio
...
Fix array overflow in gpio configuration code for NRF5x
2018-05-29 10:43:23 -05:00
Cruz Monrreal
42b3ef7bd5
Merge pull request #6991 from amq/efm32-universal-rtx
...
EFM32: make mbed_rtx.h depend of families instead of targets
2018-05-29 10:39:27 -05:00
Cruz Monrreal
88d863aaeb
Merge pull request #6984 from stevew817/'efm32_irq_bugfix'
...
EFM32 IRQ handling fix
2018-05-29 10:38:55 -05:00
Cruz Monrreal
1a0c2d0600
Merge pull request #6970 from stevew817/efm32_flash_bugfix
...
Fixes to EFM32 port
2018-05-29 10:38:30 -05:00
Cruz Monrreal
fe43377939
Merge pull request #6947 from evva-sfw/hotfix/EFM32PG12_STK3402_Expansion_Header
...
EFM32PG12_STK3402 - Correct wrong Expansion-Header pin namings
2018-05-29 10:36:31 -05:00
ccli8
6065e3a943
[Nuvoton] Fix RTC cannot cross reset cycle
2018-05-29 17:22:02 +08:00
ccli8
ee7efb556d
[Nuvoton] Add back RTC to device_has target configuration
2018-05-29 10:37:03 +08:00
ccli8
2cefe7d8d5
[Nuvoton] Power down RTC access from CPU domain in rtc_free
...
After rtc_free, RTC gets inaccessible from CPU domain but keeps counting.
2018-05-29 10:33:01 +08:00
Karl Zhang
5be69f3143
FPGAIO: Add MISC IO initialization support
2018-05-29 10:12:04 +08:00
TomoYamanaka
f34857792a
Fix redeclaration of type name "bool_t"
...
I fixed redeclaration of type name "bool_t" for target Renesas because this typedef has been defined in rtx_core_ca.h by #6273 .
2018-05-28 18:55:13 +09:00
Bartek Szatkowski
a1ff22d439
Disable FLASH algo for AD boards
2018-05-27 23:31:20 -05:00
Bartek Szatkowski
dc6ad34994
Disable FLASH for AD boards as they fail the tests intermittently
2018-05-27 23:31:20 -05:00
Bartek Szatkowski
1224b3894d
Disable RTC on MAX32630FTHR due to failing tests
2018-05-27 23:31:20 -05:00
Bartek Szatkowski
195ef38618
Fix missmatch between targets.son
2018-05-25 13:59:04 -05:00
Jesse Marroquin
11d418b749
mbed-os v5.9 RTC implementation
2018-05-25 13:06:56 -05:00
Bartek Szatkowski
7624a6625c
Sleep was not ported to MAX32630FTHR
2018-05-25 13:06:56 -05:00
Bartek Szatkowski
7dbd025ba1
NRF52 is not compatible with new RTC HAL spec
2018-05-25 13:06:56 -05:00
Bartek Szatkowski
a305d849a8
Rename LOWPOWERTIMER to LPTICKER
2018-05-25 13:06:56 -05:00
Martin Kojtal
e1fc81dc41
max32600: fix lp ticker functions - do not inline
...
Wrong linkage specified, causing build to fail.
2018-05-25 13:04:23 -05:00
Martin Kojtal
73de4e6e48
efm32: remove unused undefined function from rtc
2018-05-25 13:04:23 -05:00
Martin Kojtal
6781ee88cd
maxim: fix rtc if lp ticker not defined
...
lp ticker handler defined only if lp ticker is defined. In case not,
use only overflow, rtc0 not used.
2018-05-25 13:04:23 -05:00
Bartek Szatkowski
9b53c1e9e1
Fix target definition for Odin boards
2018-05-25 13:04:23 -05:00
Edmund Hsu
e2fe49d403
Preserve RTC counter value while re-initialization
2018-05-25 13:04:23 -05:00
Edmund Hsu
8d670001f2
Remove trailing spaces of adi_rtc.c
2018-05-25 13:04:23 -05:00
Edmund Hsu
dbebc71d95
ADI: Re-enable DEVICE_RTC for EV_COG_AD3029LZ and EV_COG_AD4050LZ
2018-05-25 13:04:23 -05:00
Mahesh Mahadevan
f7c6e555f3
MCUXpresso: Enable RTC on LPC54114 and LPC546XX
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-25 13:03:46 -05:00
Mahesh Mahadevan
a17cf07a35
MCUXpresso: Enable RTC support
...
Same MCUXpresso SDK driver used for Kinetis devices
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-25 13:03:16 -05:00
Bartek Szatkowski
2826e4e416
Disable platforms not supporting new RTC
2018-05-25 13:01:19 -05:00
Steven Cooreman
81e6c96014
Code style fixes requested by @0xc0170
...
Tests still passing
2018-05-25 12:59:19 -05:00
Steven Cooreman
4b3bde1082
Re-implement RTC for Silicon Labs targets
...
mbed RTC specifications now dictate that the RTC needs to retain and keep on counting through reset. On Silicon Labs parts, this means the RTC API can not be backed by the Silicon Labs RTC peripheral, since that doesn't provide retention functionality.
Therefore:
* On EFM32GG, EFM32WG, EFM32LG: mbed RTC API is now backed by BURTC.
* On EFM32PG, EFR32MG, EFM32PG12, EFR32MG12: mbed RTC API is now backed by RTCC.
* On EFM32ZG, EFM32HG: mbed RTC API is sadly no longer supported, since these chips don't have retained memory.
2018-05-25 12:57:30 -05:00
TomoYamanaka
f55becef9a
Implement of RTC feature for Renesas mbed boards
...
I implemented the RTC feature.
The mainly changing is here.
- rtc_init()
Previously, I have initialized the time information register in the function, so the time count was cleaned by every calling rtc_init().
Currently, rtc_init() doesn't stop RTC from counting, and rtc_init() is safe to call repeatedly.
Therefore in order to satisfy specifications,I removed the initialization process of the time information register in the function.
- rtc_free()
Previously, I have initialized the RTC related register same as rtc_init(), so the time count was cleaned by calling rtc_free().
Currently, rtc_free() doesn't stop RTC from counting.
Therefore in order to satisfy specifications,I removed the process and decided not to do anything in the function.
If powerdown the RTC, Supply of the clock to the RTC is stopped, cannot keeping the count.
2018-05-25 12:53:06 -05:00
Przemyslaw Stekiel
1e46895f75
K64F: adapt RTC drivers to the new standards (is_enabled function)
...
Make rtc_isenabled() to return 1 if the RTC is initialized and the time has been set; 0 otherwise.
Disable clock gate on exit from this function if RTC was initialized.
2018-05-25 12:52:40 -05:00
Przemyslaw Stekiel
377db73100
K64F: adapt RTC drivers to the new standards (free function)
...
rtc_free() does not stop the RTC from counting. Only disables clock gate since processor no longer needs to read RTC registers.
2018-05-25 12:52:40 -05:00
Przemyslaw Stekiel
4fc3d07bd0
Enable RTC support for K64F board.
2018-05-25 12:52:39 -05:00
Przemyslaw Stekiel
7f451c6705
Disable RTC support for UBLOX_EVK_ODIN_W2.
...
This board inherits from STM_FAMILY, but drivers for this board are not consistent with the new standards.
This board needs to be disabled for now.
2018-05-25 12:52:02 -05:00
Przemyslaw Stekiel
c93ab168bd
Enable RTC support for FAMILY_STM32.
2018-05-25 12:49:48 -05:00
Russ Butler
6d90c2716d
Turn off RTC until updated
...
Turn off RTC for all devices. When support for a device is added this
should be re-enabled.
2018-05-25 12:49:11 -05:00
Russ Butler
a0a9626420
Keep rtc code if low power timer is used
...
Keep the RTC code if either DEVICE_RTC or DEVICE_LOWPOWERTIMER is
defined on the devices which use the RTC for both the rtc api and the
low power timer api. This allows DEVICE_LOWPOWERTIMER to be enabled while
DEVICE_RTC is turned off.
2018-05-25 12:37:19 -05:00
Przemyslaw Stekiel
3850c80b43
Make common_rtc.c compatible with SDK 14.2 and move it common dir
2018-05-25 12:33:43 -05:00
Przemyslaw Stekiel
f32f866f00
NRF52840_DK: Enable lp us ticker support
2018-05-25 12:33:42 -05:00
Ashok Rao
96ca7c22ed
Adding usticker to MTB_ODIN
2018-05-25 12:33:42 -05:00
Jesse Marroquin
0ddec48efc
mbed-os v5.9 LPTICKER implementation
2018-05-25 12:33:42 -05:00
Jesse Marroquin
b88329acb8
mbed-os v5.9 USTICKER implementation
2018-05-25 12:33:42 -05:00
Przemyslaw Stekiel
11748bf95c
Enable us lp ticker support for entire MCU_NRF52832 family
2018-05-25 12:33:42 -05:00
Przemyslaw Stekiel
1d1b6cd571
NRF52_DK: disable us ticker in deep-sleep mode
...
This functionality is required by new sleep standards.
2018-05-25 12:33:42 -05:00
Przemyslaw Stekiel
b0153574d4
NRF52_DK: Enable lp ticker and us ticker support
2018-05-25 12:33:42 -05:00
Przemyslaw Stekiel
9ef0083f92
NRF52_DK: use new ticker driver designed for NRF51_DK
2018-05-25 12:33:41 -05:00
Mahesh Mahadevan
fb622a2081
MIMXRT1050_EVK: Update lpticker implementation
...
Use only the GPT module and avoid using RTC.
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-25 12:33:41 -05:00
Mahesh Mahadevan
3b7b0f1307
KW41Z, KL43Z, KL27Z: Enable LPTICKER
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-25 12:33:41 -05:00
Mahesh Mahadevan
d46af14bb6
KL27Z: Update usticker to use TPM instead of LPTMR for ticker
...
This will free up the LPTMR to be used as lpticker
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-25 12:33:41 -05:00
Mahesh Mahadevan
a21d21e700
KL43Z: Update usticker to use TPM instead of LPTMR for ticker
...
This will free up the LPTMR to be used as lpticker
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-25 12:33:41 -05:00
Mahesh Mahadevan
62254c2bae
KW41Z: Update usticker to use TPM instead of LPTMR for ticker
...
This will free up the LPTMR to be used as lpticker
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-25 12:33:41 -05:00
Edmund Hsu
e514c2c70d
Fix us_ticker.c to support "USTICKER"
...
- Disable microsecond ticker interrupt on reinitialization
- Skip us_ticker_set_interrupt() if timestamp is already past
- Eliminate tmr2Config since tmrConfig is adequate for all timer config
2018-05-25 12:32:38 -05:00
Mahesh Mahadevan
774de11d1f
MCUXpresso: Enable usticker on MIMXRT1050_EVK
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-25 12:32:38 -05:00
Mahesh Mahadevan
659be61e4b
MCUXpresso: Enable usticker for LPC546XX and LPC54114
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-25 12:32:38 -05:00
Mahesh Mahadevan
4eb8841dc1
MCUXpresso: Update the usticker implementation
...
Enabled usticker for K22F, K24F, K66F, K82F, KL82Z, KW24D
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-25 12:32:38 -05:00
Mahesh Mahadevan
0d0321a7f0
MCUXpresso: Update Low Power Ticker
...
1. Enable LPTICKER for K22, K24, K64, K66, K82, KL82F, KW24D
2. Change the implementation to only use the LPTMR which reduces
the amount of interrupts generated which is required for tickless
operation
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-25 12:32:38 -05:00
Mahesh Mahadevan
132dc87f3e
KL05, KL25, KL26, KL46: Enable usticker
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-25 12:30:53 -05:00
Mahesh Mahadevan
870600400d
LPC1768: Enable usticker
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-25 12:30:53 -05:00
Przemyslaw Stekiel
7d969326d6
Enable support for NRF51 boards.
...
Make it consistent with master.
2018-05-25 12:30:52 -05:00
Przemyslaw Stekiel
fac7d744d5
Disable us ticker in deep-sleep mode.
2018-05-25 12:30:52 -05:00
Przemyslaw Stekiel
ffd09f8a70
Enable support for NRF51 boards.
2018-05-25 12:30:52 -05:00
Przemyslaw Stekiel
77f738baac
Move common_rtc.c and us_ticker.h files to the valid directory.
...
I decided to move these files to the targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF51 since us_ticker.h is for sure specific for NRF51_DK and common_rtc.c might be valid also for NRF52, but this needs to be checked while porting NRF52_DK board.
2018-05-25 12:29:55 -05:00
Bartek Szatkowski
1e71515471
Disable MAX targets failig to build
2018-05-25 12:29:55 -05:00
Bartek Szatkowski
e6bb77085c
Disable failig Nordic targets
2018-05-25 12:29:55 -05:00
Przemyslaw Stekiel
bdfbad8422
Rename DEVICE_LOWPOWERTIMER to DEVICE_LPTICKER.
2018-05-25 12:29:55 -05:00
Przemyslaw Stekiel
af2863a9e5
Update lp ticker to be consistent with the new standards.
...
Provide the following modifications for lp ticker driver:
- According to NRF51_DK reference manual rtc interrupt cannot be controlled by rtc event. In the previous implementation interrupts were enabled permanently and specific interrupt was enabled/disabled by enabling/disabling the specific event. If event is enabled, then event signal is provided to Programmable Peripheral Interconnect (PPI). If interrupt is enabled, then interrupt signal is provided to Nested Vector Interrupt Controller (NVIC). Disable all events permanently. Enable lp ticker overflow interrupt permanently(needed for RTC), disable lp ticker capture/compare interrupt on init (lp_ticker_init) , enable lp ticker interrupt when lp ticker interrupt is set (lp_ticker_set_interrupt), disable lp ticker interrupt on disable request(lp_ticker_disable_interrupt).
- Provide lp ticker data for higher level (freq: 32kHz / len: 24 bits),
- Add the following features to init routine: disable lp ticker interrupt.
- Make ticker driver to operate on ticks instead of us.
- Simplify lp ticker read and set interrupt routines (upper layers handle conversion to us and interrupt scheduling).
2018-05-25 12:29:54 -05:00
Przemyslaw Stekiel
007a707527
Enable us/lp ticker support for NRF51_DK board
2018-05-25 12:29:54 -05:00
Przemyslaw Stekiel
533ad59669
NRF5 - make us ticker to be driven by high speed 1MHz timer
...
According to new ticker standards the following requirements for us ticker are not met on RRF5 boards:
- has a frequency between 250KHz and 8MHz (currently is driven by 32kHz clock)
- ticker increments by 1 each tick (currently is scaled to 1 MHz by incrementing counter by ~31)
Since BLE softdevice uses TIMER0 the proposition is to use high speed TIMER1 for us ticker configured as follows:
- TIMER counter width: 16 bits (max)
- TIMER frequency: 1MHz
This solution also uses Timer's capture/compare register 0 to specify interrupt time and Timer's capture/compare register 1 to read current timer value.
2018-05-25 12:29:54 -05:00
jeromecoutant
e3deaecc27
STM32 LPTICKER update for targets supporting RTC
2018-05-25 12:29:54 -05:00
jeromecoutant
39a9801675
STM32 LPTICKER : clean include file
2018-05-25 12:29:54 -05:00
jeromecoutant
c31a7c2277
STM32 LPTICKER : enable all STM32 targets supporting the feature
...
(All STM32 except F1 and F2 families)
2018-05-25 12:29:54 -05:00
jeromecoutant
1c4174d3eb
STM32 RTC Init minor update
2018-05-25 12:26:05 -05:00
jeromecoutant
12b3df7773
#6536 rebase correction
2018-05-25 12:26:05 -05:00
jeromecoutant
2b8d6cbcc5
STM32 LPTICKER : read counter
2018-05-25 12:26:05 -05:00
jeromecoutant
8179d96d4d
LPTICKER targets json update for STM32 supporting LPTIMER
...
STM32L0, STM32L4, STM32F7 and few STM32F4
2018-05-25 12:26:05 -05:00
jeromecoutant
5701fd5ab6
STM32 LPTICKER update for targets supporting LPTIMER
2018-05-25 12:22:35 -05:00
Bartek Szatkowski
1e13d8765a
Rename LOWPOWERTIMER to LPTICKER after merge
2018-05-25 12:22:35 -05:00
TomoYamanaka
b528fbdfb3
Implementation of USTICKER feature for Renesas mbed boards
...
I implemented USTICKER feature.
The mainly changing is here.
- I added a macro to mbed_drv_cfg.h for commonalizing code for GR-PEACH and GR-LYCHEE with different clock frequencies, and referenced it's macro at us_ticker.c.
- ticker_init()
Currently, ticker_init() keep counting, disables the ticker interrupt, and is safe to call repeatedly.
Therefore, in order to satisfy specifications, I removed GIC_EnableIRQ at end of function and added GIC_DisableIRQ at begin of function.
When an interrupt is required, it will be set with ticker_set_interrupt().
If executing the following, the counter has been initialized. So it will not call after executing the first time.
OSTM1TT = 0x01; /* Stop the counter and clears the OSTM1TE bit. */
OSTM1TS = 0x1; /* Start the counter and sets the OSTM0TE bit. */
- ticker_free()
this function stops the counting and powerdown the us_ticker.
To satisfy the mbed specificationm, I implemented free() function.
- ticker_read()
Currently, Mbed spec's frequeny is between 250KHz and 8MHz, but the frequency that is used at my ticker is 33MHz.
Therefore, in order to satisfy specifications, I changed the process to return the timer counter value divided by 32(33MHz / 32).
Since the calcurate function by using 64 bit is no longer necessay, I removed it.
- ticker_set_interrupt()
Same as the above read(),
In order to satisfy specifications, I changed the process to set the value multiplied by 32.
- ticker_fire_interrupt()
In order to satisfy specifications, I implemented fire_interrupt() function.
Also I added GIC_EnableIRQ for allowing the interrupt at end of function.
- ticker_get_info()
To satisfy the mbed specificationm, I implemented ticker_get_info() function. The value of freq includes rounding off.
2018-05-25 12:22:06 -05:00
Laurent MEUNIER
beda4904d3
Make us_ticker common between 16 and 32 bits counters
2018-05-25 12:20:10 -05:00
Laurent MEUNIER
c3d5daf80a
Update STM32 16 bits us_tickers in line with new mbed HAL
...
The new HAL allows to share the timer bit width and frequency,
the actual handling of mapping 16 bits counter up to 32 bits or
64 bits is now managed by mbed common layer.
This makes this ticker layer very similar to 32bits one and much
easier than before.
2018-05-25 12:20:10 -05:00
Steven Cooreman
1448f81620
Re-implement us_ticker and lp_ticker for Silicon Labs targets
...
Re-implemented both us_ticker and lp_ticker to match the new API and specifications.
Details:
* On EFM32GG, EFM32WG, EFM32LG, EFM32HG, EFM32ZG: Use the RTC peripheral to back lp_ticker, and a TIMER to back us_ticker.
* On EFM32PG, EFR32MG, EFM32PG12, EFR32MG12: Use the RTCC peripheral to back lp_ticker (dual-purpose, also used to back RTC), and a TIMER to back us_ticker.
2018-05-25 12:20:10 -05:00
Steven Cooreman
5590f2b495
Re-implement RTC for Silicon Labs targets
...
mbed RTC specifications now dictate that the RTC needs to retain and keep on counting through reset. On Silicon Labs parts, this means the RTC API can not be backed by the Silicon Labs RTC peripheral, since that doesn't provide retention functionality.
Therefore:
* On EFM32GG, EFM32WG, EFM32LG: mbed RTC API is now backed by BURTC.
* On EFM32PG, EFR32MG, EFM32PG12, EFR32MG12: mbed RTC API is now backed by RTCC.
* On EFM32ZG, EFM32HG: mbed RTC API is sadly no longer supported, since these chips don't have retained memory.
# Conflicts:
# targets/TARGET_Silicon_Labs/TARGET_EFM32/lp_ticker.c
# targets/TARGET_Silicon_Labs/TARGET_EFM32/rtc_api.c
# targets/targets.json
2018-05-25 12:20:10 -05:00
Bartek Szatkowski
88ba94221a
Remove nrf51_dk from supported platform
2018-05-25 12:20:09 -05:00
Bartek Szatkowski
d2a5e30a46
Disable platfroms that fail without LPTICKER
2018-05-25 12:20:09 -05:00
Bartek Szatkowski
2d19ac1d60
Make sure LPTICKER symbols are not used for builds without it for Nordic
2018-05-25 12:20:09 -05:00
Bartek Szatkowski
2d11b05756
Disable Maxim boards as LP_TICKER is used in RTC and they don't respect device_has
2018-05-25 12:20:09 -05:00
Bartek Szatkowski
6e9f04bf2f
Rename DEVICE_LOWPOWERTIMER to DEVICE_LPTICKER
...
That's to match DEVICE_USTICKER.
2018-05-25 12:20:09 -05:00
Przemyslaw Stekiel
39852f772c
Adapt K64F lp ticker driver to the new standards.
...
Low power ticker time counter is created based on RTC which is driven by 32KHz clock. Additional low power timer is used to generate interrupts.
We need to adapt driver to operate on ticks instead of us.
Perform the following updates:
- provide lp ticker configuration: 32KHz/32 bit counter.
- lp_ticker_init() routine disables lp ticker interrupts .
- adapt the driver functions to operate on ticks instead us.
- adapt comments.
- add us_ticker_free() routine.
2018-05-25 12:18:55 -05:00
Przemyslaw Stekiel
c4bd9d125b
Adapt K64F us ticker driver to the new standards.
...
- provide ticker configuration: 1MHz/32 bit counter.
- us_ticker_init() routine disables interrupts.
- adapt comments.
2018-05-25 12:18:55 -05:00
Przemyslaw Stekiel
d96430e77d
Enable ticker support for K64F board.
2018-05-25 12:18:55 -05:00
Steven Cartmell
18943a9693
Add lp/us ticker free() function implementation for NRF5
2018-05-25 12:17:49 -05:00
Przemyslaw Stekiel
ebeab7f462
Add DEVICE_RTC symbol check in RTC source files for NCS36510 target.
2018-05-25 12:17:20 -05:00
Przemyslaw Stekiel
d429458ac7
Disable boards which does not fulfil new ticker standards.
2018-05-25 12:17:19 -05:00
Bartek Szatkowski
9f3f49aea9
Remove sleep from rf52 due to failig tests
2018-05-25 12:04:32 -05:00
TomoYamanaka
7a48ee89e3
Implementation of SLEEP feature for Renesas mbed boards
...
I implemented the SLEEP feature for Rnesas mbed boards.
The mainly changing is here.
- hal_sleep()
To satisfy the mbed specificationm, I implemented this function newly by using "sleep" that is one of low power mode that is incorporated in our hardware(RZ_A1).
In the "sleep", peripheral and memory state are maintained, and the peripherals continue to work and can generate interrupts.
- hal_deepsleep()
To satisfy the mbed specificationm, I implemented this function newly by combined using "sleep" and "module standby" that is the low power mode that is incorporated in our hardware(RZ_A1).
The "module standby" is peripheral module's powerdown.
Also in case of our "module standby", it need to read register as dummy when access to each register.
2018-05-25 12:04:32 -05:00
Przemyslaw Stekiel
58afcc2904
Disable SLEEP support for MAX32630FTHR and KW41Z platforms.
...
These platforms are not consistent with the new sleep standards.
2018-05-25 12:04:32 -05:00
Przemyslaw Stekiel
1df54efc61
ARM_CM3DS_MPS2: add protection to lp_ticker.c.
...
Compile this file only when DEVICE_LOWPOWERTIMER is defined.
2018-05-25 12:04:32 -05:00
Przemyslaw Stekiel
3cd3defbba
Disable boards which does not fulfil new sleep standards.
...
These boards will be re-enabled when sleep driver for them is ready.
Note:
This operation is done by removing "SLEEP" feature from target's "device_has" list (in targets.json config file).
For NRF52_DK removing of "SLEEP" feature causes some timing issues which have influence on tests. In order to successfully disable this board we need to disable also related features like "USTICKER", "LOWPOERTIMER" and slightly modify ticker tests, so they will not be executed if usticker support is not available (by default all targets support us ticker).
2018-05-25 12:04:32 -05:00
Martin Kojtal
b7682183b8
Sleep: add time requirements for sleep
...
Sleep - within 10us
Deepsleep - within 10ms
Note about mbed boards with interface, moved to lpc176x, as they are target related,
should be documented in the target documentation.
The tests will come as separate PR, to conform to this updates to sleep API.
2018-05-25 12:03:37 -05:00
Marcus Chang
86f6054ea4
Fix array overflow in gpio configuration code for NRF5x
...
Reintroduce PR #6021
https://github.com/ARMmbed/mbed-os/pull/6021
which was accidentally removed by PR #6711
https://github.com/ARMmbed/mbed-os/pull/6711
2018-05-25 08:25:58 -07:00
Alan Chuang
7f4272d9a7
make uart console port configurable via mbed_app.json
2018-05-25 16:30:57 +08:00
Steven Cartmell
804d050a18
HAL CRC: Add additional STM32 targets
2018-05-24 17:53:35 +01:00
Steven Cartmell
a92ac70e82
HAL CRC: Move STM32 implementation to common folder and add targets
2018-05-24 17:51:50 +01:00
Steven Cartmell
6b5dabe08b
HAL CRC: Use HAL polynomial enum instead of STM32 enum
2018-05-24 17:51:50 +01:00
Steven Cartmell
acbf41e673
HAL CRC: Basic implementation for STM32F0
2018-05-24 17:51:50 +01:00
Steven Cartmell
738d92a79f
HAL CRC: K64F: Set output width based on input width, not the polynomial
2018-05-24 17:51:49 +01:00
Steven Cartmell
1da75e5e85
HAL CRC: Fix code to match coding conventions
2018-05-24 17:51:49 +01:00
Steven Cartmell
f006002dec
Add support for final_xor for K64F Hardware CRC
2018-05-24 17:51:49 +01:00
Steven Cartmell
8e14b5977b
HAL CRC: Add bit width parameter to crc_config_t
2018-05-24 17:51:49 +01:00
Steven Cartmell
e1ca2b32fc
Add CRC configuration options to HAL API
2018-05-24 17:51:49 +01:00
Steven Cartmell
167d3f9a1e
HAL CRC: Return early when calling compute with null or 0 size buffer
2018-05-24 17:51:48 +01:00
Steven Cartmell
df93c0151c
Remove support for 7/8 bit CRC polynomials for K64F
2018-05-24 17:51:48 +01:00
Steven Cartmell
fd8b974d47
Add K64F Hardware CRC reference implementation
...
- Add support for all currently defined polynomials
- Add 'CRC' flag to targets.json for K64F profile
2018-05-24 17:51:48 +01:00
Cruz Monrreal
791620c428
Merge pull request #6932 from paul-szczepanek-arm/security-manager-dev
...
BLE privacy, signing, persistent security database
2018-05-24 10:07:06 -05:00
Cruz Monrreal
2f86c152f0
Merge pull request #6794 from RonEld/cc310_porting
...
Cryptocell 310 support
2018-05-24 10:05:46 -05:00
Kevin Bracey
13dcef63e3
Merge pull request #6847 from ARMmbed/feature-emac
...
Merge feature-emac branch into master
2018-05-24 16:47:04 +03:00
Martin Kojtal
d8cb72a0a2
Merge pull request #6273 from bulislaw/update_cmsis_5.3
...
Update cmsis/rtx to version 5.3
2018-05-24 09:37:40 +02:00
Cruz Monrreal
a404a9379e
Merge pull request #6862 from jamesbeyond/fastmodel_support
...
Fastmodels support: add FVP_MPS2 targets to mbed os
2018-05-23 14:47:23 -05:00
amq
d9fcbc7605
EFM32: make mbed_rtx.h depend of families instead of targets
2018-05-23 15:56:38 +00:00
Asif Rizwan
332c6eabeb
recompiled driver against NetworkInterface changes on latest feature-emac
2018-05-23 12:25:23 +03:00
Asif Rizwan
ce08691dad
WiFi EMAC class name reflected in WiFi drivers binaries
2018-05-23 12:25:22 +03:00
Asif Rizwan
657ac3f643
WIFI_EMAC class renamed to OdinWiFiEMAC, Formatting
...
Revert "in ODIN emac initialization required before connection"
2018-05-23 12:25:21 +03:00
Kevin Bracey
97b9980c8c
LPC546XX: Correct Ethernet MAC address write
...
Patch to LPC546XX SDK code - write the low Ethernet MAC address
register last, as that synchronises the update.
Without this change, the ENET_SetMacAddr call only seems to work prior
to MAC initialisation, causing problems for the new mbed OS EMAC system,
which expects it to be changable later.
Updated emac greentea tests #6851 .
2018-05-23 12:25:21 +03:00
Mahesh Mahadevan
91ac8356ba
LPC546XX: Add ENET support
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-23 12:25:20 +03:00
Asif Rizwan
0b14f1277e
EMAC adaption added, updated ODIN drivers to v2.5.0 RC1
2018-05-23 12:25:18 +03:00
Michael Zhang
162a8c0a00
add-rtl8195am-feature-emac ( #6904 )
...
rtl8195am feature emac implementation.
2018-05-23 12:25:18 +03:00
Kevin Bracey
f3ec0dacd5
Add NetworkInterface::get_default_instance()
...
Provide an initial framework to make it easier to find a default network
interface.
2018-05-23 12:25:17 +03:00
TomoYamanaka
bad530ab0d
Implementation of unified EMAC driver for Renesas mbed boards
...
Implementation of unified EMAC driver for Renesas mbed boards
Based on the driver so far, Renesas implemented the emac driver for GR-PEACH and VK-RZ/A1H.
The mainly changes is below.
- Add the connection part with LWIP according to the unified emac specification.
- Add three new multicast functions(add, remove, set_all).
The Greentea test netsocket and emac test passed.
2018-05-23 12:24:09 +03:00
cyliangtw
89209b6cd5
[M487/NUC472] Support new EMAC feature, built OK
2018-05-23 12:24:08 +03:00
Mahesh Mahadevan
93f8cfed05
K64F: Updated the SYSMPU SDK driver
...
This is required to setup the MPU for ENET bus master accesses
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-23 12:24:07 +03:00
Kevin Bracey
fbd920777b
Add extra labels for Freescale & STM EMAC drivers
...
Just checking "does the chip have an EMAC" doesn't work - there are
targets using those chips which do not have an Ethernet connector and
don't provide the necessary surrounding infrastructure (eg DISCO_F429ZI,
not providing the board emac config call, and HEXIWEAR not providing PHY
info).
Make the targets that actually do want EMAC define their own local
Freescale_EMAC and STM_EMAC labels, and move the drivers into
the corresponding TARGET_ directories, removing the #ifdefs.
2018-05-23 12:24:06 +03:00
Mika Leppänen
ef68eb8b4d
Enabled greentea and mbed-os-example-tls/client/sockets test for STM
2018-05-23 12:24:02 +03:00
Kevin Bracey
6930c6d3cf
Ignore old EMAC Wifi drivers
...
Suppress Odin W2 and Realtek Wi-fi drivers using .mbedignore
2018-05-23 12:23:59 +03:00
Kevin Bracey
958247265b
Tell mbed build to ignore old lwIP+EMAC drivers
2018-05-23 12:23:58 +03:00
paul-szczepanek-arm
80137be991
Merge https://github.com/ARMmbed/mbed-os into security-manager-dev
2018-05-23 09:47:06 +01:00
Andrew Leech
78d31cff5c
Fix the flash length to use all of 256K part.
2018-05-23 09:50:52 +10:00
Steven
c2bc20ef74
Fix to flash API on EFM32
...
* Since mbed does not overwrite itself, make the flashing routines run out of flash by default
* Report a writeable size of 4 bytes (previously erroneously reported a full eraseable page as the minimum write size)
2018-05-22 22:55:49 +02:00
Steven
30db7fd441
Update pinout of TB_SENSE_12 to production revision
...
* Updated pinout of EXP header from pre-production to production
* Move assignment of PF7 to SPI_2 to be compatible with the new SPI flash routing
2018-05-22 22:54:24 +02:00
Steven
b011e2b8c7
EFM32 IRQ handling fix
...
* IRQ handling got updated previously to a non-functional state when both callbacks were registered (it'd fire a fall callback for both rise and fall events). With this update, that faulty behaviour is corrected. Due to delays between the detection of the edge and the handling of the interrupt (and the fact that information about which edge you received on the pin is not stored anywhere), there is no way to be absolutely sure which edge got triggered on the pin. Therefore, we make a best-guess effort by looking at the pin state at the time of IRQ handling, and fire a callback as if that was the end state of the event. This will usually work out fine, except in cases were the signal is toggling faster than the IRQ handler's response time. In that case, a user won't get both callbacks (as expected for a pulse), but only the last event.
* Stripped some dead code.
2018-05-22 22:43:43 +02:00
Cruz Monrreal
3bcc076c0c
Merge pull request #6931 from jeromecoutant/PR_PERIPH
...
STM32 : PeripheralPins.c and PinNames.h files alignment
2018-05-22 14:56:37 -05:00
Martin Kojtal
585504f723
Merge pull request #6959 from marcuschangarm/remove-itm
...
Remove unused ITM implementation from NRF51 series
2018-05-22 14:40:57 +02:00
jeromecoutant
7fd4203b58
STM32L4 ADC internal channels update
2018-05-22 13:18:25 +02:00
jeromecoutant
881a8e31ff
STM32L1 ADC internal channels update
2018-05-22 13:17:52 +02:00
jeromecoutant
4d3a54443d
STM32L0 ADC internal channels update
2018-05-22 13:17:16 +02:00
jeromecoutant
06bca28268
STM32F7 ADC internal channels update
2018-05-22 13:16:37 +02:00
Qinghao Shi
304b584040
remove ethernet driver as it is not compatible
2018-05-22 11:24:50 +01:00
jeromecoutant
e438bd6dc8
STM32F3 ADC internal channels update
2018-05-22 11:42:35 +02:00
jeromecoutant
5f21c3f73e
STM32F2 ADC internal channels update
2018-05-22 11:37:09 +02:00
jeromecoutant
743a812be6
STM32F1 ADC internal channels update
2018-05-22 11:36:09 +02:00
jeromecoutant
d7932c26eb
STM32F0 ADC internal channels update
2018-05-22 11:35:23 +02:00
jeromecoutant
cb579cba1c
STM32F4 ADC internal channels update
2018-05-22 11:32:19 +02:00
Kevin Bracey
0386f73719
Networking update: general refactoring, unifying EMAC
...
Initial work by Bartek Szatkowski in https://github.com/ARMmbed/mbed-os/pull/4079 ,
reworked following review of https://github.com/ARMmbed/mbed-os/pull/5202 to
transform the entire system into C++, retaining the basic functionality.
Bartek's summary:
* Porting ethernet to EMAC
* Updating EMAC to enable multiple interfaces
* Untangling networking classes, making the abstractions a bit clearer to follow, etc
* General refactoring
* Removal of DEVICE_EMAC flag and introducing DEVICE_ETH and DEVICE_WIFI
Revisions since initial branch:
* Remove lwip depencies
* Correct doxygen warnings
* Remove emac_api.h, replace with C++ EMAC abstract class.
* Create OnboardNetworkInterface, and LWIP implementation.
* Mappings since #4079
lwip-interface/nsapi_stack_lwip.c -> LWIPStack.cpp
lwip-interface/ipstack_lwip.c -> LWIPInterface.cpp
netsocket/mbed_ipstack.h -> OnboardNetworkStack.h
hal/emac_api.h -> EMAC.h
* Reinstate use of EthInterface abstraction
* Correct and clarify HW address EMAC ops
* Restore MBED_MAC_ADDR implementation
* Integrate PPP support with LWIP::Interface.
* Convert K64F lwIP driver to K64F_EMAC.
To do:
* Convert emac_stack_mem.h to follow this pattern.
* Figure out DEVICE_ETH/EMAC
* Update all drivers to use EMAC
2018-05-22 11:44:45 +03:00
Ron Eldor
d2bcf3c356
Change target name
...
Apply the CC changes to TARGET_MCU_NRF52840 , and not to
the DK target alone
2018-05-22 09:24:37 +03:00
Andrew Leech
71b2caf63e
Add target definitions for using 16k nrf51 on the NRF51_UNIFIED platform: MCU_NRF51_16K_UNIFIED_S130
...
Add target definition for Raytac MDBT40 module to use the MCU_NRF51_16K_UNIFIED_S130 target.
2018-05-22 11:41:21 +10:00
Andrew Leech
3300d2898b
nrf51_16k_s130 Fix flash origin for APP_CODE_BASE
...
For details see: http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s130.sds%2Fdita%2Fsoftdevices%2Fs130%2Fmem_usage%2Fmem_resource_reqs.html
Set the ram start to 0x20002ef8 to be consistent with ATM_STD and IAR linker scripts
2018-05-22 11:40:10 +10:00
Andrew Leech
67140a2706
Redirect NRF asserts to mbed error() in TARGET_NRF5x and SDK 14.2
...
Add related details to TARGET_NRF5x Readme's
2018-05-22 11:36:31 +10:00
Andrew Leech
5bb3ede890
Comment out the assert test that requires non-existent symbols from linker
2018-05-22 11:36:30 +10:00
Andrew Leech
244b7a5c69
Only enable DEBUG_NRF_USER when NDEBUG is not set
2018-05-22 11:36:30 +10:00
Andrew Leech
f49070c876
Address known typo in nrf sdk 11
...
ref: https://devzone.nordicsemi.com/f/nordic-q-a/14000/nrf_drv_adc-c-doesn-t-compile-with--ddebug_nrf
2018-05-22 11:36:30 +10:00
Andrew Leech
cfd248ee05
Enable ASSERTS's in nrf sdk to catch coding errors.
...
These will now flow through to mbed standard error handling.
2018-05-22 11:36:30 +10:00
Qinghao Shi
f35ba494ca
remove empty lines and redundant variables
2018-05-21 18:43:37 +01:00
Qinghao Shi
bc03c20408
update targets.json remove redundant extra_lables
2018-05-21 18:33:48 +01:00
Cruz Monrreal
ea13262aec
Merge pull request #6951 from bcostm/fix_spi_nss_config
...
STM32 SPI: fix NSS pin configuration
2018-05-21 10:26:00 -05:00
Cruz Monrreal
2fa6cb519e
Merge pull request #6826 from marcuschangarm/feature-ota
...
Reorganize SoftDevices for NRF52 series
2018-05-21 10:15:09 -05:00
Qinghao Shi
aab82a78b3
reformat coding styles based on coding guidelines
2018-05-21 15:37:37 +01:00
Ron Eldor
23ba8bc1f5
Change Cryptocell target to a feature
...
Change the Cryptocell310 target to `FEATURE_CRYPTOCELL310`
2018-05-21 13:40:43 +03:00
Marcus Chang
d27c4c920c
Remove unused ITM implementation from NRF51 series
...
NRF51 doesn't support SWO out.
2018-05-18 11:26:13 -07:00
bcostm
2d7b13c540
STM32 SPI: fix NSS pin configuration
2018-05-18 14:26:26 +02:00
jeromecoutant
c31554f618
STM32 ETH : remove TX RX locking interrupt perforation
2018-05-18 10:53:02 +02:00
PHST
69207457a0
EFM32PG12_STK3402 - Correct wrong Expansion header Pin naming
...
Referencing to "UG257: EFM32 Pearl Gecko PG12 Starter Kit User's Guide - Chapter 4" (https://www.silabs.com/documents/public/user-guides/ug257-stk3402-usersguide.pdf ) it should be like in this commit.
2018-05-18 08:39:14 +02:00
jeromecoutant
b30f3abf11
STM32 PeripheralPins.c second update after review
...
genpinmap script version 1.1
2018-05-17 17:58:09 +02:00
Marcus Chang
ef9bc9ccc9
Add NRF52 support for building bootloader and updateable firmware
...
New directory structure:
* TARGET_SOFTDEVICE_COMMON
* TARGET_SOFTDEVICE_S112
* TARGET_SOFTDEVICE_S132_FULL (MBR + SoftDevice, default)
* TARGET_SOFTDEVICE_S132_OTA (SoftDevice only, for firmware updates)
* TARGET_SOFTDEVICE_S132_MBR (MBR only, for bootloader builds)
* TARGET_SOFTDEVICE_S140_FULL (MBR + SoftDevice, default)
* TARGET_SOFTDEVICE_S140_OTA (SoftDevice only, for firmware updates)
* TARGET_SOFTDEVICE_S140_MBR (MBR only, for bootloader builds)
* TARGET_SOFTDEVICE_NONE
The X_OTA and X_MBR binaries are obtained from the original x_FULL SoftDevice
by splitting it in an MBR part and a SoftDevice part. The MBR is needed for
the bootloader and the SoftDevice for firmware updates.
Build application without SoftDevice:
"target_overrides": {
"*": {
"target.extra_labels_remove": ["SOFTDEVICE_COMMON", "SOFTDEVICE_X_FULL"],
"target.extra_labels_add": ["SOFTDEVICE_NONE"]
}
}
Build application for firmware update using SoftDevice X:
"target_overrides": {
"*": {
"target.extra_labels_remove": ["SOFTDEVICE_X_FULL"],
"target.extra_labels_add": ["SOFTDEVICE_X_OTA"]
}
}
Build bootloader without SoftDevice X:
"target_overrides": {
"*": {
"target.extra_labels_remove": ["SOFTDEVICE_COMMON", "SOFTDEVICE_X_FULL"],
"target.extra_labels_add": ["SOFTDEVICE_X_MBR"]
}
}
2018-05-17 07:32:09 -07:00
jeromecoutant
3ac1855d93
STM32L4 DISCO : PeripheralPins.c and PinNames.h files alignment
2018-05-16 17:05:14 +02:00
jeromecoutant
3e56a68eca
STM32L0 DISCO : PeripheralPins.c and PinNames.h files alignment
2018-05-16 17:05:10 +02:00
jeromecoutant
b928439ef7
STM32F7 DISCO : PeripheralPins.c and PinNames.h files alignment
2018-05-16 17:05:06 +02:00
jeromecoutant
2b9b817aed
STM32F4 DISCO : PeripheralPins.c and PinNames.h files alignment
2018-05-16 17:05:03 +02:00
jeromecoutant
02e8172538
STM32F3 DISCO : PeripheralPins.c and PinNames.h files alignment
2018-05-16 17:04:58 +02:00
jeromecoutant
1e0ae6de14
STM32F1 DISCO : PeripheralPins.c and PinNames.h files alignment
2018-05-16 17:04:55 +02:00
jeromecoutant
b22c0d1bc1
STM32F0 DISCO : PeripheralPins.c and PinNames.h files alignment
2018-05-16 17:04:51 +02:00
jeromecoutant
3e92ff1f85
STM32L4 NUCLEO : PeripheralPins.c and PinNames.h files alignment
2018-05-16 17:04:41 +02:00
jeromecoutant
945bf78b6e
STM32L1 NUCLEO : PeripheralPins.c and PinNames.h files alignment
2018-05-16 17:04:36 +02:00
jeromecoutant
b308d5cb71
STM32L0 NUCLEO : PeripheralPins.c and PinNames.h files alignment
2018-05-16 17:04:31 +02:00
jeromecoutant
d0da6dd34e
STM32F7 NUCLEO : PeripheralPins.c and PinNames.h files alignment
2018-05-16 17:04:27 +02:00
jeromecoutant
bcadeff645
STM32F4 NUCLEO : PeripheralPins.c and PinNames.h files alignment
2018-05-16 17:04:15 +02:00
jeromecoutant
817bdc213d
STM32F3 NUCLEO : PeripheralPins.c and PinNames.h files alignment
2018-05-16 17:04:10 +02:00
jeromecoutant
4ebbcc2197
STM32F2 NUCLEO : PeripheralPins.c and PinNames.h files alignment
2018-05-16 17:03:56 +02:00
jeromecoutant
0025ebc0c7
STM32F1 NUCLEO : PeripheralPins.c and PinNames.h files alignment
2018-05-16 17:03:33 +02:00
Vincent Coubard
6c44a78166
Merge branch 'master' of https://github.com/ARMmbed/mbed-os into security-manager-dev
2018-05-16 15:55:15 +01:00
Ron Eldor
a1ea814f06
Minor style fixes
...
Fix styls issues and rename ARM to Arm.
Address additional minor comments from review.
2018-05-16 13:58:46 +03:00
Cruz Monrreal
8be2e34390
Merge pull request #6832 from bcostm/PULL_REQUEST_CUBE_UPDATE_F3_V1.9.0
...
STM32F3: Update with STM32CubeF3 V1.9.0
2018-05-15 10:09:16 -05:00
Vincent Coubard
ca5a9f359a
Nordic BLE: remove unecessary nordic ble libraries.
2018-05-15 14:51:19 +01:00
Vincent Coubard
a22b4e5d5e
Nordic BLE: Remove nordic gap init.
...
This initialization is already done in GattServer.
2018-05-15 14:51:18 +01:00
Vincent Coubard
f5ac8d69ce
Nordic: Adjust RAM requirements.
2018-05-15 14:51:16 +01:00
Vincent Coubard
ed20b17d29
Nordic BLE: Fix link count
2018-05-15 14:51:16 +01:00
jeromecoutant
0e510cfe3a
STM32F0 NUCLEO : PeripheralPins.c and PinNames.h files alignment
2018-05-15 14:50:07 +02:00
Ron Eldor
c5ea8d71bb
Change to DEVICE_CRYPTOCELL definition
...
Change `#if DEVICE_CRYPTOCELL` to `#if defined(DEVICE_CRYPTOPCELL)`
2018-05-14 18:34:10 +03:00
Bartek Szatkowski
42b48821eb
Fix platform failing to build after rebase
2018-05-14 12:18:21 +01:00
Bartek Szatkowski
38df9306d7
Update wsf_types.h to support updated CMSIS
2018-05-14 12:18:21 +01:00
Qinghao Shi
953a735129
FastModels: enable FVP_MPS2 targets for mbed os
...
add ARM_FM top level category
add second level parent FVP_MPS2 inherits ARM_FM
add each target ( M0 M0P M3 M4 M7 ) inherits FVP_MPS2
2018-05-14 11:40:21 +01:00
Qinghao Shi
76dc715a0e
FastModels: add FVP_MPS2_M7 target support
...
add cmsis drivers and toolchain scripts for FVP_MPS2_M7
2018-05-14 11:34:50 +01:00
Qinghao Shi
1bf59cd54d
FastModels: add FVP_MPS2_M0P target support
...
add cmsis drivers and toolchain scripts for FVP_MPS2_M0P
2018-05-14 11:34:23 +01:00
Qinghao Shi
67abec3998
FastModels: add FVP_MPS2_M0 target support
...
add cmsis drivers and toolchain scripts for FVP_MPS2_M0
2018-05-14 11:33:57 +01:00
Qinghao Shi
ce2c21a1f4
FastModels: add FVP_MPS2_M4 target support
...
add cmsis drivers and toolchain scripts for FVP_MPS2_M4
2018-05-14 11:33:31 +01:00
Qinghao Shi
2e4a023489
FastModels: add FVP_MPS2_M3 target support
...
add cmsis drivers and toolchain scripts for FVP_MPS2_M3
2018-05-14 11:32:52 +01:00
Qinghao Shi
2c88a8314a
FastModels: add a new parent platform ARM_FM
...
create a new platform folder TARGET_ARM_FM
add general drivers files for FVP_MPS2
2018-05-14 11:30:34 +01:00
Ron Eldor
39973c8a8e
Move trng code from target_nrf5 to target_nrf5x
...
After rebase, the build target NRF52840_DK is using TARGET_NRF5x,
instead of TARGET_NRF5. Moved Cryptocell TRNG related code from
`targets/TARGET_NORDIC/TARGET_NRF5/` to `targets/TARGET_NORDIC/TARGET_NRF5x/`
2018-05-14 13:15:57 +03:00
Ron Eldor
340f22e3cd
Add support for CC trng
...
add support for HW entropy source
2018-05-14 13:15:27 +03:00
Ron Eldor
75087469f7
Add the Cryptocell library
...
Add the latest cryptocell library, and add support for CC310 lirary
on latest Mbed OS code
2018-05-14 13:15:27 +03:00
Marcus Chang
6af843fceb
Trim white space and clean up NRF52 configuration files
...
Removed unused and duplicate macros.
2018-05-13 22:31:17 -07:00
Cruz Monrreal
2104d8ab5b
Merge pull request #6711 from marcuschangarm/cleanup-nrf5x
...
Cleanup TARGET_NRF5 and TARGET_NRF5x
2018-05-11 19:15:05 -05:00
Cruz Monrreal
30e39eeb10
Merge pull request #6852 from mprse/issue_5308_fix
...
Fix for issue #5308 - RTC set/get time issue on NCS36510
2018-05-10 23:26:06 -05:00
Cruz Monrreal
4318caaffa
Merge pull request #6779 from maximmbed/add-max32625pico
...
[MAX32625PICO] Add new platform
2018-05-10 23:25:41 -05:00
Przemyslaw Stekiel
23127af67f
NCS36510: Enable RTC support.
2018-05-09 14:41:40 +02:00
Przemyslaw Stekiel
8bddb6b305
NCS36510: Make RTC driver to operate on seconds instead of us.
...
In current implementation `rtc_read` function returns number of elapsed us and `rtc_write` function sets RTC time to specified value in us.
Mbed HAL API expects that these functions operate on seconds.
Since lp ticker is also based on RTC provide mechanism to trace elapsed seconds without modifying RTC registers.
2018-05-09 14:41:40 +02:00
Marcus Chang
34775d6431
Remove obsolete OS_IDLE_THREAD_STACK_SIZE from NRF52
...
Custom size is the same as the default size anyway.
2018-05-08 15:51:39 -07:00
Marcus Chang
1aebdcbee5
Reorganize TARGET_MCU_NRF51822_UNIFIED directories
...
The unified NRF51 target and feature BLE directories have been
reorganized to follow the naming and directory structure of the
NRF52 implementation.
This reorganization does not include TARGET_MCU_NRF51822 and
derived targets.
2018-05-08 10:10:01 -07:00
Keyur Hariya
fcd1bc9e37
Add default defines for MAX32625PICO
2018-05-07 16:30:57 -05:00
Marcus Chang
1360920e77
Remove unused NRF52 SDK and MCU files
...
Superseded by new SDK 14.2 in https://github.com/ARMmbed/mbed-os/pull/6547
2018-05-07 12:18:29 -07:00
Cruz Monrreal
0f51ea031e
Merge pull request #6610 from pauluap/stm32_eth_remove_tx_rx_locking_interrupt_perforation
...
Stm32 eth remove tx rx locking interrupt perforation
2018-05-07 10:51:03 -05:00
Cruz Monrreal
ab81b61e6c
Merge pull request #6657 from tsailer/exporter-codeblocks-ncs
...
add ncs36510 fib and trim generation
2018-05-07 10:40:51 -05:00
Cruz Monrreal
e023bb67c4
Merge pull request #6771 from marcuschangarm/fix-uart-init
...
Fix UART initialization for NRF52
2018-05-07 10:35:40 -05:00
Cruz Monrreal
809f183eeb
Merge pull request #6768 from deepikabhavnani/iar_nan0130
...
Nano 100: Lower HEAP size for IAR
2018-05-07 10:32:30 -05:00
bcostm
6154fd2598
F3 ST CUBE V1.9.0: remove pcd patch
...
The Lock field is no more available in PCD structure.
2018-05-07 10:58:49 +02:00
bcostm
ccf71f0360
F3 ST CUBE V1.9.0: fix build errors with legacy macros
2018-05-07 10:58:49 +02:00
bcostm
d0f8def2d7
F3 ST CUBE V1.9.0
2018-05-07 10:58:49 +02:00
Martin Kojtal
5a77f42882
Merge pull request #6796 from marcuschangarm/fix-nrf52-tick
...
Fix us_ticker for NRF52 series
2018-05-07 08:17:58 +01:00
Martin Kojtal
6361e92d62
Merge pull request #6798 from marcuschangarm/fix-mbr
...
Fix bug in MBR for NRF52 series
2018-05-04 18:58:14 +01:00
Keyur Hariya
04ae15a154
Declare and call low_level_init funtion
2018-05-03 10:57:38 -05:00
Keyur Hariya
3969d85feb
[MAX32625PICO] Add new platform
...
This platform is available with or without Bootloader.
2018-05-03 10:57:38 -05:00
Martin Kojtal
e43d21d4ef
Merge pull request #6713 from theotherjimmy/arm-no-asm-inc
...
Drop include paths for ARM assembler
2018-05-03 16:31:04 +01:00
Martin Kojtal
45b3fffe9a
Merge pull request #6729 from JammuKekkonen/f411re_add_bootloader_support
...
Add bootloader support for NUCLEO_F411RE target
2018-05-03 16:30:29 +01:00
Martin Kojtal
1f6ded136c
Merge pull request #6778 from maximmbed/max32625mbed-update-leds
...
Add support for open drain leds
2018-05-03 16:25:04 +01:00
Martin Kojtal
0c61cf4a37
Merge pull request #6785 from codeauroraforum/Fix_KL82Z_PWMOUT
...
KL82Z: Fix clock selection for PWMOUT driver
2018-05-03 16:24:07 +01:00
Marcus Chang
41c1654a49
Fix bug in MBR for NRF52 series
...
The MBR VTOR state depends on how the application is booted.
This makes it difficult to initialize the MBR correctly since a
bug prevents the MBR from being initialized more than once.
This commit resets the MBR and SoftDevice to a known state before
initializing the MBR and setting the VTOR through the SoftDevice.
2018-05-02 21:10:41 -07:00
Marcus Chang
b8f22bbec1
Fix us_ticker for NRF52 series
...
Changed comparison function when setting ticker timeout to fix
tickers not set correctly.
2018-05-02 16:10:14 -07:00
Marcus Chang
a1a329606b
Fix UART initialization for NRF52
...
Delayed initialization can cause problems when both UARTE instances
are in use. This change causes each UART object to initialize the
underlying UARTE instance immediately.
2018-05-02 15:07:13 -07:00
Mahesh Mahadevan
87244a969b
KW41Z: Update SDK TPM driver
...
Certain instances of the TPM are missing some registers, updated
TPM driver handles this variation. This issue was discovered when
running the PWMOUT tests using the ci-test-shield
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-01 14:48:12 -05:00
Mahesh Mahadevan
0fb2f01ce7
KL82Z: Fix clock selection for PWMOUT driver
...
This was verified using the ci-test shield
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-01 12:22:04 -05:00
Keyur Hariya
ca4937d40d
Add support for open drain leds
2018-04-30 15:27:07 -05:00
Jimmy Brisson
d08c819830
Merge pull request #6746 from marcuschangarm/fix-vector-relocation
...
Fix vector table relocation for NRF52
2018-04-30 13:51:22 -05:00
Cruz Monrreal
e1cc4559cf
Merge pull request #6748 from andrewleech/nrf52_serial_match_assert
...
nrf5x: Fix assert test on SERIAL_RESERVED_CHAR_MATCH
2018-04-30 11:50:05 -05:00
deepikabhavnani
ba4aa3f3a6
Updating HEAP size
...
IAR 7.8 does not support dynamic heap, and some test/addition of new
feature fail on this device because of less static RAM memory.
Reducing the heap memory size for the same reason.
2018-04-27 15:48:52 -05:00
Marcus Chang
bb14051588
Fix vector table relocation for NRF52
...
The vector table relocation sequence depends on:
1. Whether the SoftDevice is present.
2. The Application is a bootloader or not.
If the SoftDevice is present and the application is a bootloader
the MBR must be initialized to trap SoftDevice service calls
before setting the new vector table address.
The SCB->VTOR must be set to point at the MBR as well.
If the SoftDevice is not present the SCB->VTOR can point at the
new vector table directly.
2018-04-27 13:40:50 -07:00
Cruz Monrreal
d06ad9b834
Merge pull request #6696 from hug-dev/cm3ds-cleaning
...
CM3DS Maintenance Pull Request: Cleaning
2018-04-26 20:20:31 -05:00
Cruz Monrreal
6ccc963b61
Merge pull request #6733 from maximmbed/fix-compiler-warnings
...
Fix compiler warnings for Maxim platforms
2018-04-26 20:18:32 -05:00
Cruz Monrreal
487576972b
Merge pull request #6720 from marcuschangarm/fix-sdk-spi
...
Fix bug in Nordic SDK 14.2 SPI driver
2018-04-26 20:17:36 -05:00
Cruz Monrreal
9d6d8c7273
Merge pull request #6721 from marcuschangarm/fix-sdk-i2c
...
Fix bug in Nordic SDK 14.2 I2C driver
2018-04-26 20:17:25 -05:00
Cruz Monrreal
4e1c04feba
Merge pull request #6734 from codeauroraforum/Fix_LPC54XXX_GPIO
...
LPC54XXX: Set the pin function to Digital mode
2018-04-26 20:17:07 -05:00
Andrew Leech
627d028f3e
nrf5x: Add description to assert on SERIAL_RESERVED_CHAR_MATCH
2018-04-27 11:05:47 +10:00
Jammu Kekkonen
d2cf341348
Add bootloader support for NUCLEO_F411RE target
2018-04-26 16:19:43 +03:00
Martin Kojtal
5ee2658dae
Merge pull request #6701 from SiliconLabs/feature/update-rail
...
Update to EFR32 15.4 driver
2018-04-25 13:17:33 +01:00
Martin Kojtal
a858454451
Merge pull request #6717 from marcuschangarm/fix-spi-pins
...
Fix NRF52 SPI pin initialization
2018-04-25 13:17:05 +01:00
Martin Kojtal
beb8da965c
Merge pull request #6735 from codeauroraforum/Add_GPIO_IRQ_Check
...
LPC546XX: Add check for GPIO IRQ
2018-04-25 13:16:01 +01:00
Mahesh Mahadevan
6513091173
LPC546XX: Add check for GPIO IRQ
...
GPIO IRQ is available on pins for Ports 0 & 1. Add
a check to return error for other ports.
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-04-24 14:26:20 -05:00
Mahesh Mahadevan
2670f790ce
LPC546XX: Set the pin function to Digital mode
...
We cannot rely on the default value as a pin could
be use for Analog purposes in which this bit is cleared
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-04-24 11:24:23 -05:00
Keyur Hariya
fc7c70dbc6
Fix the initialization of a structure
2018-04-24 11:13:19 -05:00
jeromecoutant
7b5a79f56e
STM32 RTC Init minor update
2018-04-24 13:50:57 +02:00
Marcus Chang
3edfc77949
Fix bug in Nordic SDK 14.2 I2C driver
...
Interrupts were not enabled before transmitting data leading to
missed interrupts.
2018-04-23 16:38:31 -07:00
Marcus Chang
cba7e0df06
Fix bug in Nordic SDK 14.2 SPI driver
...
Interrupts were not enabled before transmitting data leading to
missed interrupts.
2018-04-23 16:08:44 -07:00
Keyur Hariya
0ca1a61ba0
Remove the redundant input parameter
2018-04-23 16:37:55 -05:00
Keyur Hariya
1f0809a56b
Add the missing input parameter
2018-04-23 16:37:55 -05:00
Keyur Hariya
85bc74cc1d
Fix the return type to allow returning error
2018-04-23 16:37:55 -05:00
Keyur Hariya
11cf79ecb0
Add type cast
2018-04-23 16:37:55 -05:00
Marcus Chang
6db4425351
Fix NRF52 SPI pin initialization
...
SPI pins are not initialized correctly according to the current
SPI mode.
This commit changes how the SPI instance is configured and ensures
that:
1. SPI pins are initialized on each object initialization.
2. SPI pins are reinitialized on each mode or object change.
3. SPI instance is only initialized when a change has occured.
2018-04-23 14:27:33 -07:00
Jimmy Brisson
d0e09851ac
Use rel path for the ONLY arm asm include statement
2018-04-23 15:23:35 -05:00
Cruz Monrreal
b033a6e42e
Merge pull request #6703 from 0xc0170/fix_kl27z_flash
...
KL27Z: Flash protection macro addition
2018-04-23 15:14:13 -05:00
Cruz Monrreal
a15c2f0b22
Merge pull request #6666 from bcostm/PULL_REQUEST_CUBE_UPDATE_L0_V1.10.0
...
STM32L0: Update with CubeL0 V1.10.0
2018-04-23 11:01:13 -05:00
Cruz Monrreal
a27700da33
Merge pull request #6683 from ganesh-ramachandran/master
...
Add IAR export and nvstore page size fix for TMPM46B
2018-04-23 10:53:55 -05:00
Cruz Monrreal
8e2398520a
Merge pull request #6686 from maximmbed/max32620c-fix-i2c
...
Remove automatic I2C stop after each read
2018-04-23 10:52:51 -05:00
Cruz Monrreal
38846b2a6c
Merge pull request #6690 from li-ho/ev-cog-bootloader
...
ADI: Enable bootloader for EV_COG_AD3029LZ and EV_COG_AD4050LZ
2018-04-23 10:51:41 -05:00