Xiang Xiao
dfa0283d83
spinlock: Rename spin_islocked to spin_is_locked
...
align with Linux naming style
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-10-06 20:03:19 -04:00
fengsi
7248b728bf
UART needs to be disabled before changing setup
2023-10-06 20:49:26 +08:00
ThomasNS
2ffb72917d
The character U+ff0c "," could be confused with the ASCII character U+002c ",", which is more common in source code.
2023-10-03 16:53:12 -04: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
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
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
raiden00pl
ade23b92d1
arch/{nrf52|nrf53}/pwm: fix compilation for MULTICHAN not set
2023-09-24 10:32:29 +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
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
ThomasNS
a2c806027f
fix led panic feature
2023-09-21 00:35:12 +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
SPRESENSE
104dfb983d
arch: cxd56xx: Return error for RTC alarm setting before initialization
...
Return EBUSY error for alarm setting before completion of RTC initialization.
2023-09-20 11:50:07 +03:00
xiao
1487aa267e
add Artery at32
...
check nxstyle
check nxstyle
2023-09-20 02:07:55 +08:00
Simon Filgis
8853e72502
add phy bordinit functionality
...
on boardlevel one can do reset, cable-check, diagnostics, check link
quality and more on every link up
2023-09-19 02:41:55 +08:00
chao an
5026a96cfa
nxstyle: cleanup UTF-8 Unicode to ASCII
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-09-18 11:54:17 -04:00
Xiang Xiao
8dbe86084e
Remove FAR from source code under 32bit arch and board
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-16 19:12:13 +03:00
chao an
9f049b47bf
backtrace/unwind: add more unwind instruction support
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-09-16 19:51:17 +08:00
chao an
b52070a70e
unwinder: fix unwind abort for uleb128 case
...
When unwind instruction is 0xb2,the subsequent instructions
are uleb128 bytes.
For now,it uses only the first uleb128 byte in code.
For vsp increments of 0x204~0x400,use one uleb128 byte like below:
0xc06a00e4 <unwind_test_work>: 0x80b27fac
Compact model index: 0
0xb2 0x7f vsp = vsp + 1024
0xac pop {r4, r5, r6, r7, r8, r14}
For vsp increments larger than 0x400,use two uleb128 bytes like below:
0xc06a00e4 <unwind_test_work>: @0xc0cc9e0c
Compact model index: 1
0xb2 0x81 0x01 vsp = vsp + 1032
0xac pop {r4, r5, r6, r7, r8, r14}
The unwind works well since the decoded uleb128 byte is also 0x81.
For vsp increments larger than 0x600,use two uleb128 bytes like below:
0xc06a00e4 <unwind_test_work>: @0xc0cc9e0c
Compact model index: 1
0xb2 0x81 0x02 vsp = vsp + 1544
0xac pop {r4, r5, r6, r7, r8, r14}
In this case,the decoded uleb128 result is 0x101(vsp=0x204+(0x101<<2)).
While the uleb128 used in code is 0x81(vsp=0x204+(0x81<<2)).
The unwind aborts at this frame since it gets incorrect vsp.
To fix this, add uleb128 decode to cover all the above case.
Signed-off-by: chao an <anchao@xiaomi.com>
2023-09-16 19:51:17 +08:00
Petro Karashchenko
69b6a1f09c
arch/arm[64]: fix nxstyle issues
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-09-16 14:17:47 +08:00
Petro Karashchenko
dbc37a0165
nuttx: fix nxstyle issues
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-09-16 14:17:47 +08:00
Petro Karashchenko
88c1a55efd
arch/arm/samv7: fix print specifiers issues
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-09-16 14:17:47 +08:00