Jiuzhu Dong
91d8ed319e
arch/riscv: optimize stackdump
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-07-27 20:48:33 +08:00
Jiuzhu Dong
5c8fd46126
arch/stack: rename do_stack_check with arch prefix
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-07-27 20:48:33 +08:00
Jiuzhu Dong
79597d0caf
arch/up_stack_check: using running_task to get correct task context
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-07-27 20:48:33 +08:00
ligd
8a3683fb9f
rptun: add ns_match callback to resolve rptun deadlock
...
thread A: accept -> net_lock -> socket_rpmsg_accept
-> rpmsg_register_callabck -> rptun_lock
thread B: ns_bind -> rpmsg_socket_ns_bind -> get_tx_payload_buffer
-> rptun_wait_tx -> usrsock_rpmsg_ept_cb -> usrsockdev_write
-> net_lock -> deadlock
fix:
add ns_match callback
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-07-27 20:36:51 +08:00
Peter van der Perk
9e7e45df76
Evaluate n in preprocessor before masking
2022-07-25 23:47:05 +08:00
Peter van der Perk
ec118743ea
NX style fixes
2022-07-25 23:47:05 +08:00
Peter van der Perk
eae3f77673
Fix wrong comment style
2022-07-25 23:47:05 +08:00
Peter van der Perk
b3590f00b3
NXStyle and preprocessor fixes
...
Co-authored-by: Jari van Ewijk <jari.vanewijk@nxp.com>
2022-07-25 23:47:05 +08:00
Jari van Ewijk
dd1096695d
Add initial support for NXP S32K3 MCU family
...
Co-authored-by: Peter van der Perk <peter.vanderperk@nxp.com>
2022-07-25 23:47:05 +08:00
raiden00pl
8eae3bb5ff
stm32f0l0g0/stm32_spi.c: fix receiving data for half duplex mode
2022-07-25 23:46:33 +08:00
raiden00pl
351c9dc837
stm32f0l0g0/stm32_spi.c: remove unused spi_readbyte function
2022-07-25 23:46:33 +08:00
raiden00pl
af4d65416a
stm32f0l0g0/stm32_spi.c: add missing SPI mode config and fix ifdef
2022-07-25 23:46:33 +08:00
raiden00pl
69986fad84
stm32f0l0g0/hardware/stm32_spi.h: remove unused definitions
2022-07-25 23:46:33 +08:00
raiden00pl
92b676479a
stm32l4/Kconfig: add support for STM32L476JG and STM32L476JE
2022-07-23 16:51:31 -03:00
curuvar
c21c7ac8dc
Added Adafruit QT Py RP2040 board.
...
Added ability to configure indivdual UART, SPI and I2C pin location.
2022-07-23 18:25:38 +08:00
curuvar
421b8ae3e7
Ability to use newer pico-sdk with RP2040 builds (Issue #4919 )
2022-07-23 14:36:52 +08:00
Fotis Panagiotopoulos
ad7f503cfa
sim: Increased priority of loop task.
2022-07-23 00:22:35 +08:00
Jouni Ukkonen
e268b23142
OpenSBI: Add configurable support for domain init
...
Initialize .domains_init function entry point in sbi_platform_operations when
CONFIG_OPENSBI_DOMAINS=y. In this case, the board specific code must provide
the "board_domains_init" function.
Signed-off-by: Jouni Ukkonen <jouni.ukkonen@unikie.com>
2022-07-22 19:00:33 +03:00
ligd
8f54f9e1c3
sim: idle pm should do PM_RESOTRE in critical section
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-07-22 09:06:38 +03:00
Fotis Panagiotopoulos
30f8d33bca
Fixed path calculation in BBS RAM.
2022-07-22 10:59:57 +08:00
ligd
df365008b2
arm_secure_irq: fix NVIC_IRQ_DBGMONITOR un-secure set failed
...
NVIC_DEMCR.SDME is a read-only bit
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-07-22 01:48:55 +03:00
Petro Karashchenko
2291f601ee
arch/arm/samv7: fix SPI 16-bit transactions in DMA mode
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-07-21 23:26:20 +08:00
Abdelatif Guettouche
ae1cbc47ef
esp32&c3/Kconfig: CONFIG_ESP32(C3)_WIRELESS doesn't need to be user
...
selectable.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2022-07-20 22:02:28 +03:00
Abdelatif Guettouche
20c6996e81
esp32c3/Kconfig: Don't select options already selected.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2022-07-20 22:02:28 +03:00
Abdelatif Guettouche
4ccedb176e
arch/esp32: Re-organise shared functions and options for ESP32 Wireless code
...
- Introduce the ESP32_WIFI option to replace the broader
ESP32_WIRELESS option. ESP32_WIRELESS is used by both WIFI and BLE.
- Move common functions from esp32_wifi_adapter to esp32_wireless.
- Change the order of including the external libraries to avoid undefined references.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2022-07-20 22:02:28 +03:00
Abdelatif Guettouche
770147ffe3
arch/esp32: Introduce the ESP32_RTC option.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2022-07-20 22:01:25 +03:00
Masayuki Ishikawa
06b158a490
arch: arm64: Fix warnings in arm64_cpstart.c
...
Summary:
- Fix warnings in arm64_cpstart.c if CONFIG_DEBUG_INFO=n
Impact:
- None
Testing:
- Tested with qemu-a53:nsh_smp
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-07-19 10:49:32 +08:00
Xiang Xiao
2166c98809
Add printflike and scanflike to all printf/scanf like functions
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-18 14:14:36 +03:00
Xiang Xiao
61dff1c125
arch/arm64: Implement up_nputs
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-17 17:31:19 +03:00
Xiang Xiao
aad5fbd2fb
arch: Add up_nputs function to handle the non '\0' string correctly
...
and change up_puts as a simple macro
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-17 17:31:19 +03:00
Michal Lenc
4484d04a8d
samv7: add RX DMA support to serial driver
...
This commit adds RX DMA support to serial driver. The DMA is currently
supported only for USART peripherals, not for UART. It uses two circular
buffers which size can be setup by SAMV7_SERIAL_RXDMA_BUFFER option.
The idle bus interrupt is enabled to ensures data are read even if the
buffer is not yet full. The timeout can be setup by
SAMV7_SERIAL_DMA_TIMEOUT option.
This adds support only for RX transfers.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2022-07-16 15:39:20 +03:00
Michal Lenc
e3e282bd8a
samv7: add DMA API for circular buffers
...
This commit adds functions sam_dmarxsetup_circular() and
sam_dmarxstart_circular() that create API for operating with two or more
circular buffers. This can be used for DMA operation with serial driver
or ADC where ping pong buffers are required to successfully transfer the
data at high speed.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2022-07-16 15:39:20 +03:00
Michal Lenc
89a2b51b96
samv7: add RS-485 mode support to USART driver
...
This commit enhances SAMV7 serial driver with RS-485 mode available to
USART peripherals. The hardware automatically sets RTS pin high when
data are transfered and low then no transfer occurs. Only USART peripherals
support this mode, UART peripherals do not.
This mode can be enabled by configuration option SAMV7_USARTx_RS485MODE.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2022-07-16 15:39:20 +03:00
raiden00pl
8e5e6ab8cb
stm32/Kconfig: stm32_i2s needs SPI_DMA enabled
2022-07-16 11:10:01 +03:00
raiden00pl
a8e7f7742c
stm32f0l0g0/Kconfig: set default n for hidden options
2022-07-16 11:10:01 +03:00
raiden00pl
d307e5a7f5
stm32f0l0g0/Kconfig: hide STM32F0L0G0_SPI_DMA option and select it automatically
2022-07-16 11:10:01 +03:00
raiden00pl
1b45982521
stm32f0l0g0/Kconfig: remove the duplicated SPI DMA section
2022-07-16 11:10:01 +03:00
raiden00pl
e39afbf277
stm32/Kconfig: set default n for hidden options
2022-07-16 11:10:01 +03:00
raiden00pl
12273d0aa9
stm32/Kconfig: hide STM32_SPI_DMA option and select it automatically
2022-07-16 11:10:01 +03:00
raiden00pl
1616edbb81
stm32f7/Kconfig: hide STM32F7_SPI_DMA option and select it automatically
2022-07-16 11:10:01 +03:00
raiden00pl
6aef19617b
stm32h7/Kconfig: hide STM32H7_SPI_DMA option and select it automatically
2022-07-16 11:10:01 +03:00
raiden00pl
cb94579ab7
stm32wl5/Kconfig: hide STM32WL5_SPI_DMA option and select it automatically
2022-07-16 11:10:01 +03:00
raiden00pl
3c0a3dabfc
stm32f0l0g0/SPI: add support for half duplex, simplex rx and simplex tx modes
2022-07-16 02:00:53 +08:00
curuvar
d69d9eb0c9
Added I2C Slave to RP2040
...
Added length to I2C slave callback.
2022-07-16 01:56:52 +08:00
raiden00pl
2428438037
stm32f0l0g0/SPI: fix compilation for DMA enabled
2022-07-15 11:38:36 -03:00
raiden00pl
c7e6366e91
stm32f0l0g0/SPI: enable SPI for STM32G0
2022-07-15 11:38:36 -03:00
raiden00pl
f702c89c33
stm32f0l0g0/SPI: configure DMA support individually for each SPI
2022-07-15 11:38:36 -03:00
raiden00pl
056e11a3e5
stm32f0l0g0/SPI: only SPI1 and SPI2 are present in STM32 M0 devices
2022-07-15 11:38:36 -03:00
raiden00pl
47e29d9402
stm32f0l0g0: remove references to non-existent ADCs, only ADC1 present on STM32 M0/M0+ devices
2022-07-15 11:36:43 -03:00
Masayuki Ishikawa
82cd9b0a4a
arch: arm64: Add stack coloration for SMP
...
Summary:
- This commit adds stack coloration for SMP
Impact:
- None
Testing:
- Tested with qemu-a53:nsh_smp
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-07-15 16:16:02 +08:00