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
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
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
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
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
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