SPRESENSE
4364a291f0
arch: cxd56xx: Use arm_arch.h instead of up_arch.h
...
Use arm_arch.h instead of up_arch.h and fix hostif compile error.
2021-07-04 00:36:07 -05:00
SPRESENSE
cb6ad9dfbd
arch: cxd56xx: Fix getting stuck by nested spinlock in serial
...
Fix an issue the serial console gets stuck in SMP caused by nested
spin_lock_irqsave.
2021-07-04 00:36:07 -05:00
Xiang Xiao
a18b807fa9
arch/sim: Fix bt and audio simulation stop work in SMP mode
...
by removing the SMP up_idle and sim_timer_handler
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-07-04 10:16:12 +09:00
Xiang Xiao
b1f711f790
mm: Move procfs_register_meminfo into common place
...
to avoid the code duplication and ensure the consistent behaviour
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-07-03 09:39:32 -07:00
Masanari Iida
707404d415
rx65n: Add missing parameters in printf
...
Printf format string requires 2 parameters, but 0
parameter was given. Add these missing parameters.
Signed-off-by: Masanari Iida <standby24x7@gmail.com >
2021-07-03 09:25:57 -05:00
Dong Heng
4f2df0311d
risc-v/esp32c3: Fix some BLE driver issues
...
1. remove SMP functions because ESP32-C3 is singal core
2. disable phy_printf in ble adapter when enable Wi-Fi
3. fix BLE character device macro
2021-07-03 07:28:30 -05:00
Masayuki Ishikawa
6370c820ea
arch: rp2040: Introduce setintstack macro for SMP
...
Summary:
- This commit introduces setintstack macro to rp2040
which is used for SMP with interrupt stack
Impact:
- SMP with interrupt stack
Testing:
- Tested with raspberrypi-pico:smp
- NOTE: seed to set CONFIG_ARCH_INTERRUPTSTACK=2048
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com >
2021-07-03 04:13:13 -05:00
Masayuki Ishikawa
9f206f2bb6
arch: armv6-m: Introduce setintstack macro
...
Summary:
- This commit introduces setintstack macro which can be
overridden for SMP with interrupt stack
Impact:
- SMP only
Testing:
- Tested with raspberrypi-pico:smp
- NOTE: more commits will be added later
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com >
2021-07-03 04:13:13 -05:00
Virus.V
5f67d65e9e
risc-v/bl602: add efuse driver
...
Signed-off-by: Virus.V <virusv@live.com >
2021-07-02 13:17:39 -05:00
ligd
f479ca9096
sim/smp: fix smp can't start, caused by signal too busy
...
Change-Id: Ia9cad04759a869f9bed871fa0acd002115eefb0a
Signed-off-by: ligd <liguiding1@xiaomi.com >
2021-07-02 23:19:15 +09:00
ligd
2ab1dcf763
sim: add setitimer to nuttx-names.in
...
Change-Id: Id6d91d81b3d67cbe9215eb94f4ef394d61156fe8
2021-07-02 05:02:36 -05:00
ligd
a7a8c20083
sim: fix host_sleep unit error
...
Change-Id: Iaddd6381eb9870b709147d33b36482ae2e37c04d
Signed-off-by: ligd <liguiding1@xiaomi.com >
2021-07-02 05:02:36 -05:00
ligd
36c1bba88c
sim/up_oneshot.c: take host time as current
...
Change-Id: I34625f3d3f9557a103017124388dba6104aba7cc
Signed-off-by: ligd <liguiding1@xiaomi.com >
2021-07-02 05:02:36 -05:00
ligd
92cd7628e0
sim: remove CONFIG_SIM_WALLTIME fast timing maybe harmful for IOs
...
Change-Id: Ic4ff5ec0aa99d2d229a07c4d1a9a4dae738d3cd9
Signed-off-by: ligd <liguiding1@xiaomi.com >
2021-07-02 05:02:36 -05:00
ligd
aa43a0215d
mm: fix memory corruption when loop create/exit thread in SMP mode
...
Root casue:
when do thread exit, need add free stack operation to mm_delaylist,
but in SMP mode, CPU0 thread1 exit, at this time, CPU1 call malloc
and free mm_delaylist.
Fix:
Divide mm_delaylist for per CPU in SMP mode.
Change-Id: Ibf7d04614ea2f99fb5b506356b7346a0d94f0590
Signed-off-by: ligd <liguiding1@xiaomi.com >
2021-07-02 04:55:46 -05:00
ligd
50eee2f081
arm: fix enable interrupt too earlier caused system crash
...
reason:
msr cpsr, r2 /* Set the CPSR */
// interrupt hanppend, context switch
pop {r0-r2, pc}
resolve:
use SPSR instead, and recover with ldmia ^
Change-Id: Id7cee6452997ec19919eeecf6e7616164b3a0ab3
Signed-off-by: ligd <liguiding1@xiaomi.com >
(cherry picked from commit 6fa6c1676932d7babb7ff22ef556a17bb18f1c0d)
Signed-off-by: ligd <liguiding1@xiaomi.com >
2021-07-01 22:20:36 -05:00
mage1
f6a4c17838
sim: fix sim runtime err under sanitize check mode.
...
since gcc sanitize can not stub proper code in nuttx kernel code.
Change-Id: I0910bddee71538c202c6a0a8faab76bcc65f5cd2
2021-07-02 10:49:13 +08:00
Fotis Panagiotopoulos
de213401a7
lpc17_40_progmem: fixed compilation issues.
2021-07-01 09:11:12 -05:00
Masanari Iida
839414987c
efm32: Fix missing closing bracket
...
This patch fixes missing closing bracket and semicolon.
Signed-off-by: Masanari Iida <standby24x7@gmail.com >
2021-07-01 06:37:17 -07:00
ligd
dcea2afd7e
mm: fix memory corruption when loop create/exit thread in SMP mode
...
Root casue:
when do thread exit, need add free stack operation to mm_delaylist,
but in SMP mode, CPU0 thread1 exit, at this time, CPU1 call malloc
and free mm_delaylist.
Fix:
Divide mm_delaylist for per CPU in SMP mode.
Change-Id: Ibf7d04614ea2f99fb5b506356b7346a0d94f0590
Signed-off-by: ligd <liguiding1@xiaomi.com >
2021-07-01 18:26:20 +08:00
Xiang Xiao
82047fe3c4
mm: Add kmm_malloc_size and mm_malloc_size
...
make malloc_size implementation align with malloc
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: I8d7781925f06e58a880437a16569dccbfd2ea035
2021-07-01 18:08:54 +08:00
Sara Souza
b45ccad6a0
xtensa/esp32: Adds support for SERIAL_TXDMA.
2021-07-01 01:50:13 -05:00
David Sidrane
e659ae83b0
Kinetis:Serial No DMA Poll needed
2021-07-01 01:44:46 -05:00
David Sidrane
78584b4569
kinetis:Serial use eDMA
...
kinetis:serial mark priv->rxdma after use
2021-07-01 01:44:46 -05:00
David Sidrane
e5a1b2e797
kinetis:SPI use eDMA
...
Kinetis:SPI only allocate DMA once
2021-07-01 01:44:46 -05:00
David Sidrane
78bf264af0
kinetis:Replace DMA
...
Kinetis:DMAMUX use hex in mask
2021-07-01 01:44:46 -05:00
David Sidrane
3439c40044
stm32h7:SDMMC fix reset of do_gpio
...
For the case when the watchdog is triggering a timeout we did not
correctly reset the d0 GPIO.
Without this fix, the SD card can become inaccessible.
2021-07-01 01:37:58 -05:00
Julian Oes
6d6ca8f0b6
stm32:sdio: fix wrong ifdefs
...
This was wrong but presumably did not matter.
2021-07-01 01:37:58 -05:00
Julian Oes
2a86335055
stm32:sdio: fix reset of GPIO_SDIO_D0
...
For the case when the watchdog is triggering a timeout we did not
correctly reset the GPIO_SDIO_D0.
Without this fix, the SD card can become inaccessible.
2021-07-01 01:37:58 -05:00
Julian Oes
665f847760
stm32f7: fix reset of d0_gpio
...
For the case when the watchdog is triggering a timeout we did not
correctly reset the d0 GPIO.
Without this fix, the SD card can become inaccessible.
2021-07-01 01:37:58 -05:00
Julian Oes
154795a247
stm32f7: Removed bit that is reserved for f7
2021-07-01 01:37:58 -05:00
Julian Oes
87fd8903a0
stm32f7: whitespace fix
2021-07-01 01:37:58 -05:00
Julian Oes
804445fc15
stm32f7: unify identical sdmmc.h header files
...
It turns out there is no difference in these two files as well as the
reference manual for the registers between the two parts, so it probably
makes sense to unify them
2021-07-01 01:37:58 -05:00
chenwen
31a6da2343
risc-v/esp32c3: Notifies networking layer whether the carrier is available
2021-06-30 23:09:34 -05:00
McKay Ransom
863834057b
Renesas/RX: add RX setjmp, ARCH_RENESAS_RX, and RX65N ioctl
2021-06-30 23:01:57 -05:00
Sara Souza
87fabb2bc7
xtensa/esp32: Support to select different clock source for RTC controller and close TODOs.
2021-06-30 21:27:27 -05:00
Virus.V
84100128b2
risc-v/bl602: update wifi firmware version
...
Signed-off-by: Virus.V <virusv@live.com >
2021-06-30 01:08:10 -05:00
xiewenxiang
5fd3eca9c9
riscv/esp32c3: Support BLE sleep mode
2021-06-28 23:14:30 -05:00
xiewenxiang
145d917587
riscv/esp32c3: Add Wi-Fi and BLE coexist
2021-06-28 23:14:30 -05:00
xiewenxiang
8b96edc3a5
riscv/esp32c3: Add esp32c3 BLE driver
2021-06-28 23:14:30 -05:00
Michal Lenc
b36171026e
arch/arm/src/imxrt/imxrt_flexpwm.c: fix mistake in submodules address offset
...
Signed-off-by: Michal Lenc <michallenc@seznam.cz >
2021-06-28 09:03:06 -05:00
Xiang Xiao
4b7c156321
arch/sim: Implement mm_mallinfo for the custom heap
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: Idf07081869a4659490109aacf8d7905bdb485835
2021-06-28 21:26:09 +08:00
Xiang Xiao
a9f917e44d
arch/sim: Implement malloc_size for the custom heap
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-06-28 21:26:09 +08:00
Xiang Xiao
62ac1e1b6d
arch/sim: Remove host_malloc and host_calloc
...
use host_realloc instead
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: I41e5a722532830b9ec26dd7b32bfab9f30b443c2
2021-06-28 21:26:09 +08:00
Xiang Xiao
4e3c1ed8af
mm: Support malloc_size function
...
and rename malloc_usable_size to malloc_size
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: I8d83e9148d70e752142af26d7dd9a291123fdd14
2021-06-28 21:26:09 +08:00
Virus.V
8452c571ec
risc-v/bl602: BLE firmware adapts to the new framework
...
Signed-off-by: Virus.V <virusv@live.com >
2021-06-28 07:03:04 -05:00
Virus.V
cd50650583
risc-v/bl602: Support AP and STA as independent network interface device
...
Signed-off-by: Virus.V <virusv@live.com >
2021-06-28 07:03:04 -05:00
Xiang Xiao
d37d8e00a5
mtd: Add MTDIOC_FLUSH IOCTL like MTDIOC_XIPBASE
...
since the old design reuse BIOC_FLUSH for
MTD device which make some confusion
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-06-28 18:06:52 +08:00
Virus.V
4624cb25d6
riscv/bl602:replace syslog to debugging log macros
2021-06-28 18:06:52 +08:00
Michal Lenc
addfe182ae
arch/arm/src/imxrt: added support for FlexPWM driver
...
Signed-off-by: Michal Lenc <michallenc@seznam.cz >
2021-06-26 09:58:52 -05:00