raiden00pl
e75c19ce58
arch/arm/{nrf53|nrf91}: enable fpu if CONFIG_ARCH_FPU=y
...
enable fpu if CONFIG_ARCH_FPU=y, the previous condition depended on CONFIG_ARCH_HAVE_FPU=y
2024-07-26 23:46:34 +08:00
simbit18
0e67a79b94
fix nxstyle
...
corrected comments in C89 style
2024-05-03 14:15:56 -03:00
raiden00pl
d33846046e
arch/nrf{52|53|91}: fix typo
...
fix typo sndlock -> sndblock
2024-03-10 01:43:11 +08:00
raiden00pl
a20b3e8335
arch/nrf{52|53|91}/spi: fix error message
...
wrong parameters were passed to spierr()
2024-03-06 00:50:00 +08:00
raiden00pl
f4324e118e
arch/nrf{52|53|91}: let the events from comparator correspond to CC id
...
this allows us to use the same value to set the comparator and handle comparator events,
making RTC easier to use
2024-02-17 05:00:35 -08:00
raiden00pl
a77c3b367a
arch/nrf{52|53}/gpiote.c: fix event reconfiguration for a given pin
...
if a given pinset is already used, we need to update it, not add another event
2024-02-17 05:00:06 -08:00
raiden00pl
dbbe06193e
arch/arm/src/nrf{52|53|91}/xxx_rtc.h: include nuttx/irq.h
...
fixes undefined xcpt_t error that sometimes occurs
2024-02-17 04:59:49 -08:00
Xiang Xiao
1e3914ec9d
rptun: Remove the unused shmemname field and argument
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-02-04 09:54:05 +01:00
Xiang Xiao
6a6bd30500
rptun: Remove the empty implementation of get_firmware and get_addrenv
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-02-04 09:54:05 +01:00
Xiang Xiao
43d51cd4fc
arch: Remove the identity mapping of up_addrenv_va_to_pa and up_addrenv_pa_to_va
...
and reuse the reuse the implementation from:
drivers/misc/addrenv.c
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-02-04 09:54:05 +01:00
raiden00pl
9d761b8ca4
arch/{nrf52|nrf53|nrf91}/tim.c: fix typo
...
fix offset for EVENT COMPARE0
2024-01-28 09:46:34 -08:00
simbit18
c494ce4a96
Update kconfig2html.c
...
Fix nuttx coding style
2023-12-14 20:02:52 -08:00
Xiang Xiao
ca5a9c711a
Remove @ and % tag from all comments
...
and format the multiple line comments
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-12-11 17:00:10 -03:00
anjiahao
bb0a706bdc
arch/arm:add up_debugpoint api
...
on armv8-m/armv7-m,implement breakpoint & watchpoint using FBP & DWT
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-12-11 08:43:26 -08:00
anjiahao
7dfbd14eba
libc: add instrument api support
...
Add registration function instrumentation API,
which can achieve instrumentation of entering and
exiting functions through the compiler's functionality.
We can use CONFIG_ARCH_INSTRUMENT_ALL to add instrumentation for all
source, or add '-finstrument-functions' to CFLAGS for Part of the
source.
Notice:
1. use CONFIG_ARCH_INSTRUMENT_ALL must mark _start or entry noinstrument_function,
becuase bss not set.
2. Make sure your callbacks are not instrumented recursively.
use instrument_register to register entry function and exit function.
They will be called by the instrumented function
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-12-11 02:06:51 -08:00
raiden00pl
95ac627d59
arch/nrf{52|53|91}: add missing support for 1 Mbps UART baud
2023-12-02 19:40:09 -08:00
chao an
3cadf6642a
kernel: replace all usleep to nxsig_usleep in kernel space
...
syscall cannot be called from kernel space
Signed-off-by: chao an <anchao@xiaomi.com>
2023-10-25 15:46:03 +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
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
raiden00pl
ade23b92d1
arch/{nrf52|nrf53}/pwm: fix compilation for MULTICHAN not set
2023-09-24 10:32:29 +08:00
raiden00pl
4c9c0c8be2
debug: add support for IPC (interprocessor communication) debug messages
2023-09-22 00:02:51 +08: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
chao an
664927c86e
mm/alloc: remove all unnecessary cast for alloc
...
Fix the minor style issue and remove unnecessary cast
Signed-off-by: chao an <anchao@xiaomi.com>
2023-08-30 14:34:20 +08:00
raiden00pl
78c88b5e78
arch/nrf53: FLASH cache only for netcore, disable by default as it breaks rptun
...
After sevaral resets of the chip after programming, rptun stops working correctly.
Simple test with RPMSG UART causes a lock:
on the netcore:
nsh>cat /dev/ttyproxy
on the appcore:
nsh>echo xxx > /dev/ttyproxy
The problem doesn't occur with NRF53_FLASH_PREFETCH=n
2023-08-21 17:34:36 +08:00
raiden00pl
187a067866
arch/nrf53/rptun: remove dependency on DEV_SIMPLE_ADDRENV
2023-08-21 17:34:36 +08:00
raiden00pl
45a542cb14
arch/nrf53: move SPU configuration to a separate file
2023-08-21 17:34:36 +08:00
simbit18
70ab01a20b
Fix Kconfig style
...
Replace help => ---help---
Remove spaces from Kconfig
Add comments
2023-08-18 16:36:04 +03:00
raiden00pl
b73e1b9591
arch/{nrf52|nrf53|nrf91}: handle I2C errors in interrupt mode
2023-08-14 17:51:48 +08:00
raiden00pl
5572552024
arch/nrf53: port 6e8f25ba3b
change from nrf52
...
Added config setting for NRF53 I2C timing bug workaround
2023-08-13 11:45:06 -03:00
raiden00pl
eec59015f0
arch/{nrf53|nrf91}: port cc99d94cfd
change from nrf52
...
Fixed NRF52 I2C register naming
2023-08-13 11:45:06 -03:00
raiden00pl
3a61db4c7b
arch/nrf53: port d7aea88727
change from nrf52
...
Changed NRF53 USB initialization to check for power via USBREGSTATUS instead of waiting for interrupt
2023-08-13 11:45:06 -03:00
raiden00pl
e48d730273
cmake: enable more cmake builds
2023-07-25 06:18:22 -07:00
Xiang Xiao
abfe082a6f
Kconfig: Simplify the conditional default statement
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-07-16 14:39:20 -03:00
rongyichang
5d7864fbcb
drivers/spi: add support for qspi hwfeatures
...
add QSPI_BITORDER and QSPI_WORD_REVERSE hwfeatures
Signed-off-by: rongyichang <rongyichang@xiaomi.com>
2023-07-12 01:42:25 +08:00
raiden00pl
f1bb29820e
cmake: add intial support for nrf53
2023-07-10 22:24:44 +08:00
raiden00pl
409cb61d49
arch/nrfxx: unify Make.defs
2023-07-10 22:24:44 +08:00
raiden00pl
1a6d507422
arch/{nrf52|nrf53|nrf91}: rename NRFxx to nRFxx to be compatible with the manufacturer's nomenclature
2023-07-03 00:52:01 +08:00
Xiang Xiao
0eeca0f375
build: Replace "$(shell $(INCDIR) $(CC) ...)" with $(INCDIR_PREFIX)
...
to unify the way to get include directories
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-06-23 00:11:25 +03:00
raiden00pl
2f58b55b4d
arch/{nrf52|nrf53}/usbd: various fixes to improve USB stability
...
USBD has many limitation that make it hard to work properly:
- only one EasyDMA channel which must be shared for all EPs
- only one DMA transfer can take place at a time
- some registers are unavailable during DMA transfer
- in case of any problems, the peripheral silently blocks,
or lose the transmitted bytes without information for the user
This commit is trying to fix these problem and makes the USBS stack more reliable.
Tested with high-speed CDCACM data transfers and that's the best I've been able to get in terms of stability.
2023-06-14 16:23:25 -03:00
raiden00pl
66c2d2ecc4
arch/nrf53/Kconfig: move GPIO configuration menu to match nrf52
2023-05-31 22:28:50 +03:00
raiden00pl
5f814b1da8
arch/{nrf52|nrf53}/Kconfig: hide SPI_MASTER options if SPI_MASTER not enabled
2023-05-31 22:28:50 +03:00
raiden00pl
81b0ae064c
arch/{nrf52|nrf53}/Kconfig: hide I2C_MASTER options if I2C_MASTER not enabled
2023-05-31 22:28:50 +03:00
raiden00pl
a3b91bc183
arch/{nrf52|nrf53}/Kconfig: hide PWM options if PWM not enabled
2023-05-31 22:28:50 +03:00
raiden00pl
2d56197792
arch/{nrf52|nrf53}: validate if EasyDMA transfer is possible
...
Add an interface that validate if EasyDMA transfer is possible.
EasyDMA cannot access flash memory which can cause hard to detect silent bugs.
This feature is enabled if CONFIG_DEBUG_FEATURES=y and CONFIG_DEBUG_ASSERTIONS=y.
2023-06-01 00:40:17 +08:00
raiden00pl
b98acb9a44
arch/nrf53: add progmem support
2023-05-31 23:12:21 +08:00
raiden00pl
20af03b31e
arch/{nrf52|nrf53}/usbd: fix IN endpoint completion logic
...
Confirmation of the IN request must be done immediately after all data has been transferred,
otherwise sending data when more than one request has been added to the queue will
not work properly.
2023-05-27 18:52:16 +08:00
raiden00pl
8b89730e61
arch/nrf53: add QSPI support
2023-05-25 22:41:34 +08:00
raiden00pl
5ff6c8b403
arch/nrf53: add HFCLK192M clock support
...
The HFCLK192M clock is required for QSPI to work
2023-05-25 22:41:34 +08:00