- Feb 07, 2019
-
-
Gunar Schorcht authored
-
- Feb 06, 2019
-
-
Yegor Yefremov authored
Don't include overridden typedefs into doxygen as otherwise, they'll appear twice. Signed-off-by:
Yegor Yefremov <yegorslists@googlemail.com>
-
- Feb 05, 2019
-
-
Francisco Acosta authored
Everything is now defined in atmega.inc.mk, following the common RIOT-like reusability of rules and variables (e.g. cortexm.inc.mk).
-
- Feb 04, 2019
-
-
Gunar Schorcht authored
The default macros GPIO_PIN and GPIO_UNDEF do not have to be overridden. The GPIO_PIN macro definition was even wrong for 40 GPIOs without splitting into ports, even if that did not lead to erroneous behavior.
-
Martine Lenders authored
-
- Feb 01, 2019
-
-
Kees Bakker authored
Rewrite the README to reflect the recent addition of SAMR30 and SAML10/SAML11.
-
Sebastian Meiling authored
Removing usage of netdev->stats in all net drivers, as it is handled by gnrc_netif.
-
- Jan 31, 2019
-
-
Yegor Yefremov authored
Add support for specifying data bits, stop bits and parity at runtime. Introduce feature periph_uart_modecfg for uart_mode() till all other CPUs implement it. STM32 L1, F1, F2, F4 supports following modes: * 7E1, 7E2 * 7O1, 7O2 * 8N1, 8N2 * 8E1, 8E2 * 8O1, 8O2 STM32 L0, L4, F0, F3, F7 supports following modes: * 6E1, 6E2 * 6O1, 6O2 * 7E1, 7E2 * 7O1, 7O2 * 7N1, 7N2 * 8N1, 8N2 * 8E1, 8E2 * 8O1, 8O2 Use USART_CR1_M1 macro to detect 7-bit support because even inside one family there could be devices that don't support 7-bit mode. So just using a family macro is not enough. As stated in the datasheets for L0, L4, F0, F3, F7 devices, data bits can only be changed when UART is disabled (UE=0). Introduce uart_stop() routine to satisfy this requirement. STM32 UART adds parity to the MSB of a byte to send. The same also applies to the received bytes. As a result this bit must be masked in order to get the pure data. Signed-off-by:
Yegor Yefremov <yegorslists@googlemail.com>
-
- Jan 30, 2019
-
-
Alexandre Abadie authored
Added a configuration for saml21g18a and fixes the configuration for samr30g18a
-
Gunar Schorcht authored
-
Federico Pellegrin authored
-
- Jan 29, 2019
-
-
Gunar Schorcht authored
-
Federico Pellegrin authored
-
Gunar Schorcht authored
Checking by the send function that at least two maximum size Ethernet frames fit in the remaining heap before the LwIP packet buffer is allocated seems to increase stability. This can be caused by the fact that WLAN hardware interrupts allocate additional memory when receiving a frame during the send attempt.
-
- Jan 28, 2019
-
-
Kaspar Schleiser authored
Error case: 1. thread_yield_higher() stores the thread's ucontext 2. creates an "isr ucontext" for isr_thread_yield, switches to it Case 1: no signals are pending, continues in isr_thread_yield() 3a. sched_run is called 4a. return to sched_active_thread ucontext Case 2: signals pending (the crashing scenario), continues in native_irq_handler() 3b. handles signals 4b. if sched_context_switch_request is set, call sched_run 5b. return to sched_active_thread ucontext 4b misses the call to sched_run(), leading to a possible return into a non-ready thread.
-
- Jan 27, 2019
-
-
Gunar Schorcht authored
The situation where the firmware `lwIP` packet buffer is exhausted is an important indication that the traffic sent to and sent from the esp8266 is more than the esp8266 is able to handle. Therefore, it should be an error message.
-
Federico Pellegrin authored
-
- Jan 26, 2019
-
-
Gunar Schorcht authored
-
Gunar Schorcht authored
-
Gunar Schorcht authored
It is not necessary to realize timeout handling in send function or to disconnect from AP if lwIP packet buffer is exhausted. Waiting that the frame allocated in lwIP packet buffer is freed by MAC layer led to the complete blockage of send function on heavy network load. Disconnecting from AP is counterproductive since reconnecting usually fails on heavy network load.
-
Gunar Schorcht authored
Disconnecting from the AP in the send function if the lwIP packet buffer is exhausted is counterproductive since reconnecting usually fails on heavy network load. A better strategy is to slow down the sending of MAC frames from netif a bit to wait for flushing the buffer in the MAC layer.
-
Anton Gerasimov authored
Signed-off-by:
Anton Gerasimov <tossel@gmail.com>
-
Anton Gerasimov authored
Signed-off-by:
Anton Gerasimov <anton.gerasimov@here.com>
-
- Jan 25, 2019
-
-
Gunar Schorcht authored
It seems to be more stable and less memory consuming to use auto reconnect policy.
-
Gunar Schorcht authored
Defines a number of lwIP functions that are required as symbols by Espressif's SDK libraries. These functions are only dummies without real functionality. Using these functions instead of real lwIP functions provided with the SDK saves arround 4 kBytes of RAM.
-
Gunar Schorcht authored
Since _esp_wifi_recv_cb is not executed in interrupt context but in the context of the `ets` thread, it is not necessary to pass the`NETDEV_EVENT_ISR` event first. Instead, the receive function can be called directly which result in much faster handling, a less frame lost rate and more robustness.
-
Gunar Schorcht authored
Since _esp_wifi_recv_cb is not executed in interrupt context but in the context of the `ets` thread, the receive function can be called directly. There is no need for a mutex anymore to synchronize the access to the receive buffer between _esp_wifi_recv_cb and _recv function.
-
Hauke Petersen authored
-
Alexandre Abadie authored
This requires to implement the use of EasyDMA for this kind of peripheral
-
Alexandre Abadie authored
-
Alexandre Abadie authored
-
- Jan 24, 2019
-
-
Martine Lenders authored
-
Gunar Schorcht authored
When the size of a received frame is checked, always the total length should be used instead of the length of the first lwIP pbuf in the pbuf chain. Otherwise, the check that the length does not exceed ETHERNET_MAX_LEN will always be true since the maximum size of one lwIP pbuf in a pbuf chain is 512 bytes.
-
Gunar Schorcht authored
Receiption of a frame in _esp_wifi_recv_cb while sending has no effect and should be possible to increases the performance.
-
Gunar Schorcht authored
-
Gunar Schorcht authored
Although only the station interface is needed, the WiFi interface has to be used in SoftAP + Station mode. Otherwise the send function blocks sporadically. Since the SoftAP interface is not used, it is configured with a hidden SSID and a long beacon interval. Connections from other stations are not allowed.
-
Gunar Schorcht authored
-
Gunar Schorcht authored
A timeout was introduced if sending a frame takes to long time. In that case the WiFi interface disconnects and reconnects automatically to recover.
-
Gunar Schorcht authored
A reconnect timer is used to try to reconnect every 20 secons if WiFi interface is in disconnected or connecting state.
-
Gunar Schorcht authored
Due to performance reasons _esp_wifi_recv_cb and _send have to be executed in IRAM.
-