raiden00pl
696d67870a
arch/Kconfig: set ARCH_PERF_EVENTS default to n
...
This is a debugging feature so it should be disabled by default
2023-10-03 12:53:10 +08:00
raiden00pl
917fa624b9
arch/{all stm32 | all nordic | at32}: simplify the enable condition for up_perf_init
2023-10-03 12:53:10 +08:00
Carlos Sanchez
8e80d05fbb
arch/arm/src/stm32h7/stm32_oneshot.c: Fix format warnings.
...
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-10-02 16:41:13 -04:00
Carlos Sanchez
f3576a41f5
arch/arm/src/s32k1xx: Fix warnings in PWM code.
2023-10-02 23:36:37 +08:00
Carlos Sanchez
33cfd630ad
arch/arm/src/s32k1xx: Fix LPUART inversion warnings & config.
2023-10-02 23:36:01 +08:00
raiden00pl
c93c0ecd81
samv7/adc: always increase initialization counter when adc_setup called
2023-10-02 23:34:24 +08:00
raiden00pl
cf4b8dbfa3
imxrt/adc: always increase initialization counter when adc_setup called
2023-10-02 23:34:24 +08:00
raiden00pl
b7fca7ff75
at32/adc: always increase initialization counter when adc_setup called
2023-10-02 23:34:24 +08:00
raiden00pl
577bdbf1fc
stm32{f7}/adc: always increase initialization counter when adc_setup called
2023-10-02 23:34:24 +08:00
Ville Juven
8c6be8e1f3
riscv/addrenv: Fix the user VMA end address
...
The end address was off by 1, making it overflow to 0 (u32 value).
2023-09-29 22:34:40 +08:00
raiden00pl
761bddcab8
arch: add a flag indicating that the chip doesn't support DMA transfer from/to FLASH
2023-09-29 21:04:02 +08:00
raiden00pl
20a65fa21b
arch/nrf{52|53|91}: add support for up_perf
2023-09-29 19:56:21 +08:00
raiden00pl
4ea825ef9e
arch/nrf{52|53|91}: fix timer for small intervals and correct CC overflow check
2023-09-29 18:21:01 +08:00
Petteri Aimonen
76f6d340ee
stm32: Add architecture adjtime() support
...
Based on the samv7 implementation, adjusts systick period.
2023-09-29 13:03:10 +08:00
Xiang Xiao
cb11747f36
arch: add use_data to g_tcbinfo
...
to avoid compiler/linker remove it from the final image
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-29 08:00:18 +03:00
Ville Juven
7b18f5eb6f
risc-v/riscv_addrenv.c: Fix bug where SHM area page tables are not freed
...
The SHM physically backed memory does not belong to the user process,
but the page table containing the mapping does -> delete the page table
memory regardless.
2023-09-28 22:17:55 +08:00
Ville Juven
2cd1fd1145
risc-v/pgalloc.h: Add SHM area to riscv_uservaddr query
...
If the vaddr resides within the user's SHM, it is a user memory mapping.
2023-09-28 22:17:55 +08:00
Ville Juven
9be93addea
mpfs/mpfs_corespi: Several speed optimizations to the FPGA driver
...
This is a collection of tweaks / optimizations to the driver to limit
CPU usage as well as interrupt processing times.
The changes are as follows:
- setfrequency is now no-op if the frequency does not change. Accessing
MPFS_SPI_CONTROL requires synchronization to the FIC domain, which
takes unnecessary time if nothing changes
- load/unload FIFO loops optimized so !buffer, priv->nbits and i==last are
only tested once (instead of for every word written in loop).
- Disable the RX interrupt only once (again, FIC domain access is slow)
- In case a spurious MPFS_SPI_DATA_RX interrupt arrives, just wipe the
whole RX FIFO, instead of trying to read it byte-by-byte
2023-09-28 09:36:07 +08:00
Eren Terzioglu
ded321a515
xtensa/esp32s2: Add support to TWAI/CANBus controller
2023-09-28 09:35:08 +08:00
TimJTi
fc76b9955c
Sort XDMA support for SAMA5D2 ADC&TSD
2023-09-28 09:33:35 +08:00
Daniel P. Carvalho
e45e932a8a
Adds low level operations to start and stop DMA.
2023-09-28 09:32:52 +08:00
TimJTi
7c4349fa9c
TSD behaviour incorrect if ADC software trigger set. Pressure scaling wrong.
2023-09-27 00:15:20 +08:00
Petteri Aimonen
d68c8ec560
stm32_eth: Fix excessively long critical section in ifdown handler
...
stm32_ifdown() holds critical section when calling stm32_ethreset().
That function used to call up_mdelay(10) while waiting for the ethernet
peripheral reset to complete. This resulted in excessively long
critical section time with interrupts disabled.
The actual expected delay is a few clock ticks of the 50 MHz clock domain.
This commit changes polling interval to 1us and maximum to 10us.
2023-09-26 22:13:24 +08:00
Xiang Xiao
167c4ae2a4
arch/arm: Fix error: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'uint32_t' {aka 'long unsigned int'}
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-26 15:03:59 +08:00
Xiang Xiao
1edcea3997
arch/Kconfig: Add prompt string to ARCH_CHIP_CUSTOM
...
so the user could enable it from defconfig
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-25 23:02:37 +08:00
raiden00pl
ade23b92d1
arch/{nrf52|nrf53}/pwm: fix compilation for MULTICHAN not set
2023-09-24 10:32:29 +08:00
makejian
cb3abc48d7
crypto/cryptodev: expansion hash operation
...
(1) remove size restriction for single hash operation
(2) support hash operation to update uint32_t data
Signed-off-by: makejian <makejian@xiaomi.com>
2023-09-24 03:49:33 +08:00
yinshengkai
4f25c287d2
arch/sim: add sim uart_ram support
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-09-23 15:22:42 +08:00
wanggang26
d827ee5ffc
refine: set file mode when oflags contains O_CREAT
...
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2023-09-23 15:20:51 +08:00
wangming9
029bbf6bbd
arch/arm: Enable FPU on qemu and goldfish platforms
...
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2023-09-23 08:42:00 +02:00
yintao
da7d6ef37b
sim_rptun: unlink shm when quit
...
if not unlink shm, the shared memory object still exists in host /dev/shm after quit
if nuttx is started with administrator privileges, or if it is restarted with user
privileges, there will be a problem with the permission to open this shm file
Signed-off-by: yintao <yintao@xiaomi.com>
2023-09-23 08:39:38 +02:00
laoniaokkk
4256dd934f
Fix onchip flash erase fail
2023-09-23 12:36:11 +08:00
wanggang26
7f5e6bd383
hostfs: mask bit fields of not support
...
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2023-09-23 05:28:57 +09:00
raiden00pl
8833501084
arch/stm32h7/dualcore: don't use stm32_hsem interface for cores synchronisation
...
stm32_hsem functions can use debug messages but cores synchronisation is done when
the OS is not yet fully initialized
2023-09-22 19:46:26 +08:00
raiden00pl
0e01836f09
serial: add an option that selects uart rpmsg as console
2023-09-22 19:46:26 +08:00
wanggang26
e930476b4b
enable O_CLOEXEC explicit
...
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2023-09-22 13:51:00 +08:00
simbit18
4f985f4367
Fix Kconfig style
...
Remove spaces from Kconfig
Add comments
2023-09-22 00:35:48 +08:00
raiden00pl
4c9c0c8be2
debug: add support for IPC (interprocessor communication) debug messages
2023-09-22 00:02:51 +08:00
simbit18
34bb0b6544
Fix nuttx coding style
...
Remove TABs
Remove spaces
Fix indentation
2023-09-21 10:03:13 -04:00
raiden00pl
dafa4e4413
arch/nrf{52|53|91}/serial: fix serial registration when ther is no console on serial
2023-09-21 20:31:03 +08:00
raiden00pl
f0155b9099
arch/nrf{52|53|91}/serial: fix warning if HAVE_UART_CONSOLE not defined
...
warning: control reaches end of non-void function [-Wreturn-type]
2023-09-21 20:31:03 +08:00
raiden00pl
3e79d21100
arch/arm: fix undefined reference to arm_serialinit when RTT console used
2023-09-21 20:30:27 +08:00
TimJTi
b406a30398
Fix historic %08x style printf format warnings
2023-09-21 09:04:07 +08:00
TimJTi
42093bbd54
Fix printf format warnings
2023-09-21 09:03:47 +08:00
Eero Nurkkala
8f5a6930e8
riscv/riscv_pmp.c: fix broken TOR checks
...
PMPCFG_A_TOR region may have zero size. The pmp configuration
currently fails for zero-sized TOR. This patch bypasses such a
restriction.
Also replace log2ceil with LOG2_CEIL from lib/math32.h.
Signed-off-by: Eero Nurkkala <eero.nurkkala@offcode.fi>
2023-09-21 01:10:49 +08:00
ThomasNS
a2c806027f
fix led panic feature
2023-09-21 00:35:12 +08:00
zhangyuan21
f47991e34d
arch/arm64: select ARCH_HAVE_IRQTRIGGER for all arm64 chip
...
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-09-20 20:52:03 +08:00
Michal Lenc
c5209e6189
samv7: add support for one wire driver over UART/USART
...
This commit adds support for 1 wire interface over serial driver. SAMv7
MCU does not have build in one wire support therefore external hardware
still has to be used (connection of RX/TX for example).
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-09-20 17:27:26 +08:00
Michal Lenc
2e08750daf
samv7: rework U(S)ART config option to allow more driver configurations
...
UART/USART peripheral can be used for more than just standard serial
driver. It can for example be used for 1 wire interface communication
(with external circuitry added). This changes the Kconfig for SAMv7 to
allow future implementation of these drivers. Now user can select
what kind of a driver he wants on UART/USART (serial or something else).
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-09-20 17:27:26 +08:00
Huang Qi
ac5e99d330
espressif: Force cast param in libc stubs
...
Fix:
```
chip/esp_libc_stubs.c: In function '__retarget_lock_init':
Error: chip/esp_libc_stubs.c:246:14: error: passing argument 1 of '_lock_init' from incompatible pointer type [-Werror=incompatible-pointer-types]
246 | _lock_init(lock);
| ^~~~
| |
| struct __lock **
chip/esp_libc_stubs.c:181:26: note: expected 'int *' but argument is of type 'struct __lock **'
181 | void _lock_init(_lock_t *lock)
| ^
chip/esp_libc_stubs.c: In function '__retarget_lock_init_recursive':
Error: chip/esp_libc_stubs.c:251:24: error: passing argument 1 of '_lock_init_recursive' from incompatible pointer type [-Werror=incompatible-pointer-types]
251 | _lock_init_recursive(lock);
| ^~~~
| |
| struct __lock **
chip/esp_libc_stubs.c:187:36: note: expected 'int *' but argument is of type 'struct __lock **'
187 | void _lock_init_recursive(_lock_t *lock)
| ^
chip/esp_libc_stubs.c: In function '__retarget_lock_close':
Error: chip/esp_libc_stubs.c:256:15: error: passing argument 1 of '_lock_close' from incompatible pointer type [-Werror=incompatible-pointer-types]
256 | _lock_close(&lock);
| ^~~~~
| |
| struct __lock **
chip/esp_libc_stubs.c:193:27: note: expected 'int *' but argument is of type 'struct __lock **'
193 | void _lock_close(_lock_t *lock)
```
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-09-20 17:04:56 +08:00