Commit Graph

26890 Commits (835504d30a4d001985e180ae02c6dd2acaa041f9)

Author SHA1 Message Date
Hugues Kamba 900787ca96 Remove extraneous parentheses. 2019-10-16 11:53:52 +01:00
Hugues Kamba 95996200d7 Use PRIu32 to print uint32_t variable
As the variable underlying type size is different depending on the
toolchain used
2019-10-16 11:53:52 +01:00
Hugues Kamba 7bdc7b6a69 Remove minor build warnings 2019-10-16 11:53:52 +01:00
Hugues Kamba 908241fb48 Replace wait_ms calls with rtos::ThisThread::sleep_for
`wait_ms` is deprecated and its use generates a warning.
2019-10-16 11:53:52 +01:00
Hugues Kamba dbca77dcc5 Avoid non-trivial copy when initializing lorastack struct
Using memset generates a warning about the non-trivial operation.
Use member-initializer-list instead to initialise the structs members.
2019-10-16 11:53:52 +01:00
Olli-Pekka Puolitaival d2bd044b4d Use very verbose to see more details in case of problem 2019-10-16 11:53:52 +01:00
Kostiantyn Tkachov 5c3da11e83 Removed mbedTLS hardware support from FUTURE_SEQUANA targets 2019-10-16 11:53:52 +01:00
Kostiantyn Tkachov eb1a5e6b11 Changed order of config file checking in include defines 2019-10-16 11:53:52 +01:00
Kostiantyn Tkachov 04e6f79ae8 Removed TABs from the ALT source files 2019-10-16 11:53:52 +01:00
Kostiantyn Tkachov f583fd8b26 Removed obsoleted typedef for mbedtls_be128[] in aes_alt.c 2019-10-16 11:53:52 +01:00
Kostiantyn Tkachov e2a84556e6 Fixed SHA ctx and ilen parameters checking 2019-10-16 11:53:52 +01:00
Kostiantyn Tkachov 3727c82736 Fixed SHA ctx and ilen parameters checking 2019-10-16 11:53:52 +01:00
Kostiantyn Tkachov b191e6a84a Initial commit to add mbedTLS hardware acceleration for Cypress chips to mbed-os sources 2019-10-16 11:53:52 +01:00
Chun-Chieh Li ef8474de46 M263: Remove redundant SPI I2S pins from pinmap
The pins suffixed with 'I2SMCLK' are for SPI I2S and cannot be used in normal SPI.

This is also to fix FPGA CI test mbed_hal_fpga_ci_test_shield-spi.
2019-10-16 11:53:52 +01:00
Chun-Chieh Li 0722380f9a M263: Free up peripheral pins in peripheral free-up HAL API
Without free-up of peripheral pins, peripheral pins of the same peripheral may
share by multiple ports after port iteration, and this peripheral may fail with
pin interference.
2019-10-16 11:53:52 +01:00
Chun-Chieh Li 863c2a7700 M263: Support GPIO input pull-high/pull-low
In Nuvoton, only new-design chips support GPIO input pull-high/pull-low modes.
Targets not supporting this feature are listed below:

- NUMAKER_PFM_NANO130
- NUMAKER_PFM_NUC472
- NUMAKER_PFM_M453
2019-10-16 11:53:52 +01:00
Chun-Chieh Li 826ad091a3 M263: Fix redundant call to UART IRQ handler
Honor RxIrq/TxIrq to avoid redundant call to UART IRQ handler.

This is also to fix FPGA CI test mbed_hal_fpga_ci_test_shield-uart.
2019-10-16 11:53:52 +01:00
Chun-Chieh Li 950a586ad1 M263: Fix redundant SPI clock generation
Fix SPI clocks are generated redundantly at the end of transfer.

This is also to fix FPGA CI test mbed_hal_fpga_ci_test_shield-spi/
SPI - async mode.
2019-10-16 11:53:52 +01:00
Chun-Chieh Li 8cd1f10b25 M263: Fix I2C NACK error
Fix logic error on replying NACK at the end of transfer.

This is also to fix FPGA CI test mbed_hal_fpga_ci_test_shield-i2c/
i2c - test single byte read i2c API.
2019-10-16 11:53:52 +01:00
Chun-Chieh Li d6172f0227 M263: Fix IP initialization sequence
Better IP initialization sequence:
1. Configure IP pins
2. Select IP clock source and then enable it
3. Reset the IP (SYS_ResetModule)

NOTE1: IP reset takes effect regardless of IP clock. So it doesn't matter if
       IP clock enable is before IP reset.
NOTE2: Non-configured pins may disturb IP's state, so IP pinout first and then
       IP reset.
NOTE3: IP reset at the end of IP initialization sequence can cover unexpected
       situation.
2019-10-16 11:53:52 +01:00
Chun-Chieh Li 668d3b077e M263: Exclude USB UART from testing
USB UART is dedicated to USB COM and so must exclude from FPGA CI testing.
2019-10-16 11:53:52 +01:00
Chun-Chieh Li 99cbd6fe3c M263: Force enum PinName to 32-bit
NU_PINNAME_BIND(...) requires enum PinName to be 32-bit to encode module
binding information in it.
2019-10-16 11:53:52 +01:00
Hugues Kamba 639ee4b3b4 Cast void pointer before deallocating with delete[]
The stack memory is a `void*` which creates a warning when using
the `delete[]` operator because it is unable to call the destructor of
of an unknown object type.
2019-10-16 11:53:52 +01:00
dolphin\\gena 6176f066f4 formatting 2019-10-16 11:53:52 +01:00
dolphin\\gena 8d734ee055 bad formatting correction 2019-10-16 11:53:52 +01:00
dolphin\\gena 495ba7b92c indents correction 2019-10-16 11:53:52 +01:00
dolphin\\gena 13c202b828 rename macro 2019-10-16 11:53:52 +01:00
Martin Kojtal a35663b171 ST pinmap: remove endif mistype 2019-10-16 11:53:52 +01:00
Martin Kojtal 908e7a3e9f ST pinmap: Fix the style 2019-10-16 11:53:52 +01:00
dolphin\\gena 8e9511e435 formatting 2019-10-16 11:53:52 +01:00
dolphin\\gena 954552a7d1 fix mistypes 2019-10-16 11:53:52 +01:00
dolphin\\gena 7bc2aae435 formatting issue 2019-10-16 11:53:52 +01:00
dolphin\\gena e8be6505c4 mistype fix 2019-10-16 11:53:52 +01:00
dolphin\\gena f84a2df116 Add pin speed controlling interface 2019-10-16 11:53:52 +01:00
Chun-Chieh Li 1366602ca7 M263: Enlarge LPTICKER_DELAY_TICKS for safe
On Nuvoton targets, lp_ticker_set_interrupt(...) needs around 3 lp-ticker
ticks to take effect. It may miss when current tick and match tick are very
close (see hal/LowPowerTickerWrapper.cpp). Enlarge LPTICKER_DELAY_TICKS to
4 from 3 to address this boundary case.
2019-10-16 11:53:52 +01:00
int_szyk c138ef8baa Change LSI_VALUE in STM implementation.
Wrong LSI value might be causing problems witch watchdogs.
2019-10-16 11:53:52 +01:00
Chun-Chieh Li c21f34823b M263: Fix mbedmicro-rtos-mbed-systimer/Wake up from deep sleep failing
This test requires total latency (tot = h/w + s/w) (wakeup from deepsleep) be
under 1ms. To check the issue, measure total latency on Nuvoton targets:

TARGET      EXP(us)     EXP+TOL(us) ACT(us)
NANO130     42000       43000       42939
NUC472      42000       43000       42236
M453        42000       43000       43274
M487        42000       43000       42877
M2351       42000       43000       43213

Checking h/w spec, h/w latency (wakeup time from normal power-down mode) on
M487/M2351 is just 1us (n/a on other targets). S/W latency plays the major
part here.

S/W latency relies on system performance. On Nuvoton targets, 'LPTICKER_DELAY_TICKS'
possibly complicates the test. Anyway, to pass the test, add extra 1ms latency
(deep-sleep-latency) in targets.json for Nuvoton targets.
2019-10-16 11:53:52 +01:00
Lei Zhang 46247ca029 Bringdown interface when stopping softap
The interface should be brought down when stopping softap.
2019-10-16 11:53:52 +01:00
Tony Wu 6b75945eaa rtl8195am - remove redundant code
Signed-off-by: Tony Wu <tonywu@realtek.com>
2019-10-16 11:53:52 +01:00
Tony Wu 5ae55c26d1 rtl8195am - fix array assumed to have one element warning
Signed-off-by: Tony Wu <tonywu@realtek.com>
2019-10-16 11:53:52 +01:00
Tony Wu 3345548adc rtl8195am - fix argument format warning
[Warning] tcm_heap.c@70,18: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'MemChunk * {aka struct _MemChunk *}' [-Wformat=]
[Warning] tcm_heap.c@70,28: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'MemChunk * {aka struct _MemChunk *}' [-Wformat=]

Signed-off-by: Tony Wu <tonywu@realtek.com>
2019-10-16 11:53:52 +01:00
Tony Wu a168aabdd0 rtl8195am - fix missing braces around empty body warning
osdep_service.c@214,61: suggest braces around empty body in an 'else' statement [-Wempty-body]

Signed-off-by: Tony Wu <tonywu@realtek.com>
2019-10-16 11:53:52 +01:00
Tony Wu 82c5e24d8f rtl8195am - cleanup gcc linker script
Signed-off-by: Tony Wu <tonywu@realtek.com>
2019-10-16 11:53:52 +01:00
Tony Wu 6b0275f9bb rtl8195am - disable IAR support
Disable IAR support until HAL library is upgraded to IAR8

Signed-off-by: Tony Wu <tonywu@realtek.com>
2019-10-16 11:53:52 +01:00
Tony Wu 1c015bc54a rtl8195am - enable USTICKER support
Signed-off-by: Tony Wu <tonywu@realtek.com>
2019-10-16 11:53:52 +01:00
Hugues Kamba 34a54c1b2e Add executable analaysis tool for floating point checks. 2019-10-16 11:53:52 +01:00
Teppo Järvelin 4608de3e1a Cellular: fix ATHandler destructor possible crash on delete
In some multithread cases there is possibility that process_oob function
was called after ATHandler was deleted. Fix is to wait if oob processing
is ongoing.
2019-10-16 11:53:52 +01:00
Martin Kojtal b6e5a0a8af
Merge pull request #11524 from ARMmbed/release-candidate
Release candidate 3 for Mbed OS 5.14
2019-09-20 08:44:58 +02:00
Laurent Meunier 23e61c02dd SysTimer deep sleep: Add local lock check and update comments
Suggested-by: @kjbracey-arm

Replace the sleep_manager_can_deep_sleep() with !_deep_sleep_locked.
Indeed, if we know we've taken the lock because we're using us_ticker,
no need to do the early wake.

Updated comments accordingly.
2019-09-19 17:29:56 +01:00
Laurent Meunier 5df60b59cd SysTimer should let deep sleep happen
When next SysTimer wake-up is scheduler far enough, always consider
that deep sleep may be entered and program an early wake-up.

So that even if deep sleep is only allowed some time later, it can be
entered. If not doing this, then the deep sleep would be prevented by
SysTimer itself and may not be entered at all.

This has been proved to happen in a simple blinly example.
2019-09-19 17:29:56 +01:00