Xiang Xiao
4d56ef5d8c
arch/armv7-a: Support the big endian in arm_pghead.S like arm_head.S
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-19 14:42:22 -03:00
Xiang Xiao
4abd626288
arch/armv7-r: Remove the nonexistent SCTLR_IE
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-19 14:42:22 -03:00
raiden00pl
04a66d2d3a
arch/stm32g4: fix ADC clock after ef517ed
2022-11-17 19:53:53 +08:00
raiden00pl
f22ef83cd6
arch/stm32f3: fix ADC clock after ef517ed
2022-11-17 19:53:53 +08:00
raiden00pl
b239985037
stm32f30xxx_rcc.c: remove code that refers to STM32F1 specific definitions
2022-11-17 19:53:53 +08:00
qinwei1
8021dfece6
sched/task/task_getpid: getpid should return process id not thread id
...
Summary:
implement the right semantics:
1. getpid should return the main thread id
2. gettid should return the current thread id
Refer to:
https://github.com/apache/incubator-nuttx/issues/2499
https://github.com/apache/incubator-nuttx/pull/2518
Signed-off-by: qinwei1 <qinwei1@xiaomi.com>
2022-11-17 17:58:08 +08:00
Xiang Xiao
e047ca6011
Fix arch/arm/src/samv7/sam_pwm.c:489:1: error: Missing blank line after comment
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-16 14:37:44 -03:00
Simon Filgis
6376d90c3d
In case of SAMV7 it is possible to overwrite the pwm output with 0 or 1 immediately. Changing the dutycycle to 0 or 100 will take effect only on end of cycle, which could be to late for some applications.
...
This solution adds a overwrite flag and value when updating the duty cycle.
2022-11-16 12:07:09 +08:00
David Sidrane
97930ab110
imxrt:Fix Case ENET_MMFR_OP_RdNOTMII->ENET_MMFR_OP_RDNOTMII
2022-11-15 02:27:35 +08:00
David Sidrane
d05a5d16ee
imxrt:Support TJ1103 PHY
2022-11-15 02:27:35 +08:00
Xiang Xiao
93fe5a3d0d
arch/stm32/1wire: Don't free the context if the reference doesn't equal zero
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-14 11:40:08 -03:00
Xiang Xiao
8a8e115623
arch: Initialize usbhost_connection_s directly
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-14 09:34:04 +09:00
Xiang Xiao
148c544759
Don't check nxsem_init and nxmutex_init
...
since both never fail
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-14 09:34:04 +09:00
Xiang Xiao
8098c80338
arch: Don't free the context if the reference doesn't equal zero
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-14 09:34:04 +09:00
Xiang Xiao
67686c231a
Call nxmutex_destroy and nxsem_destroy in error patch to avoid the leak
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-14 09:34:04 +09:00
Xiang Xiao
a026dbaece
Call kmm_zalloc instead of kmm_malloc and memsest
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-14 09:34:04 +09:00
Xiang Xiao
a8a25cb09f
arch: Remove xxx_sem[take|give] and call nxmuex_[lock|unlock] directly
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-14 09:34:04 +09:00
anjiahao
a4563b8744
Fix the coding style and typo issue
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-14 09:34:04 +09:00
anjiahao
d07792a343
Initialize global mutext/sem by NXMUTEX_INITIALIZER and SEM_INITIALIZER
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-14 09:34:04 +09:00
Xiang Xiao
c741b7b586
Fix Error: chip/sam_tc.c:922:30: error: format specifies type 'long' but the argument has type 'uint32_t' (aka 'unsigned int') [-Werror,-Wformat]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-13 22:35:19 +08:00
Xiang Xiao
677932293b
Fix Error: chip/sam_afec.c:546:22: error: format specifies type 'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int') [-Werror,-Wformat]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-13 22:35:19 +08:00
Xiang Xiao
94655e95ea
Fix chip/sam_serial.c:900:20: error: unused function 'sam_restoreusartint' [-Werror,-Wunused-function]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-13 22:35:19 +08:00
Xiang Xiao
7e823fc862
Fix chip/sam_usb.c:1242:12: error: variable 'packetsize' set but not used [-Werror,-Wunused-but-set-variable]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-13 22:35:19 +08:00
Xiang Xiao
e0f1c41695
Fix Error: chip/s32k1xx_lpspi.c:581:9: error: unused function 's32k1xx_lpspi_[write|read]byte'
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-13 22:35:19 +08:00
Xiang Xiao
0f85cf7503
Fix Error: chip/max32660/max32660_serial.c:304:20: error: unused function 'max326_modifyreg' [-Werror,-Wunused-function]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-13 22:35:19 +08:00
Xiang Xiao
29c46d8734
Fix Error: armv8-m/arm_cache.c:93:24: error: unused function 'arm_clz' [-Werror,-Wunused-function]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-13 22:35:19 +08:00
Xiang Xiao
492da4d56d
Fix Error: chip/nuc_timerisr.c:105:20: error: unused function 'nuc_unlock' [-Werror,-Wunused-function]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-13 22:35:19 +08:00
Xiang Xiao
fb618666f6
Fix Error: chip/nuc_serial.c:357:20: error: unused function 'up_restoreuartint' [-Werror,-Wunused-function]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-13 22:35:19 +08:00
Xiang Xiao
c6873ff5a2
Fix Error: chip/rp2040_cyw43439.c:844:46: error: format specifies type 'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int') [-Werror,-Wformat]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-13 22:35:19 +08:00
Xiang Xiao
9f685435d0
Fix Error: chip/rp2040_clock.c:148:19: error: invalid instruction
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-13 22:35:19 +08:00
Xiang Xiao
ba286e3824
Fix Error: format specifies type 'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int') [-Werror,-Wformat]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-13 22:35:19 +08:00
Xiang Xiao
d05d5e4915
Fix Error: chip/s32k1xx_lpi2c.c:1226:1: error: unused function 's32k1xx_lpi2c_getenabledints' [-Werror,-Wunused-function]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-13 22:35:19 +08:00
Xiang Xiao
6b5ce2f4d0
Fix Error: chip/s32k1xx_lpi2c.c:644:1: error: unused function 's32k1xx_lpi2c_sem_waitstop' [-Werror,-Wunused-function]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-13 22:35:19 +08:00
Xiang Xiao
e221cf6f5e
Fix Error: chip/s32k1xx_lpspi.c:804:12: error: variable 'best_delay' set but not used [-Werror,-Wunused-but-set-variable]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-13 22:35:19 +08:00
Xiang Xiao
2670229cb9
Fix Error: chip/sam_udp.c:2805:1: error: unused function 'sam_ep_reserved' [-Werror,-Wunused-function]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-13 22:35:19 +08:00
Xiang Xiao
0dd1dbe871
Error: chip/lpc54_serial.c:900:20: error: unused function 'lpc54_modifyreg' [-Werror,-Wunused-function]
...
static inline void lpc54_modifyreg(struct lpc54_dev_s *priv,
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-11 15:28:49 -03:00
Xiang Xiao
ddcebb22c9
Fix Error: chip/lpc43_tickless_rit.c:127:24: error: unused function 'lpc43_tl_get_mask' [-Werror,-Wunused-function]
...
static inline uint32_t lpc43_tl_get_mask(void)
^
Error: chip/lpc43_tickless_rit.c:169:20: error: unused function 'lpc43_tl_get_enable' [-Werror,-Wunused-function]
static inline bool lpc43_tl_get_enable(void)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-11 15:28:49 -03:00
ligd
b33a925787
armv7-r: fix arm_gic_nlines redefines
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-11-11 20:01:55 +08:00
Xiang Xiao
69f8ac8ed0
Revert "arm/lc823450: Fix error: unknown pragma ignored"
...
This reverts commit 206e2a8eec
.
2022-11-08 00:03:54 +09:00
Fotis Panagiotopoulos
60933f5a94
stm32_eth: Fix in assertion parameters.
2022-11-07 09:51:13 +08:00
Xiang Xiao
d5fe952b17
Fix Error: chip/lpc54_emc.c:421:12: error: explicitly assigning value of variable of type 'uint32_t' (aka 'unsigned int') to itself
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-06 21:18:31 +01:00
Xiang Xiao
27a7ff41b5
Fix Error: chip/lpc54_serial.c:1199:24: error: use of logical '&&' with constant operand
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-06 21:18:31 +01:00
Xiang Xiao
69dea8d329
Fix Error: chip/lpc43_usb0dev.c:905:20: error: unused function 'lpc43_abortrequest'
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-06 21:18:31 +01:00
Xiang Xiao
6063749a3c
Fix Error: chip/lpc43_usb0dev.c:905:20: error: unused function 'lpc43_abortrequest'
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-06 21:18:31 +01:00
Xiang Xiao
7c88ef1e6a
Fix lc823450_i2s.c:277:7: error: variable 'n' is used uninitialized whenever switch default is taken
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-06 21:18:31 +01:00
Xiang Xiao
bc04edecc1
Fix undefined reference to tmp' in function
load_kernel.constprop.0':
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-06 21:18:31 +01:00
Xiang Xiao
206e2a8eec
arm/lc823450: Fix error: unknown pragma ignored
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-06 21:18:31 +01:00
Xiang Xiao
819eeefc60
Fix chip/lc823450_sdc.c:282:33: error: format specifies type 'long' but the argument has type 'uint32_t' (aka 'unsigned int')
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-06 21:18:31 +01:00
Xiang Xiao
fbd886deb5
arch/arm: Fix types.h:61:9: error: unknown type name '__UINT32_TYPE__'
...
regressed by: https://github.com/apache/incubator-nuttx/pull/7476
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-06 07:14:39 +01:00
Xiang Xiao
116ba80ad5
Fix lpc17_40_spi.c:341:12: error: variable 'regval' set but not use
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-03 14:41:14 +01:00
Xiang Xiao
923c779c83
Fix lpc17_40_serial.c:935:20: error: unused function 'lpc17_40_uart3config'
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-03 14:41:14 +01:00
raiden00pl
ef517ed05c
stm32/stm32_adc.c fix clang warning
...
chip/stm32_adc.c:2529:32: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
setbits = ADC_CCR_DUAL_IND | ADC_CCR_DELAY(0) | ADC_CCR_MDMA_DISABLED |
^~~~~~~~~~~~~~~~
2022-11-03 10:15:39 -03:00
yinshengkai
85f727f232
tools: replace INCDIR to Makefile variable
...
In the past, header file paths were generated by the incdir command
Now they are generated by concatenating environment variables
In this way, when executing makefile, no shell command will be executed,
it will improve the speed of executing makfile
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-11-03 19:59:55 +08:00
zhangyuan21
cdeddcb028
arch/armv7-ar: add isb after CACHE and TLB operations.
2022-11-03 19:49:24 +08:00
Gustavo Henrique Nihei
f5c77933cb
arch: Fix linking of multiple preprocessed linker script files
...
Only the last item from the ARCHSCRIPT list was being suffixed with
".tmp".
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-11-02 09:15:27 +08:00
Xiang Xiao
12926ee864
arch/arm: Document the clever trick of PRI?32 macros
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-01 23:11:16 +01:00
Xiang Xiao
93895c42a7
arch/arm: Typedef _[u]int32_t to __[U]INT32_TYPE__
...
if __INT32_TYPE__ is defined
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-01 19:58:20 +01:00
Xiang Xiao
4578df5cbb
Fix lpc17_40_serial.c:705:24: error: unused function 'lpc17_40_uartcclkdiv'
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-01 17:12:42 +01:00
Xiang Xiao
7daacec1fa
Fix lpc17_40_serial.c:510:20: error: unused function 'up_restoreuartint'
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-01 17:12:42 +01:00
Xiang Xiao
5948dc8c8f
Fix lpc17_40_sdcard.c:614:24: error: unused function 'lpc17_40_getpwrctrl'
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-01 17:12:42 +01:00
Xiang Xiao
09997c6546
Fix lpc17_40_serial.c:814:20: error: unused function 'lpc17_40_uart0config'
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-01 17:12:42 +01:00
Xiang Xiao
ae9ff3bc67
Fix lpc176x_clockconfig.c:213:16: error: variable 'regval' set but not used
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-01 17:12:42 +01:00
zhangyuan21
b118083c35
arch_timer: adjust timer/arch_timer to support tick
...
Enable CONFIG_SCHED_TICKLESS_TICK_ARGUMENT in tickless mode
to improve the performance.
2022-11-01 21:53:08 +08:00
Fotis Panagiotopoulos
189aa0292f
arm: Added breakpoint in stack overflow trap.
2022-11-01 21:42:25 +08:00
SPRESENSE
3379fc96fc
arm/backtrace_sp: fix build warning
...
common/arm_backtrace_sp.c: In function 'up_backtrace':
common/arm_backtrace_sp.c:253:15: warning: assignment to 'long unsigned int' from 'uint8_t *' {aka 'unsigned char *'} makes integer from pointer without a cast [-Wint-conversion]
253 | top = g_intstacktop;
|
2022-11-01 13:49:56 +01:00
Fotis Panagiotopoulos
e89432b563
Added DHCSR definitions for ARMv7 & ARMv8.
2022-11-01 09:22:07 +08:00
Xiang Xiao
3e3364d1a9
Fix the format string mismatch warning
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-31 11:20:56 +01:00
Julian Oes
227218659b
stm32h7: Add missing time.h include
...
This is required for me when building within CLion.
Without it, I get the error:
error: field 'lastwrite' has incomplete type
2022-10-31 10:22:27 +08:00
Xiang Xiao
5d7f1d5020
Fix chip/stm32_sdio.c:749:24: error: unused function 'stm32_getpwrctrl' [-Werror,-Wunused-function]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-30 16:03:35 +01:00
Xiang Xiao
940ee2c8b1
Fix Error: chip/efm32_clockconfig.c:109:20: error: unused function 'efm32_synchronize' [-Werror,-Wunused-function]
...
static inline void efm32_synchronize(uint32_t bitset)
^
Error: chip/efm32_clockconfig.c:185:20: error: unused function 'efm32_enable_auxhfrco' [-Werror,-Wunused-function]
static inline void efm32_enable_auxhfrco(void)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-30 16:03:35 +01:00
Xiang Xiao
c6ae5e42c0
Fix chip/cxd56_farapi.c:285:14: error: format specifies type 'int' but the argument has type 'unsigned long' [-Werror,-Wformat]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-30 16:03:35 +01:00
Xiang Xiao
7ad74c413a
Fix chip/cxd56_icc.c:498:18: error: overlapping comparisons always evaluate to false [-Werror,-Wtautological-overlap-compare]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-30 16:03:35 +01:00
Xiang Xiao
eeefc4a516
Fix chip/cxd56_usbdev.c:675:20: error: unused function 'cxd56_iscableconnected' [-Werror,-Wunused-function]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-30 16:03:35 +01:00
Xiang Xiao
c701d1c6ec
Fix error: variable 'lfbclk' is used uninitialized whenever switch case is taken [-Werror,-Wsometimes-uninitialized]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-30 16:03:35 +01:00
Xiang Xiao
d1a3f5e47f
arch/arm: Replace xxx_[bus|usage]fault with arm_[bus|usage]fault
...
to fix the following clang warning:
Error: chip/eoss3_irq.c:138:47: error: format specifies type 'unsigned int' but the argument has type 'uint32_t' (aka 'unsigned long') [-Werror,-Wformat]
_err("PANIC!!! Bus fault received: %08x\n", getreg32(NVIC_CFAULTS));
~~~~ ^~~~~~~~~~~~~~~~~~~~~~
%08lx
/github/workspace/sources/nuttx/include/debug.h:126:57: note: expanded from macro '_err'
__arch_syslog(LOG_ERR, EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__)
~~~~~~ ^~~~~~~~~~~
/github/workspace/sources/nuttx/arch/arm/src/common/arm_internal.h:134:24: note: expanded from macro 'getreg32'
^~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: chip/eoss3_irq.c:146:49: error: format specifies type 'unsigned int' but the argument has type 'uint32_t' (aka 'unsigned long') [-Werror,-Wformat]
_err("PANIC!!! Usage fault received: %08x\n", getreg32(NVIC_CFAULTS));
~~~~ ^~~~~~~~~~~~~~~~~~~~~~
%08lx
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-30 16:03:35 +01:00
Xiang Xiao
ad35572751
Fix Error: chip/gd32f4xx_spi.c:924:20: error: unused function 'spi_putreg16' [-Werror,-Wunused-function]
...
static inline void spi_putreg16(struct gd32_spidev_s *priv,
^
Error: chip/gd32f4xx_spi.c:945:23: error: unused function 'spi_getreg8' [-Werror,-Wunused-function]
static inline uint8_t spi_getreg8(struct gd32_spidev_s *priv,
^
Error: chip/gd32f4xx_spi.c:967:20: error: unused function 'spi_putreg8' [-Werror,-Wunused-function]
static inline void spi_putreg8(struct gd32_spidev_s *priv,
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-30 16:03:35 +01:00
Xiang Xiao
202408c6e7
Fix gd32f4xx_syscfg.c:137:5: error: variable 'regaddr' is used uninitialized whenever switch default is taken [-Werror,-Wsometimes-uninitialized]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-30 16:03:35 +01:00
Xiang Xiao
513904d1df
Fix gd32f4xx_dma.c:223:26: error: unused function 'gd32_dma_channel_get' [-Werror,-Wunused-function]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-30 16:03:35 +01:00
anjiahao
d7b4e91dda
Call nxsem_destroy or nxmutex_destry in the error path
...
1.Don't check the return value of nxsem_init or nxmutex_init
2.Fix some style issue
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-30 13:56:52 +01:00
Roberto Bucher
944bb6164d
Files for pysimCoder on nucleo-h743zi2
2022-10-29 18:03:37 -03:00
Roberto Bucher
793f37c007
Files for pysimCoder on nucleo-h743zi2
2022-10-29 18:03:37 -03:00
Xiang Xiao
b607f80cf3
arch: Remove the unnecessary nosanitize_address from backtrace source code
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-29 08:26:04 +02:00
chao an
a8d3286258
net: move device buffer define to common header
...
Signed-off-by: chao an <anchao@xiaomi.com>
2022-10-28 00:32:16 -04:00
Xiang Xiao
739210708a
arch: Replace __builtin_bswapxx with bswapxx
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-25 20:24:19 -03:00
David Sidrane
f3256e5668
stm32fh7:Allow the use of the Network Monitor via polling
...
Not all boards have an interrupt line from the phy to
the Soc. This commit allows the phy to be polled for
link status.
This may not work on all MAC/PHY combination that
have mutually exclusive link management and operating
modes. The STM32H7 and LAN8742AI do not have such a
limitation.
Fix typos
2022-10-25 21:52:14 +08:00
Petro Karashchenko
4c71075ea5
arch/arm/stm32h7: multiple fixes for stm32h7 flash interface
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-10-25 05:37:08 -04:00
chao an
86e3bd9d75
arm/toolchain: update toolchain comment to avoid confusion
...
1. add 'ARM' prefix to choice menu
2. rename 'Generic Clang toolchain' to 'LLVM Clang toolchain'
to avoid confuse with CONFIG_ARM_TOOLCHAIN_ARMCLANG
Signed-off-by: chao an <anchao@xiaomi.com>
2022-10-25 12:33:46 +08:00
chao an
9804320cae
arm/armv6-m: fix build break if enable syntax unified
...
armv6-m/arm_exception.S: Assembler messages:
armv6-m/arm_exception.S:171: Error: cannot honor width suffix -- `lsl r7,r7,#2'
Signed-off-by: chao an <anchao@xiaomi.com>
2022-10-25 12:32:06 +08:00
chao an
09cc29af4d
arch/armv6-m: fix compile error on LLVM clang
...
armv6-m/arm_exception.S:139:2: error: invalid instruction, any one of the following would fix this:
sub r1, #(4 * (10))
^
armv6-m/arm_exception.S:139:2: note: instruction requires: thumb2
sub r1, #(4 * (10))
^
armv6-m/arm_exception.S:139:10: note: invalid operand for instruction
sub r1, #(4 * (10))
^
armv6-m/arm_exception.S:139:2: note: no flag-preserving variant of this instruction available
sub r1, #(4 * (10))
^
armv6-m/arm_exception.S:139:10: note: operand must be a register in range [r0, r7]
sub r1, #(4 * (10))
^
-----------------------------------------
bringup.c:125:18: warning: variable 'ret' is uninitialized when used here [-Wuninitialized]
return ret;
^~~
bringup.c:73:10: note: initialize the variable 'ret' to silence this warning
int ret;
^
= 0
Signed-off-by: chao an <anchao@xiaomi.com>
2022-10-25 00:52:00 +08:00
chao an
539f9a862e
arm/cache: fix build warning on LLVM clang
...
armv7-m/arm_cache.c:93:24: warning: unused function 'arm_clz' [-Wunused-function]
static inline uint32_t arm_clz(unsigned int value)
^
Signed-off-by: chao an <anchao@xiaomi.com>
2022-10-24 23:37:30 +08:00
chao an
c629fd1b00
arm/phy62xx: fix compile warning ('while' clause does not guard)
...
chip/flash.c: In function '_spif_read_status_reg_x':
chip/flash.c:46:9: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
46 | while ((AP_SPIF->fcmd &0x02)==0x02); \
| ^~~~~
chip/flash.c:128:3: note: in expansion of macro 'SPIF_STATUS_WAIT_IDLE'
128 | SPIF_STATUS_WAIT_IDLE(SPIF_WAIT_IDLE_CYC);
| ^~~~~~~~~~~~~~~~~~~~~
Signed-off-by: chao an <anchao@xiaomi.com>
2022-10-24 20:23:59 +08:00
SPRESENSE
a4df3c0330
arch: cxd56xx: Fix deadlock by using GNSS CEP file on SPI-Flash
...
If you specify a file path on SPI-Flash in CONFIG_CXD56_GNSS_CEP_FILENAME,
it causes a deadlock issue in the inter-CPU communication. To resolve it,
introduce a new CONFIG_CXD56_GNSS_CEP_ON_SPIFLASH and then use pre-read
buffers during checking CEP file. So this needs the large of free memory.
2022-10-24 19:19:44 +08:00
SPRESENSE
22a29fdc97
arch: cxd56xx: Fix stall bulk xfer when sending 512 byte data
...
Remove hardware zero length packet enhancement because of driver
logic already processed the ZLP correctly. It is unnecessary and cause
of IN interrupt lost.
2022-10-24 09:02:39 +02:00
Xiang Xiao
4aad964d48
Fix sam4s_nand.c:152:3: error: this 'while' clause does not guard... [-Werror=misleading-indentation]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-23 22:44:35 +02:00
raiden00pl
f1277a2233
stm32/socketcan: fix the EFF flag for received frames
2022-10-22 17:28:55 +08:00
anjiahao
e1ca516488
use SEM_INITIALIZER inside of NXSEM_INITIALIZER
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-10-22 14:50:48 +08:00
anjiahao
5724c6b2e4
sem:remove sem default protocl
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-10-22 14:50:48 +08:00
Michael Jung
ec3805721c
armv8-m: Fix MPU Region Limit Address config
...
On armv8-m the MPU region limits are inclusive. Thus, we must substract
one byte of size from (base + limit).
Signed-off-by: Michael Jung <michael.jung@secore.ly>
2022-10-21 16:23:49 -03:00
Michael Jung
d4cbb4f5b8
armv8-m: Fix MPU Attribute Indirection reg offsets
...
Both MPU_MAIR0 and MPU_MAIR1 were off by 0x10.
Signed-off-by: Michael Jung <michael.jung@secore.ly>
2022-10-21 16:23:49 -03:00
raiden00pl
36ae5316b7
include/nuttx/can.h: make error definitions compatible with Linux
2022-10-21 18:47:29 +08:00
xiangdong6
924c3d8b5f
arch/armv7-r: Fix armclang build warning: L6306W
...
When a function is known to preserve eight-byte alignment of the stack, armclang assigns the build
attribute Tag_ABI_align_preserved to that function. However, the armclang integrated assembler does
not automatically assign this attribute to assembly code.
Signed-off-by: xiangdong6 <xiangdong6@xiaomi.com>
2022-10-21 13:58:23 +08:00
SPRESENSE
0d87694024
arch: cxd56xx: Fix duplicate definitions in battery_ioctl.h
...
Fix duplicate definitions of arch/arm/include/cxd56xx/battery_ioctl.h
with include/nuttx/power/battery_ioctl.h.
2022-10-20 21:49:07 +02:00
SPRESENSE
2060f7be60
arch: cxd56xx: hostif: Remove -Wformat-truncation warnings
...
Remove -Wformat-truncation warnings in cxd56_hostif.c.
2022-10-20 21:49:07 +02:00
SPRESENSE
52cbfcf3bd
arch: cxd56xx: Remove -Wmissing-braces warning
...
Remove -Wmissing-braces warning in cxd56_cpu1signal.c.
2022-10-20 21:49:07 +02:00
SPRESENSE
d3ed469f00
arch: cxd56xx: Fix compile warning in cxd56_pwm.c
2022-10-20 21:49:07 +02:00
Javier Casas
663bf4d968
Add support for stm32h7b3xx MCU's flash
2022-10-21 01:37:23 +08:00
raiden00pl
a3db5fe24b
stm32f7: add SocketCAN support
2022-10-20 00:08:36 +08:00
SPRESENSE
c48feac0e9
arch: cxd56xx: gnss: Fix compile error
...
Fix a compile error caused by
d1d4633
Replace nxsem API when used as a lock with nxmutex API
2022-10-19 14:10:51 +02:00
Fotis Panagiotopoulos
f9fd53cda1
gmtimer: Fixed range of tm_yday.
2022-10-19 12:39:04 +08:00
raiden00pl
27db9558de
stm32/socketcan: fixes for arm_netinitialize
2022-10-18 15:35:21 -03:00
Xiang Xiao
d200cacc49
arch/armv7-r: Fix typo error in commit 4fab2b9501
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-18 10:31:07 -03:00
Xiang Xiao
6b31918b42
Remove the unnecessary cast for main_t, NULL and argv
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-18 08:51:45 +02:00
Xiang Xiao
4fab2b9501
arch/armv7-[a|r]: Don't define fiq stack if CONFIG_ARMV7A_DECODEFIQ=n
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-18 08:01:52 +09:00
anjiahao
dee38ce3e8
arch: Replace critical section with nxmutex in i2c/spi/1wire initialization
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-17 15:59:46 +09:00
anjiahao
d1d46335df
Replace nxsem API when used as a lock with nxmutex API
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-17 15:59:46 +09:00
Bernd Walter
947e771c41
fix typo big letter 'o' in hex value for zero.
2022-10-17 02:55:21 +08:00
Bernd Walter
432c438c76
Use the correct marcro name for RP2040_UART0_BASE
2022-10-16 11:26:27 +08:00
chao an
4e3aa83706
arm/backtrace_fp: fix build warning
...
common/arm_backtrace_fp.c: In function 'up_backtrace':
common/arm_backtrace_fp.c:126:23: warning: assignment to 'void *' from 'uintptr_t' {aka 'unsigned int'} makes pointer from integer without a cast [-Wint-conversion]
126 | istacklimit = arm_intstack_top();
| ^
Signed-off-by: chao an <anchao@xiaomi.com>
2022-10-15 03:09:55 +08:00
zhangyuan21
7d34ebdd4e
armv7-a: add l2 page mapping interface
2022-10-12 22:00:06 +08:00
zhangyuan21
466635a5e0
armv7-a: set normal memory shareable in smp mode
2022-10-12 19:54:09 +08:00
zhangyuan21
750007ded9
sched: use tick count for sched timer expiration
2022-10-12 11:55:46 +08:00
chao an
bcdd03cdf3
arm/backtrace: rename arm_backtrace_thumb.c to arm_backtrace_sp.c
...
1. rename arm_backtrace_thumb.c to arm_backtrace_sp.c
2. use EHABI stack unwinder instead of instruction unwind
Signed-off-by: chao an <anchao@xiaomi.com>
2022-10-12 01:55:48 +08:00
Xiang Xiao
1cd9fa25cd
arm/tlsr82xx: Don't select ARCH_HAVE_BACKTRACE
...
since it's already selected by ARCH_ARM
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-11 00:01:35 +02:00
chao an
24129e4ba7
arm/backtrace: add support for EHABI(Exception Handling ABI) stack unwinder
...
Reference:
https://github.com/ARM-software/abi-aa/blob/main/ehabi32/ehabi32.rst
https://github.com/ARM-software/abi-aa/releases/download/2022Q1/ehabi32.pdf
Signed-off-by: chao an <anchao@xiaomi.com>
2022-10-11 03:11:37 +08:00
Andrés Sánchez Pascual
c28b05efd3
arch: stm32h7: Add support for dual bank flash
...
memory
Signed-off-by: Andrés Sánchez Pascual <tito97_sp@hotmail.com>
2022-10-10 01:07:45 +08:00
Xiang Xiao
f813fea555
Fix chip/cxd56_gnss.c:2858:7: error: label 'err' used but not defined
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-04 20:59:30 +02:00
Xiang Xiao
e38248ee08
Return -EINVAL for the internal API
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-09-30 17:54:56 +02:00
Xiang Xiao
bdeaea3742
Remove the unnessary empty line after label
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-09-30 17:54:56 +02:00
Carlos Sanchez
6e490759d6
s32k1xx: Fix FlexIO timer register access macros
2022-09-30 23:38:59 +08:00
Carlos Sanchez
68db81ab4f
s32k1xx: Allow building with debug features and no console.
2022-09-30 15:15:55 +02:00
Xiang Xiao
53dcddc9e3
arch/armv[7|8]-m: Implement up_invalidate_icache
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-09-30 08:07:45 +02:00
chao an
6bc4baa4ca
arch/makefile: preprocess link script to make configure more flexibly
...
Signed-off-by: chao an <anchao@xiaomi.com>
2022-09-29 17:06:47 +08:00
yinshengkai
5c9b094d65
tools: Replace mkallsyms.sh with mkallsyms.py
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-09-29 08:33:04 +08:00
Fotis Panagiotopoulos
bbf3f2866d
Fixed non-UTF8 characters.
2022-09-28 09:38:55 +08:00
ligd
078a0486f5
armv7-a: SMP hande all cores start at same time
...
In SMP mode, if all cores start at same time, all from __start(),
then only primary need do initialize, so others core should wait
primary, use 'sev' let the non-primary continue to __cpuN_start().
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-09-28 10:33:13 +09:00
wangbowen6
589647308c
arm/tlsr82: move peripherals pin config to board.h
...
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2022-09-28 09:30:06 +08:00
Xiang Xiao
764540267e
sched/clock: Rename g_system_timer to g_system_ticks
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-09-27 17:45:44 -03:00
ligd
059497d1d1
armv7-a/r: NON-primary core should invalidate dacache level1
...
NON-primary cpu will invalidate cpu0's cache L2, that will caused cpu0's data mismatch, and then system crash
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-09-27 14:41:39 +08:00
David Sidrane
a1ebd499ea
stm32h7:SDMMC fix unaligned access for buffers not on 32 bit boundaries
...
The IDMA needs to have 32 bit word alignment, in fact it will
AND off the lower 2 bits of the value stored in IDMABASE0R.
This bug was masked by CONFIG_ARMV7M_DCACHE causing proper word alignment
and also FAT_DMAMEMORY being aligned.
This commit extends the unaligned logic (used for dcache) to take into account
the need for a buffer copy when the buffer is ot 32 bit word.
It leverages the fact that when CONFIG_ARMV7M_DCACHE is not defined the up_xxxxx_dcache are nops.
2022-09-27 09:43:29 +08:00
Rajvinder Kaur
2e1c522a79
stm32h7\stm32_fdcan_sock: reserve space for timeval struct in the intermediate storage of tx and rx CAN frames when timestamp is enabled
2022-09-26 20:05:44 -03:00
chao an
aa51629bd2
arm/armv7-r: redefine the linker symbols as armlink style
...
Fix build break:
Error: L6218E: Undefined symbol _sbss (referred from arm_head.o).
Error: L6218E: Undefined symbol _ebss (referred from arm_head.o).
Error: L6218E: Undefined symbol _eronly (referred from arm_head.o).
Error: L6218E: Undefined symbol _sdata (referred from arm_head.o).
Error: L6218E: Undefined symbol _edata (referred from arm_head.o).
Signed-off-by: chao an <anchao@xiaomi.com>
2022-09-26 19:04:25 +02:00
chao an
a2cd1b0db3
arm/armlink: add support of link time optimization(lto)
...
Optimization goal(Code size)
Smaller GCC(-Os) GCC(-flto -Os) CLANG(-flto -Oz) ARMCLANG(-flto -Oz/-Omin)
lm3s6965-ek/qemu-flat(Cortex-M3) 208662 193893 199525 195464
-7.07% -4.37% -6.32%
sabre-6quad/smp(Cortex-A9) 131360 122500 N/A 123988
-6.74% N/A -5.61%
Faster performance GCC(-O3) GCC(-flto -O3) CLANG(-flto -Ofast) ARMCLANG(-flto -Ofast) ARMCLANG(-flto -Omax)
lm3s6965-ek/qemu-flat(Cortex-M3) 257502 296364 369465 346696 384204
+15.00% +43.40% +34.60% +49.20%
sabre-6quad/smp(Cortex-A9) 166520 196004 N/A 207908 224140
+17.70% N/A +24.85% +34.60%
Reference:
https://developer.arm.com/documentation/101754/0618/armclang-Reference/armclang-Command-line-Options/-O--armclang-
Signed-off-by: chao an <anchao@xiaomi.com>
2022-09-26 18:23:27 +08:00
Xiang Xiao
40ef5bc6db
libc: Move queue.h from include to include/nuttx
...
to avoid the conflict with libuv's queue.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-09-26 08:04:58 +02:00
wangbowen6
344c8be049
poll: add poll_notify() api and call it in all drivers
...
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2022-09-26 12:06:32 +08:00
Xiang Xiao
70290b6e38
arch: Change the linker generated symbols from uint32_t to uint8_t *
...
and remove the duplicated declaration
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-09-24 21:26:56 +02:00
Masayuki Ishikawa
95fe8426ed
arch: lc823450: Fix to boot
...
Summary:
- I noticed that lc823450-xgevk does not boot due to the recent
changes on g_current_regs
- This PR fixes this issue
Impact:
- None
Testing:
- Tested with lc823450-xgevk:rndis
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-09-24 21:59:32 +08:00
chao an
b134995d92
arm/tlsr82: replace incompatible instruction sets to internal implement
...
1. some arm instructions are not compatible with arch tlsr:
{standard input}: Assembler messages:
{standard input}:53: Error: bad instruction `svc #0 '
2. remove unsupport compile option
cc1: error: unrecognized command line option "-mlittle-endian"
Signed-off-by: chao an <anchao@xiaomi.com>
2022-09-23 23:54:25 +08:00
chao an
47b350a4c3
arch/arm: declare vector array default type to read-only
...
Reference:
https://developer.arm.com/documentation/dui0474/m/image-structure-and-generation/section-placement-with-the-linker/section-placement-with-the-first-and-last-attributes
CAUTION:
FIRST and LAST must not violate the basic attribute sorting order. For example, FIRST RW is placed after any read-only code or read-only data.
arm-none-eabi-readelf -aS arm_vectors.o
1. Without const:
Section Headers:
[Nr] Name Type Addr Off Size ES Flg Lk Inf Al
[ 3] .vectors PROGBITS 00000000 000034 00011c 00 WA 0 0 4
2. const symbol:
[ 3] .vectors PROGBITS 00000000 000034 00011c 00 A 0 0 4
Regression by:
| commit 229b57d6cb
|
| arch/armv[6|7|8]-m: Move _vectors to arm_internal.h to avoid the duplication
|
| and change the type of _vectors from uint32_t to const void *
|
| Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Signed-off-by: chao an <anchao@xiaomi.com>
2022-09-23 22:28:51 +08:00
chao an
c07d076bf5
arch/arm: redefine the linker symbols as armlink style
...
Signed-off-by: chao an <anchao@xiaomi.com>
2022-09-23 22:28:07 +08:00
chao an
bb63e1b23d
arm/cortex-r: correct include path of chip.h
...
In file included from ./armv7-r/arm_l2cc_pl310.c:41:
./armv7-r/l2cc_pl310.h:38:10: fatal error: chip/chip.h: No such file or directory
38 | #include "chip/chip.h"
| ^~~~~~~~~~~~~
Signed-off-by: chao an <anchao@xiaomi.com>
2022-09-23 13:54:03 +08:00