Martin Kojtal
400a7e4b77
error: add watchdog driver error
2019-07-02 12:46:23 +01:00
Martin Kojtal
1c0f1880eb
VirtualWatchdog: fix error code and timeout
2019-07-02 12:46:23 +01:00
Martin Kojtal
02936376ae
Watchdog: fix const static
...
Fixing error "non-static data member initializers only available with -std=c++11 or -std=gnu++11"
2019-07-02 12:46:23 +01:00
Filip Jagodzinski
455015daf5
Watchdog & VirtualWatchdog process() update
...
Add uint32 argument - pass how much time already passed to the callback.
2019-07-02 12:46:23 +01:00
Martin Kojtal
701d8f7cef
VirtualWatchdog: make sure we are the only owner of watchdog
...
If virtual one is not the only owner we error - init error code in driver.
2019-07-02 12:46:23 +01:00
Martin Kojtal
a3599414e1
Watchdog: clean-up start
2019-07-02 12:46:23 +01:00
Martin Kojtal
b166acd1cb
watchdog: fix astyle errors
2019-07-02 12:46:23 +01:00
Martin Kojtal
f98c2fdbba
watchdog: remove manager
...
Watchdog can handle callbacks - VirtualManager can attach to the tick. This should simplify the logic.
Watchdog can tick on its own using tickers.
VirtualWatchdog uses attach to get a callback when Watchdog ticks - to process own
linked list of virtual watchdogs.
2019-07-02 12:46:23 +01:00
Martin Kojtal
698b0eda8a
watchdog: add WatchdogManager
...
Watchdog should be usable on it's own - kicking it via ticker. No Virtual involved.
VirtualWatchdog as well - services should use this one to have multiple one in the system.
There's WatchdogManager - basically internal class to manage ticker for Watchdog.
2019-07-02 12:46:23 +01:00
Martin Kojtal
a668454de4
Watchdog: fix dtor
2019-07-02 12:46:23 +01:00
Martin Kojtal
bb1cc32a25
Watchdog: kick method should not have any external dep
2019-07-02 12:46:23 +01:00
Martin Kojtal
91679d40d5
Watchdog: cleanup after singleton usage
2019-07-02 12:46:23 +01:00
Martin Kojtal
d9e12e4168
VirtualWatchdog: fix protection macro
2019-07-02 12:46:23 +01:00
Martin Kojtal
7da2c6dbb6
Watchdog: use get_instance to access watchdog hw
2019-07-02 12:46:23 +01:00
Martin Kojtal
962a3d3c4c
mbed: add Watchdog and VirtualWatchdog
2019-07-02 12:46:23 +01:00
Martin Kojtal
737335c357
Remove watchdog manager
...
Use VirtualWatchdog instead
2019-07-02 12:46:23 +01:00
Martin Kojtal
edd857ea9c
VirtualWatchdog: software watchdog
...
Refactor old Watchdog (it was not a driver) to become VirtualWatchdog.
This is software virtual watchdog. This it the primary used watchdog in user application.
VirtualWatchdog: has-a watchdog. Initializes hw watchdog - start it when first used, stops it when there is no more VirtualWatchdog in the system -
list is empty.
Adding also check to watchdog to make sure there is only one in the system - runtime error if multiple objects created to already
running hw watchdog.
2019-07-02 12:46:23 +01:00
Martin Kojtal
7b0915c7d4
Watchdog: refactor driver
...
Watchdog is hardware driver. It interacts with HAL - provides wrapper to interact with the peripheral.
Provides basic functionality: start/stop, get timeout/max timeout.
It is automatically kicked by a timer, according to the timeout set in ctor.
2019-07-02 12:46:23 +01:00
Martin Kojtal
8b49ffc0c3
Merge pull request #10920 from NXPmicro/Update_Kinetis_SDK_Clock_Driver
...
Kinetis MCUXpresso: Update the clock drivers
2019-07-02 12:44:09 +01:00
Martin Kojtal
dea8268689
Merge pull request #10928 from kjbracey-arm/us_ticker_optimise
...
STM: Correct macro test in us_ticker_defines.h
2019-07-02 12:40:56 +01:00
Martin Kojtal
23037b9d6b
Merge pull request #10921 from jeromecoutant/PR_STMOD
...
STMOD_CELLULAR: readme file additional information
2019-07-02 12:40:32 +01:00
Evelyne Donnaes
96b5c1d6d4
Fixed floating point support ( #24 )
...
This PR adds:
* Support for hexadecimal printing in lower case
* Fixes to floating point printing (leading zeros in decimal part)
2019-07-02 11:09:49 +01:00
Antti Kauppila
369e2d53ff
Fixed unittests
2019-07-02 10:17:06 +03:00
Antti Kauppila
c315672413
Doubled ATHandler's BUFF_SIZE
2019-07-02 10:17:06 +03:00
George Beckstein
f2b88362fb
Apply same resolution fix to nRF52832 targets
2019-07-01 12:22:04 -04:00
George Beckstein
b08a26bfa0
Fix SAADC resolution set in sdk_config. analogin_read_u16 assumes 12-bit range but config was set to 10 bit range causing incorrect readings to be returned.
2019-07-01 12:09:27 -04:00
Tymoteusz Bloch
83057c95d0
IAR icf linker scripts modified to use dynamic heap allocation of all available memory.
2019-07-01 17:57:40 +02:00
Martin Kojtal
1cecfa480f
Merge pull request #10855 from OpenNuvoton/nuvoton_idle_stack_underflow_debug
...
Nuvoton: Fix idle thread stack underflow in debug build
2019-07-01 15:14:15 +01:00
Philipp Steiner
3b904d580b
Solve bug: Low frequency clock will now selected by given "lf_clock_src" setting.
2019-07-01 15:38:22 +02:00
Martin Kojtal
1aad06b394
Merge pull request #10829 from devran01/feature_trusted-firmware-m_e7efdc6
...
PSA: TFM import
2019-07-01 14:35:54 +01:00
Tymoteusz Bloch
1af0fe89b8
Nordic NRF52832 onboard instruction cache is turned ON to increase MCU performance
2019-07-01 15:08:53 +02:00
Tymoteusz Bloch
035221bdb1
Wait_ns () internal delay loop code alignment to 16 for decreasing execution time.
2019-07-01 14:34:43 +02:00
Ron Eldor
50d75394d3
Code improvements
...
1. Make common function for setting key, which receives
the direction as parameter.
2. Remove rediundant extra lines.
2019-07-01 13:37:26 +03:00
Kevin Bracey
1ced842391
STM: Correct macro test in us_ticker_defines.h
...
Avoids build warning caused by #10609
2019-07-01 13:34:55 +03:00
Martin Kojtal
279925b6fc
Merge pull request #10869 from mathias-arm/master
...
LPC55S69: fix cosFactor data size in header file
2019-07-01 09:27:57 +01:00
Martin Kojtal
be2c2bed30
Merge pull request #10884 from jeromecoutant/PR_H743ZI2
...
NUCLEO_H743ZI2 new target support
2019-07-01 09:27:31 +01:00
Martin Kojtal
d2c73f2bcd
Merge pull request #10842 from ghseb/cellular-stack-type-fixes
...
Cellular: Stack type fixes
2019-07-01 09:23:21 +01:00
Martin Kojtal
9e0dc3e198
Merge pull request #10859 from malavikasajikumar/master
...
Removing I2C and SPI pin names in SDP-K1 PinNames.h file.
2019-07-01 09:23:06 +01:00
Martin Kojtal
755c6b8c2f
Merge pull request #10861 from pauluap/lwip_use_recursive_mutex
...
Make the sys_arch_protect() mutex be recursive.
2019-07-01 09:19:29 +01:00
Martin Kojtal
d71db32154
Merge pull request #10881 from AGlass0fMilk/fix-nrf52-critical-region-api
...
Fix Nordic/Mbed Critical Section API Inconsistency (In Builds w/o Softdevice)
2019-07-01 09:18:10 +01:00
Martin Kojtal
6be510daa4
Merge pull request #10900 from TeroJaasko/armcc5_compilation_fixes
...
Armcc5 compilation fixes
2019-07-01 09:16:56 +01:00
Martin Kojtal
76f085bf2f
Merge pull request #10908 from kivaisan/fix_armc6_netconn_recv_tcp_pbuf
...
Fix netconn_recv_tcp_pbuf ARMC6 linker error
2019-07-01 09:16:36 +01:00
Martin Kojtal
193ba0fdea
Merge pull request #10910 from kivaisan/increase_dns_response_wait_time
...
Increase dns-response-wait-time
2019-07-01 09:16:10 +01:00
Martin Kojtal
60d047cae3
Merge pull request #10840 from u-blox/socket_flag_update
...
Cellular: cellular socket flags updated
2019-07-01 09:04:16 +01:00
Laurent Meunier
6331034bd1
STM32 with low level ticker wrapper require Extra Idle stack
2019-07-01 09:33:23 +02:00
Laurent Meunier
58a4685811
STM32: lp_ticker optim: initialize handle once only
2019-07-01 09:33:23 +02:00
Laurent Meunier
ee95c7e64a
STM32: lp_ticker optim: remove irq_handler variable
2019-07-01 09:33:23 +02:00
Laurent Meunier
8616cd7655
Update comments and fix typo
2019-07-01 09:33:23 +02:00
Laurent Meunier
501881bf38
Update warning now that C++ wrapper is not needed anymore
...
Now we'd rather not use this wrapper and use instead the low level
wrapper implemented in this driver.
2019-07-01 09:33:22 +02:00
Laurent Meunier
6397a6189f
STM32 targets: remove tickless from us ticker and delay ticker
...
For L0/L4/H7/F7/WB targets that have tickless enabled, remove the tickless from
us ticker and the delay ticks as the C++ wrapper layer is being removed
and replaced by the low layer handling.
For now, the few F4 targets with LPTIM are left with previous configuration
as test results are showing a few instabilities not yet understood.
2019-07-01 09:33:22 +02:00