rajvinder kaur
2b30f17607
stm32h7: socket CAN error handling.
2023-01-30 11:22:49 +08:00
chao an
82520c0006
arm/itm_syslog: remove invaild select config
...
1. CONFIG_SYSLOG has been removed by Nutt on below commit:
| commit c5ac473bc0
| Author: Gregory Nutt <gnutt@nuttx.org>
| Date: Tue Jun 21 07:58:42 2016 -0600
|
| SYSLOG: Remove an obsolete, unused configuration item from Kconfig file
2. Fix comile warning
| armv7-m/arm_itm_syslog.c: In function 'itm_syslog_initialize':
| armv7-m/arm_itm_syslog.c:183:18: warning: passing argument 1 of 'syslog_channel' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
| 183 | syslog_channel(&g_itm_channel);
| | ^~~~~~~~~~~~~~
| In file included from armv7-m/arm_itm_syslog.c:29:
| nuttx/syslog/syslog.h:155:49: note: expected 'struct syslog_channel_s *' but argument is of type 'const struct syslog_channel_s *'
| 155 | int syslog_channel(FAR struct syslog_channel_s *channel);
| |
Signed-off-by: chao an <anchao@xiaomi.com>
2023-01-29 19:54:55 +08:00
zhangyuan21
e6d2f0623a
backtrace: use CURRENT_REGS when in interrupt context
...
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-01-29 02:48:00 -08:00
Jukka Laitinen
7d54d04613
arch/arm/src/stm32f7/stm32_i2c.c: Round up stm32_i2c_toticks return value
...
When sending small number of bytes with larger CONFIG_USEC_PER_TICK
this function should return at least 1. Solve this by rounding
up the result.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2023-01-28 12:11:33 -03:00
Xiang Xiao
964a41283c
arm/tlsr82: Fix warning: "IC_TAG_CACHE_ADDR_EQU_EN" is not defined
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-28 11:30:33 -03:00
Ville Juven
42d0e356c2
arch/addrenv: Change group_addrenv_t to arch_addrenv_t
...
This is preparation for moving address environments out of the group
structure into the tcb.
Why move ? Because the group is destroyed very early in the exit phase,
but the MMU mappings are needed until the context switch to the next
process is complete. Otherwise the MMU will lose its mappings and the
system will crash.
2023-01-27 23:17:01 +08:00
Max Kriegleder
8c465a64b9
stm32h7: add lower half timer driver
2023-01-27 13:29:10 +08:00
chao an
931a4f6969
arch/EXTRA_LIBS: link all staging library
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-01-27 01:08:26 +02:00
chao an
d031989e0e
arch/arm: make DSP arch extension configurable
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-01-26 22:39:30 +02:00
Ville Juven
686b990a85
arch/ARCH_KERNEL_STACK: Fix signal handling with kernel stack
...
There were two issues with signal handling:
- With a kernel stack the "info" parameter was passed from kernel memory.
This is fixed by making a stack frame to the user stack and copying it
there.
- If the signal handler uses a system call, the kernel stack was completely
and unconditionally destroyed, resulting in a crash in the user application
There is also no need to check ustkptr, it is always NULL. Why ? Because
signal delivery is deferred when a system call is being executed.
2023-01-26 20:41:42 +08:00
Petro Karashchenko
a58e73add8
arch/arm/tiva: simplify TIVA_CAN option usage
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-26 10:26:09 +08:00
Petro Karashchenko
bd7cb522a1
nuttx: use TABs instead of spaces in Kconfig files
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-26 10:26:09 +08:00
Petro Karashchenko
f952b8456c
assert: switch from ASSERT(0/false) to PANIC
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-26 10:15:34 +08:00
Michael Jung
eaea60a575
armv8-m: Fix pthread_start syscall
...
The 'arg' parameter is in R3, not in R2.
Signed-off-by: Michael Jung <michael.jung@secore.ly>
2023-01-26 04:02:19 +08:00
Petro Karashchenko
be10056702
arch/arm/samv7: fix issue when AFEC1 driver failed to open second time
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-26 01:26:41 +08:00
Xiang Xiao
43e7b13697
assert: Log the assertion expression in case of fail
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-24 15:00:19 -03:00
David Sidrane
15462f3e7a
s32k1xx:serial Do not use TC use TDRE & TIE
2023-01-24 06:47:21 +08:00
raiden00pl
aa7d4b40c1
stm32/foc: move the warning in the right place - should be in stm32f7
2023-01-24 00:44:41 +08:00
raiden00pl
bfdb7f8909
stm32f7,stm32/foc: support for BEMF sensing
...
stm32 version tested with b-g431b-esc1
stm32f7 version not tested on HW
2023-01-22 12:58:04 -03:00
raiden00pl
01d84408e6
stm32,stm32f7/adc: add interface to configure multi mode ADC
2023-01-22 12:58:04 -03:00
raiden00pl
f3fde0e9a8
stm32,stm32f7/foc: improve pwm_off
2023-01-22 12:58:04 -03:00
raiden00pl
bd6a0b08db
stm32,stm32f7/foc: support for pwm_off()
2023-01-21 12:28:16 +08:00
raiden00pl
91d43edffd
drivers/foc: support for BEMF sensing
2023-01-20 21:26:27 +02:00
Xiang Xiao
fd64e38072
build: Add STACK_USAGE(-fstack-usage) to assist the stack analysis
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-19 10:35:20 -03:00
David
5dbd082fad
Bugfix of typo in tiva_can.c
2023-01-18 12:15:53 +01:00
Ville Juven
201a55c7cb
arm/addrenv_utils: Don't touch L1 mappings in addrenv_destroy()
...
This is unnecessary, the address environment is getting wiped anyway,
there is no need to remove the L1 references because they will get
wiped when the page directory is changed
2023-01-18 11:02:19 +08:00
luoyong1
a32124879d
arch/arm/src/armv7-a/r: fix kconfig error of l2 cache latency
...
fix the error of the config name and set latency config param bool to int
Signed-off-by: luoyong1 <luoyong1@xiaomi.com>
2023-01-17 12:45:42 +09:00
Xiang Xiao
62c5afe655
Fix warning in file included from chip/sam_clockconfig.c:34:
...
chip/sam_clockconfig.c: In function 'sam_usbclockconfig':
Error: /github/workspace/sources/nuttx/arch/arm/src/common/arm_internal.h:135:51: error: 'regval' is used uninitialized [-Werror=uninitialized]
135 | #define putreg32(v,a) (*(volatile uint32_t *)(a) = (v))
| ^
chip/sam_clockconfig.c:422:12: note: 'regval' was declared here
422 | uint32_t regval;
| ^~~~~~
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-16 18:59:44 -03:00
Xiang Xiao
f64da13e9b
libxx: Add CXX_STANDARD to select -std=c++??
...
and default to "c++17"
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-16 15:41:57 +02:00
TimJTi
6b4da4ad6e
Ensure SFR CKTRIM register correctly set, SAMA5D2/D3 only
2023-01-16 21:40:00 +08:00
zhangyuan21
806a2a8b8d
arch/armv7-ar: flush dcache when addr is not aligned with cache line
...
When invalidate address is not aligned with cache line,
must align address and flush the cache line.
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-01-16 16:14:32 +08:00
zhangyuan21
4bb155db64
arch/arm: add barrier instruction for cache ops
...
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-01-16 16:14:32 +08:00
Xiang Xiao
f783f5c384
arch/arm: Fix typo error in cp15_cacheops.h
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-16 16:14:32 +08:00
Xiang Xiao
1ea9db4ebe
Fix error: implicit declaration of function 'cp15_invalidate_icache'; did you mean 'cp15_invalidate_dcache'?
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-16 16:14:32 +08:00
chenrun1
c61195bcc9
arch/armv7-a & armv7-r:Add invalidate icache behavior
...
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-01-16 16:14:32 +08:00
ligd
7e4c5d3daa
armv7a/r: cache function should depends on CONFIG_ARCH_XCACHE
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2023-01-16 16:14:32 +08:00
Julian Oes
22fa59074f
stm32h7: add SMPS PWR option for STM32H7X7
...
The dual core STM32H747 / STM32H757 there is an additional option to
select SMPS rather than LDO as the power selection.
This commit adds this option to the STM32H747 config and the
stm32h7x7xx source.
Signed-off-by: Julian Oes <julian@oes.ch>
2023-01-16 13:31:23 +08:00
zhangyuan21
fc623949a3
arch/arm: move hard code macro to kconfig
...
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-01-16 13:31:04 +08:00
luoyong1
6975bbb38d
arch/arm/src: add pl310 l2cache's kconfig for latency
...
Signed-off-by: luoyong1 <luoyong1@xiaomi.com>
2023-01-16 13:31:04 +08:00
Jukka Laitinen
f9c8b4015f
Revert "arch: Don't free the context if the reference doesn't equal zero"
...
struct stm32_i2c_inst_s instance is allocated on every call to
stm32_i2cbus_initialize, and that instance is supposed to be deleted on every
call to stm32_i2cbus_uninitialize.
The "refs" counter just keeps track on when the last one is deleted, and
everything is unregisterd/disabled.
This reverts commit 8098c80338
.
2023-01-15 19:52:05 +08:00
Janne Rosberg
246a677045
sama5/sam_flexcom_spi: enable DMA support
2023-01-14 13:40:14 +08:00
Janne Rosberg
f6d164bf9d
sama5/dmac: add defines for ATSAMA5D2
...
This allows xdma to be used on SAMA5D2x chips
2023-01-14 13:40:14 +08:00
Petro Karashchenko
45ed6f657c
arch/arm/cxd56xx: do not clear enabled callback event on card insertion
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-13 12:18:36 +08:00
Jukka Laitinen
70de321de3
arch/Kconfig: remove virtual memory allocator dependency from MM_SHM
...
The dependency should be vice versa; the MM_SHM should depend on the
existence of the virtual memory range allocator.
Create a new CONFIG flag CONFIG_ARCH_VMA_MAPPING, which will define that
there is a virtual memory range allocator. Make MM_SHM select that flag
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2023-01-13 02:20:13 +08:00
raiden00pl
88dd705d27
stm32/stm32f7 CANv1: protect TX buffer during CAN error frame generation
...
Follow up to eb240e0
(PR #8060 )
2023-01-11 01:53:49 +08:00
Carlos Sanchez
eb240e014c
stm32: protect TX buffer during CAN error frame generation.
2023-01-10 13:33:35 +08:00
Petro Karashchenko
5f92c62874
boards/cxd56xx/spresense: add fs automount driver for SD Card
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-10 10:39:23 +09:00
Carlos Sanchez
78248183aa
s32k1xx: reserve MSG_DATA extra space only when needed by config.
2023-01-09 21:06:56 +02:00
Carlos Sanchez
3c6d45fa99
s32k1xx: avoid buffer overflow when CAN time is used for non-FD CAN.
...
s32k1xx: fix initialization of MAXMB field in MCR.
2023-01-09 21:06:56 +02:00
Sergey Nikitenko
e0f99d93ac
stm32wb: add i2c driver
2023-01-09 09:27:17 +08:00