Petro Karashchenko
b107e4f417
nuttx: unify MIN, MAX and ABS macro definition across the code
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-12-21 09:31:28 +08:00
Xiang Xiao
fd0d6a9bf5
compiler.h: Add _ between format|printf|syslog|scanf|strftime and like
...
align with other macro naming style
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-21 01:05:19 +02:00
TimJTi
bc9b476d55
Update sam_mcan.c
2022-12-20 19:49:13 -03:00
ligd
886df37569
sim/fb: remove the lpwork in fb & lcd, merge to looper task
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-12-21 01:43:37 +08:00
zouboan
60c0184b76
A64/irq.h: Add irq definition of Allwinner A64 interrupts
2022-12-20 23:34:23 +08:00
ligd
2dbfd8e798
sim_uart: fix printf error when use irq mode
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-12-20 18:01:54 +08:00
dongjiuzhu1
eb102a668f
sim/uart: check if txbuffer is not full before uart write
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-12-20 18:01:54 +08:00
David Sidrane
4fa163ade7
s32k3xx:EDMA fix git count
2022-12-20 18:01:21 +08:00
Peter Bee
9f537d7a3f
sim/video: fix hang when user temporarily blocks
...
host_set_fmt should not return error when EBUSY
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2022-12-20 17:00:44 +08:00
Peter Bee
a897fe3005
sim/video: rename dq_buf to dqbuf
...
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2022-12-20 17:00:44 +08:00
David Sidrane
d33475d2d4
s32k3xx:Serial add DMA
2022-12-20 13:28:54 +08:00
ligd
f2de1ce930
sim/alsa: don't let siwtch out when open alsa mixer
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-12-20 13:28:19 +08:00
ligd
c74627cbec
sim/head: don't let switch out when do poweroff
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-12-20 13:28:19 +08:00
TimJTi
e6bfaa14ee
SAMA5D2 add Flexcom SPI
...
Flexcom working, DMA not looked at for SAMA5D2
Update sam_flexcom_spi.c
Update sam_flexcom_spi.h
Update sam_config.h
Update hardware/sam_flexcom_spi.h
pkarashchenko reviews
SAMA5 serial and flexcom serial corrections
2022-12-20 12:20:28 +08:00
David Sidrane
e89e7eab8d
s32k1xx:serial:Fix selection of RTS to iflow
2022-12-20 01:51:10 +08:00
David Sidrane
033adeced4
imxrt:serial:Fix selection of RTS to iflow
2022-12-20 01:50:57 +08:00
Lee Lup Yuen
377477a948
arm64/a64: Add driver for TCON0
...
This PR adds the driver for TCON0 (Timing Controller) on Allwinner A64 SoC. The TCON0 Driver will be used by the upcoming Display Driver for PINE64 PinePhone.
`arch/arm64/src/a64/Kconfig`: Added the Kconfig option for "A64 Peripheral Selection > TCON0" (`CONFIG_A64_TCON0`), which enables the TCON0 Driver
`arch/arm64/src/a64/hardware/a64_memorymap.h`: Added the Base Address for TCON0
`arch/arm64/src/a64/Make.defs`: Added the TCON0 Driver to the Makefile
`arch/arm64/src/a64/a64_tcon0.c`, `a64_tcon0.h`: TCON0 Driver for Allwinner A64
`platforms/arm/a64/boards/pinephone/index.rst`: Added TCON0 as supported peripheral for PinePhone
2022-12-19 20:10:54 +08:00
Peter van der Perk
b5fd0b2381
S32K3XX MR-CANHUBK3 Add protected knsh support
2022-12-19 20:10:34 +08:00
Xiang Xiao
6e66603da5
arch/sim: Disable interrupt in up_interrupt_context for SMP
...
like other arch to fix the race condition
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-17 18:03:27 +02:00
Xiang Xiao
07758d9b58
arch/sim: Rename sim_interruptcontext.c to sim_doirq.c
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-17 18:03:27 +02:00
Xiang Xiao
1905a02ddf
arch/sim: Change up_interrupt_context to inline function like arm
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-17 18:03:27 +02:00
Xiang Xiao
b6f1be8e03
arch/sim: Move up_nputs to sim_uart.c
...
and remove arch/sim/src/sim/sim_nputs.c
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-17 18:03:27 +02:00
Xiang Xiao
86c692f7a7
arch/sim: Move sim_macho_init.c to posix folder
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-17 18:03:27 +02:00
Xiang Xiao
87f3681629
arch/sim: Remove arch/sim/src/sim/sim_romgetc.c
...
since it's no sense to support it on sim platform
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-17 18:03:27 +02:00
GD32-MCU
659bd495b0
Add i2c driver for gd32f450 MCU
2022-12-17 17:12:26 +08:00
Petro Karashchenko
cc0ee12092
arch/arm/samv7: add ARCH_RAMVECTORS support
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-12-17 13:57:03 +08:00
Petro Karashchenko
e28e4fd320
arch/arm: fix typos in start files
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-12-17 13:56:17 +08:00
TimJTi
ad33ccfa53
SAMA5 serial and flexcom serial corrections
2022-12-17 01:09:43 +02:00
Xiang Xiao
7e75c475d4
arch/sim: Move '\n' process from tty_send to up_putc
...
to avoid this special process happen twice
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-17 01:04:15 +02:00
Xiang Xiao
4b3ea5b052
arch/sim: Don't need check isconsole in tty_setup and tty_shutdown
...
since serial framework never call these callbacks in case of console
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-17 01:04:15 +02:00
Xiang Xiao
d5689e070b
net/arp: Remove nuttx/net/arp.h
...
1.move ARPHRD_ETHER to netinet/arp.h
1.move arp_entry_s to net/arp/arp.h
2.move arp_input to nuttx/net/netdev.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-16 22:10:59 +02:00
zhangyuan21
453a1a7332
arch: move stack and task dump to common code
...
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2022-12-17 01:59:35 +08:00
Gustavo Henrique Nihei
7114cc2978
risc-v/esp32c3: Revert aes_cypher name change introduced in #6920
...
"aes_cypher" is a function from NuttX crypto, so better use instead of
defining a new interface in the driver.
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-12-16 16:19:47 +02:00
zhangyuan21
632d87ee71
arch: remove up_release_pending function
...
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2022-12-16 21:29:57 +08:00
Peter van der Perk
19ca5ecbb0
Fix S32K1XX PM which was broken by #7869
2022-12-16 20:37:47 +08:00
Peter Bee
aeed8f5d26
include/nuttx/video: remove validate_buf
...
Removing validate_buf since it's only locally called in driver
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2022-12-16 17:03:35 +08:00
Peter Bee
71c34d6391
sim/video: call validate_buf when set_buf
...
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2022-12-16 17:03:35 +08:00
Lucas Saavedra Vaz
077c790830
arch: Make REG_[GET/SET]_FIELD thread safe for ESP SOCs
2022-12-16 13:32:43 +08:00
David Sidrane
707ac4b8f6
s32k1xx:Apply style changes from code review
...
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-12-16 01:06:12 +08:00
David Sidrane
75baa5b932
s32k1xx:LPSPI use DMA
2022-12-16 01:06:12 +08:00
David Sidrane
89f99dceed
s32ke3xx:EDMA Usage Clean up
2022-12-15 22:21:32 +08:00
David Sidrane
df4eb4896d
s32k3xx:LPSPI register usage cleanup
2022-12-15 22:21:32 +08:00
Petro Karashchenko
949a0d6032
arch/arm: remove FAR from ARM files
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-12-15 11:38:17 +08:00
Petro Karashchenko
e9fe00c573
arch/renesas: remove FAR and apply formatting
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-12-15 11:38:17 +08:00
Almir Okato
8f3c425067
xtensa/esp32s3: Enable booting from MCUboot bootloader
...
Add support for booting from MCUboot bootloader on ESP32-S3.
Signed-off-by: Almir Okato <almir.okato@espressif.com>
2022-12-15 00:42:13 +08:00
Peter van der Perk
d172d8cd0f
S32K FlexCAN don't use a blocking wait in tx avail
2022-12-14 10:45:43 -05:00
Lucas Saavedra Vaz
773e3fad43
arch/xtensa/esp32: Add initial support for touch pad polling
2022-12-14 22:38:10 +08:00
Lucas Saavedra Vaz
b8ef8daef9
arch/xtensa/esp32: Add missing macros to iomux
2022-12-14 22:38:10 +08:00
Lucas Saavedra Vaz
2280b33eea
arch/xtensa/esp32: Add functions to get RTC clock
2022-12-14 22:38:10 +08:00
Lucas Saavedra Vaz
f9a9512d3c
arch/xtensa/esp32: Fix typo in SENS registers
2022-12-14 22:38:10 +08:00