YAMAMOTO Takashi
0066bf80d2
esp32: enable LIBC_ARCH_ATOMIC
...
fixes a build issue in https://github.com/apache/nuttx-apps/pull/1723
2023-04-24 10:12:57 +08:00
Lucas Saavedra Vaz
bdfe31e850
boards/xtensa/esp32: Add ESP32-PICO-KIT support
2023-04-22 01:23:13 +08:00
Dong Heng
45bba6e761
xtensa/esp32: ESP32 not use IMEM in user heap mode
2023-04-18 11:03:55 -03:00
Tiago Medicci Serrano
869aee6a78
xtensa/sigdeliver: fix signal deliver when task is running
...
The Inter-Processor Interrupt that pauses the other CPU generates
a level-1 interrupt which sets the PS.EXCM. This level-1 interrupt
is treated as an Exception and the bit PS.EXCM bit is automatically
reset on return from Exception. However, this is not the case here
because we are changing the execution to the signal trampoline.
Restoring the PS register with the PS.EXCM bit set would cause any
other exception to deviate execution to the DEC (double exception
vector), avoiding it to be treated correctly. According to the
xtensa ISA: "The process of taking an interrupt does not clear
the interrupt request. The process does set PS.EXCM to 1, which
disables level-1 interrupts in the interrupt handler. Typically,
the PS.EXCM is reset to 0 by the handler, after it has set up the
stack frame and masked the interrupt." Clean the saved PS.EXCM to
1) avoid an exception from being properly treated and 2) avoid
interrupts to be masked while delivering the signal.
2023-04-15 08:19:30 +09:00
chenwen@espressif.com
8df0a4d9ef
xtensa/esp32: Add support for universal mac addresses
...
Signed-off-by: chenwen@espressif.com <chenwen@espressif.com>
2023-04-13 09:43:30 -03:00
wangming9
a7fc26124d
arch/arm64: the arm64 perf interface supports pmu
...
Summary:
- Support arm64 pmu api, Currently only the cycle counter function is supported.
- Using ARM64 PMU hardware capability to implement perf interface, modify all
perf interface related code.
- Support for pmu init under smp.
Signed-off-by: wangming9 <wangming9@xiaomi.com>
2023-04-10 16:23:49 -03:00
Tiago Medicci Serrano
b6e92fa16d
esp32s3/wifi: call softAP callback when Wi-Fi driver TX is done
...
In one of the previous code revision, the '#ifdef' for calling the
softAP callback was thrown away.
2023-04-06 20:58:58 +03:00
Dong Heng
a51e102a41
xtensa/esp32: Make asprintf and lib_free corresponding
2023-04-06 20:57:19 +03:00
Tiago Medicci Serrano
00c3463426
arch/xtensa: Remove FAR qualifier for Xtensa-specific files
...
This PR intends to remove all references to the FAR qualifier from
Xtensa files. FAR is defined as nothing on both architectures.
2023-04-06 14:36:26 -03:00
Tiago Medicci Serrano
89b966a4f5
esp32/wifi: notify networking layer about the carrier status
2023-04-05 10:26:27 -03:00
Tiago Medicci Serrano
eb01b66978
esp32/wifi: fix typos, goto and macro definitions
2023-04-05 10:26:27 -03:00
Tiago Medicci Serrano
49d43a35b9
esp32/wifi: set Wi-Fi driver parameters only when needed
...
This commit fixes #7857 and #7193 by saving Wi-Fi parameters and
set them at once, avoiding unknown behaviors of the Wi-Fi driver.
This commit also enables setting the auth of the STA/softAP modes
while connecting to/providing the wireless network.
2023-04-05 10:26:27 -03:00
Alan Carvalho de Assis
c5145257fe
esp32: Add Ai-Thinker ESP32-A1S module
2023-03-28 20:58:36 +03:00
Lucas Saavedra Vaz
6227cd4fd4
boards/xtensa/esp32s2-kaluga-1: Add touch pad support
2023-03-26 12:59:37 -03:00
Dong Heng
663b4c4f34
xtensa/esp32: Tasks use PSRAM as stack can do SPI flash read/write/erase/map/unmap
2023-03-23 09:26:09 -03:00
Xiang Xiao
901cd599b1
arch: Remove MIN macro definition
...
use the definition from sys/param.h instead
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-22 17:26:37 -03:00
Petro Karashchenko
33a4a61cfb
arch/xtensa/esp32: Workaround -Wmaybe-uninitialized warning with "GCC 12.2"
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-03-21 21:59:30 -03:00
Gustavo Henrique Nihei
d4e6d9ab77
xtensa/esp32: Update bootloader patch to recent ESP-IDF version
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-03-20 21:14:00 +01:00
ligd
bb281eedfa
cache: add up_get_xcache_linesize() support
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2023-03-20 17:17:22 +08:00
Tiago Medicci Serrano
7b807a8540
esp32-esp32c3/wifi: remove naming inconsistencies
...
* Remove the 'COEXISTENCE' suffix from Wi-Fi's STA + SoftAP mode.
Coexistence usually refers to Wi-Fi + BLE, instead of Wi-Fi's
operation mode;
* Remove commented debug code;
* Remove outdate function descriptions;
2023-03-16 19:07:25 +01:00
Tiago Medicci Serrano
0ca7ede228
esp32s3/wifi: fix ability to connect to open networks
2023-03-16 19:07:25 +01:00
Tiago Medicci Serrano
8ac74e5540
esp32s3/wifi: fix driver parameter setting only when needed
2023-03-16 19:07:25 +01:00
Tiago Medicci Serrano
d4b11a960f
esp32s3/wifi: add support to softAP (softAP and softAP + STA mode)
2023-03-16 19:07:25 +01:00
zhangyuan21
12bb4f04f1
arch: fixed error in the calculation of nwords caused an out of bounds
...
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-03-13 16:12:11 +09:00
Tiago Medicci Serrano
40319b9c4c
esp32s3/wifi: move Wi-Fi-related build recipe to a separate file
2023-03-10 10:59:14 +02:00
Tiago Medicci Serrano
8f2cdc4e60
esp32s3/wifi: add support for Wi-Fi (Station mode)
...
1) Wi-Fi driver libs from Espressif ESP-IDF release/v5.0;
2) Station mode only;
3) WPA2-PSK and WPA3-SAE enabled;
Not yet supported (WIP):
- SoftAP mode;
- 802.11k, 802.11v and 802.11R;
- Power Save mode;
- BLE Coexistance;
2023-03-10 10:59:14 +02:00
Tiago Medicci Serrano
1fc73087da
esp32s3: add reset/shutdown handler to run registered callbacks
2023-03-10 10:59:14 +02:00
Gustavo Henrique Nihei
1f54c024da
espressif: Fix download of IDFboot binaries
...
It was broken after #8759 , which erroneously substituted with MCUboot
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-03-08 15:55:35 -03:00
Karel Kočí
62661600b2
treewide: add DOWNLOAD variable as unification of curl call
...
This is a followup to the commit
03b164f59c
.
2023-03-08 17:05:05 +08:00
Gustavo Henrique Nihei
312d6223d3
xtensa: Remove non-supported options from CPUs' specs
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-03-04 12:56:58 +08:00
Gustavo Henrique Nihei
bf9951f939
xtensa/esp32: Move attribution to CMN_ASRCS to common makefile
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-03-04 12:56:58 +08:00
Dong Heng
f47cb67da6
xtensa/common: Fix Xtensa interrupt stack context restore issue
2023-02-28 16:36:55 -03:00
Huang Qi
8a389a06e1
Don't download tarball if a local git repo found
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-02-27 23:55:23 +08:00
Xiang Xiao
2c5f653bfd
Remove the tail spaces from all files except Documentation
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-26 13:24:24 -08:00
Tiago Medicci Serrano
173212ebc9
esp32s3: Define syscall table to enable using ROM functions
2023-02-24 04:06:50 +08:00
Xiang Xiao
8b4ecac6c2
libc: Move math library from libs/libc/math to libs/libm/libm
...
to prepare the support of other implementation e.g.:
https://github.com/JuliaMath/openlibm
https://gitlab.com/gtd-gmbh/libmcs
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-23 10:40:07 +02:00
Fotis Panagiotopoulos
85ceb7920e
Typo fixes.
2023-02-17 11:17:11 -03:00
Lucas Saavedra Vaz
1fb6dcec3b
arch/xtensa/esp32s2: Fix function header
2023-02-09 02:39:54 +08:00
Lucas Saavedra Vaz
b29198a62a
arch/xtensa/esp32s3: Add support for touch pad interrupts
2023-02-09 02:39:54 +08:00
Ville Juven
9ac3e841da
group_addrenv: Fix call to group_addrenv for targets that don't need it
2023-02-09 00:14:52 +08:00
Alan Carvalho de Assis
63a847ebca
esp32s3-devkit: Add support LED PWM initialization
2023-02-08 11:02:19 +08:00
Alan Carvalho de Assis
453d9688c7
esp32s3: Add support to PWM using LEDC
2023-02-08 11:02:19 +08:00
Alan Carvalho de Assis
94970f32d7
esp32s2-saola-1: Add initialization to LEDC PWM
2023-02-08 10:56:32 +08:00
Alan Carvalho de Assis
39729bb635
esp32s2: Add support to LEDC PWM
2023-02-08 10:56:32 +08:00
Lucas Saavedra Vaz
d7b66adbeb
arch/xtensa/esp32s3: Add support for RTC IRQs
2023-02-08 10:56:15 +08:00
Lucas Saavedra Vaz
21d9163aae
arch/xtensa/esp32s2: Add support for touch pad interrupts
2023-02-07 12:19:41 +08:00
Lucas Saavedra Vaz
247aad82f2
arch/xtensa/esp32s2: Fix touch function typo
2023-02-07 12:19:41 +08:00
Nathan Hartman
5f9cb6faf4
drivers/serial: Fix docstrings on UART interrupt handlers
2023-02-07 04:41:36 +08:00
Lucas Saavedra Vaz
1e3af48fff
arch/xtensa/esp32s2: Add support for RTC IRQs
2023-02-04 18:28:10 -03:00
chao an
4c8d244fae
sched/getpid: replace syscall getpid/tid/ppid() to kernel version
...
NuttX kernel should not use the syscall functions, especially after
enabling CONFIG_SCHED_INSTRUMENTATION_SYSCALL, all system functions
will be traced to backend, which will impact system performance.
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-02 10:33:01 +08:00