Alin Jerpelea
6f14299dd0
boards: nxstyle fixes
...
nxstyle fixes to pass the CI check
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-03-18 22:58:27 -07:00
Alin Jerpelea
bdfe696b9a
boards: xtensa: Author Gregory Nutt: update licenses to Apache
...
Gregory Nutt has submitted the SGA and we can migrate the licenses
to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-03-17 08:40:08 -07:00
Jiuzhu Dong
59eb4fa8d6
fs: delete NFILE_DESCRIPTORS for allocating dynamically
...
Change-Id: Id06d215063796d222b9792d25ab2d6742167729f
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-03-17 06:46:42 -07:00
Dong Heng
b2f5031e96
xtensa/esp32: Refactor ESP32 WiFi driver to support station and softAP coexistence
2021-03-16 10:20:59 -03:00
Abdelatif Guettouche
28160823b6
arch/xtensa/esp32: ~6KB of memory at address 0x3ffae6f0 is not used by
...
the ROM bootloader, add that to the heap as well.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-03-16 16:22:08 +09:00
Abdelatif Guettouche
cba44928d2
arch/xtensa/esp32: Part of the ROM regions in middle of DRAM are not
...
used, retrieve them as heap.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-03-16 16:22:08 +09:00
Gustavo Henrique Nihei
4cde8dab5a
boards/esp32-wrover-kit: Mount tmpfs on bring up
2021-03-15 19:59:49 -07:00
Gustavo Henrique Nihei
31816d2726
boards/esp32-ethernet-kit: Mount tmpfs on bring up
2021-03-15 19:59:49 -07:00
Gustavo Henrique Nihei
a3f6a5fbb6
boards/esp32-devkitc: Mount tmpfs on bring up
2021-03-15 19:59:49 -07:00
Gustavo Henrique Nihei
330eff36d7
sourcefiles: Fix relative path in file header
2021-03-09 23:18:28 +08:00
Gustavo Henrique Nihei
47cb41c92f
makefiles: Fix relative path in file header
2021-03-09 23:18:28 +08:00
Alin Jerpelea
0a797f1e8b
boards: Makefile: Author Gregory Nutt: update licenses to Apache
...
Gregory Nutt has submitted the SGA and we can migrate the licenses
to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-03-05 04:08:55 -08:00
Gustavo Henrique Nihei
37ac70b7d9
xtensa/esp32: Add configuration for testing BMP180
2021-03-04 16:31:51 +00:00
Gustavo Henrique Nihei
0735e8c2a7
xtensa/esp32: Fix BMP180 erroneously depending on I2C_DRIVER
2021-03-04 16:31:51 +00:00
Alan C. Assis
29af35faef
esp32: Add board config to support MCP2515
2021-03-04 14:57:56 +00:00
Xiang Xiao
9473434587
Ensure the kernel component don't call userspace API
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-03-01 09:23:09 +09:00
Gustavo Henrique Nihei
ed0a1b724b
xtensa/esp32: Fix typos reported by codespell
2021-02-25 15:02:15 +00:00
YAMAMOTO Takashi
ce6f6d4241
esp32 Kconfig: Move ESP32_SPIFLASH_xxx configs to the common place
...
These are referenced by other boards than esp32-devkitc as well.
2021-02-24 08:19:25 +00:00
Pedro Bertoleti
a4f422a801
This commit enables BMP180 suport for ESP32.
...
As ESP32 has 2 I2C interfaces and BMP180 is a I2C sensor, the criterias to use BMP180 in I2C0 or I2C1 are:
1- First, bring-up routines search for BMP180 in I2C0.
If BMP180 is found in I2C0, then /dev/press0 is created.
2- If BMP180 cannot be registered in I2C0, bring-up routines search for it in I2C1.
If BMP180 is found in I2C1, then /dev/press0 is created.
It means only one BMP180 could be suported in Nuttx. In my tests I've observed
that BMP180 example application doesn't seem to work with /dev/press1 BMP180 device,
therefore even BMP180 is found in I2C1, it'll be registered as /dev/press0 device.
2021-02-22 21:45:16 -03:00
Pedro Bertoleti
79e8a52d86
This commit implements I2C support for ESP32 (wrover kit).
...
It was missing and it wasn't possible to enable I2C (0 and/or 1)
before this fix.
To sum up, this fix implements a I2C register function in ESP32
bring-up routines (esp32_bringup.c) and call if for I2C0 and/or
I2C1 during ESP32 bringup (these function callings are conditioned
by CONFIG_ESP32_I2C (to check if I2C support has been configured),
CONFIG_ESP32_I2C0 (to check if I2C0 support has been configured)
and CONFIG_ESP32_I2C1 (to check if I2C1 support has been configured).
Once this fix is implemented, /dev/i2c0 and/or /dev/i2c1 interfaces
become available and work fine.
2021-02-21 23:33:21 +00:00
Abdelatif Guettouche
10fca18b55
boards/*/esp32: Add instructions on how to use the configs with QEMU.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-02-21 09:57:01 -08:00
Abdelatif Guettouche
adae5083ba
esp32-dekitc:wapi_smp: Select the NETDEVICES dependency.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-02-19 03:29:10 -08:00
Masayuki Ishikawa
f344e7b5bf
boards: esp32-devkitc: Add CONFIG_STACK_COLORATION=y to wapi_smp/defconfig
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-02-18 19:05:07 -08:00
Masayuki Ishikawa
74c56f53aa
boards: esp32-devkitc: Add wapi_smp to test Wi-Fi in SMP mode
...
Summary:
- This commit adds wapi_smp to test Wi-Fi in SMP mode
Impact:
- None
Testing:
- Tested with wapi, telnetd, ostest
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-02-18 09:11:27 +00:00
YAMAMOTO Takashi
aed24f1255
esp32: Retire XTENSA_IMEM_PROCFS
...
Now /proc/meminfo has the equivalent.
2021-02-12 03:16:03 -08:00
Alan C. Assis
f56ff40101
Add esp32_gpio_matrix_in/out to replace ROM functions
2021-02-11 20:39:51 +00:00
Gustavo Henrique Nihei
ccc75a09e9
boards/esp32: Add module config to ESP32 boards defconfig
2021-02-08 21:17:22 +00:00
Masayuki Ishikawa
ad2e85433a
boards, include, sched: Remove CONFIG_SPINLOCK_IRQ
...
Summary:
- This commit removes CONFIG_SPINLOCK_IRQ to avoid complexity
Impact:
- None
Testing:
- Tested with the following configs
- spresense:wifi, spresense:smp
- esp32-devkitc:smp (QEMU), sabre-6quad:smp (QEMU)
- maix-bit:smp (QEMU), sim:smp
- stm32f4discovery:wifi
2021-02-05 22:50:04 -08:00
Alan C. Assis
c4f87977dc
xtensa/esp32: Fix cache issue detected by DEBUG_ASSERTION
2021-02-04 21:22:01 +00:00
Gustavo Henrique Nihei
053a560aa1
esp32: Make esp32 boards share a common Config.mk with POSTBUILD command
2021-02-03 18:15:56 -03:00
Gustavo Henrique Nihei
afad13dfaa
esp32: Refactor QEMU image generation on POSTBUILD
2021-02-03 18:15:56 -03:00
YAMAMOTO Takashi
99a9e2bf3d
esp32: Enable renew for "wapi" configs
...
It's handy to have it when testing wifi stuff.
2021-01-27 00:21:33 -08:00
Alan C. Assis
6a87b85285
xtensa/esp32: Add efuse driver
2021-01-26 18:23:43 -08:00
Dong Heng
4bbc17454c
xtensa/esp32: Add AES hardware accelerator driver
2021-01-21 15:06:35 -03:00
Abdelatif Guettouche
2016f9618f
boards/xtensa/esp32/esp32-wrover-kit/README.txt: Document the
...
configurations.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-01-15 09:47:33 +01:00
Abdelatif Guettouche
6875207985
boards/xtensa/esp32/esp32-wrover-kit: Add an example on how to use GPIO
...
interrupts.
This example uses the GPIO driver with the 3 on board LEDs outputs and one input
as an interrupt pin.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-01-15 09:47:33 +01:00
Sara Souza
6a6121378c
xtensa/esp32: Fixed wdt typos
2020-12-22 20:32:38 +01:00
Sara Souza
16b1a87da4
xtensa/esp32: Added watcher defconfig
2020-12-21 20:20:43 +01:00
YAMAMOTO Takashi
7a9f180faf
esp32: Bump NAME_MAX where CONFIG_ESP32_WIFI_SAVE_PARAM=y
...
CONFIG_ESP32_WIFI_SAVE_PARAM seems to use a bit long names
on the filesystem.
eg. "wifi.nvs.net80211.sta.scan_method", which is 33 characters long.
2020-12-21 09:58:22 +01:00
Sara Souza
add46d0408
xtensa/esp32: Added support for RTC WDT
2020-12-16 14:37:39 +01:00
John Bampton
ba12c6c0cf
Fix spelling
2020-12-12 19:18:08 +01:00
Abdelatif Guettouche
2a9329615a
boards/xtensa/esp32: Normalize all the configs.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-12-10 12:31:17 -06:00
Abdelatif Guettouche
cda3dd6816
baords/xtensa/esp32: Add WAPI and LEDs configs.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-12-10 12:31:17 -06:00
Abdelatif Guettouche
c95aba84f1
boards/xtensa/esp32: Move the LED definition to the private header and
...
remove userleds for boards that don't have that.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-12-10 12:31:17 -06:00
Abdelatif Guettouche
f7c5b467e1
arch/xtensa/src/esp32: Remove the EXPERIMENTAL config from the Wireless.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-12-10 12:31:17 -06:00
Abdelatif Guettouche
452b52a61e
boards/xtensa/esp32/common: Fix functions' descriptions.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-12-10 12:31:17 -06:00
Abdelatif Guettouche
bb336498e4
boards/xtensa/esp32/esp32-wrover-kit: Add autoleds.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-12-10 12:31:17 -06:00
Abdelatif Guettouche
9d74362d75
boards: Add the new boards to the boards's Kconfig.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-12-10 12:31:17 -06:00
Abdelatif Guettouche
bb3b5cd1ee
boards/xtensa/esp32: Add initial support for the ESP-WROVER-KIT.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-12-10 12:31:17 -06:00
Abdelatif Guettouche
cea53ed2ff
boards/xtensa/esp32: Rename the common files as esp32_board_* to avoid
...
any naming collisions.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-12-10 12:31:17 -06:00
Abdelatif Guettouche
e097890f22
boards/xtensa/esp32: Initial support for the ESP32 Ethernet Kit.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-12-10 12:31:17 -06:00
Abdelatif Guettouche
a8f7959a21
boards/xtensa/esp32: Remove the experimental and debug configs.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-12-10 12:31:17 -06:00
Abdelatif Guettouche
3ba5018b37
boards/xtensa/esp32: A bit of re-organisation in the ESP32 boards.
...
Move the common files into the common directory.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-12-10 12:31:17 -06:00
Dong Heng
a59062f719
xtensa/esp32: Optimize IRAM usage based on esp-idf
...
Decrease about 87KB IRAM space cost from Wi-Fi related libs.
2020-12-04 14:33:30 -03:00
Dong Heng
3bb9a42c6b
xtensa/esp32: Refactor ESP32 Wi-Fi driver
2020-12-04 09:39:11 -03:00
Alan C. Assis
3865960b89
esp32/esp32-core: Fix #ifdef warning and update MM_SECTIONS
2020-12-01 21:36:07 +01:00
Abdelatif Guettouche
81968ce562
boards: Allow boards to extend clean and distclean by a double colon
...
target instead of calling a variable.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-11-28 11:07:28 -06:00
chao.an
b1a042734f
style/Document: remove unnecessary trailing whitespace
...
N/A
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-11-28 12:20:30 +01:00
chao.an
32ba194372
style/code: remove unnecessary trailing whitespace
...
N/A
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-11-28 12:20:30 +01:00
chenwen
2991418b2e
xtensa/esp32: keep cpu clock while configured cpu clock is consistent with the default
2020-11-25 10:53:05 -03:00
YAMAMOTO Takashi
fc7d8944d7
boards/xtensa/esp32/esp32-core/src/esp32_bringup.c: Fix a syslog format error
2020-11-20 22:22:53 -08:00
Alan C. Assis
50e1a49c6e
Fix the SPIRAM_BANKSWITCH that was defined incorrectly
2020-11-18 22:21:53 +01:00
Alan C. Assis
f09d103528
xtensa/esp32: Add high memory support to work with PSRAM
2020-11-18 22:21:53 +01:00
Dong Heng
bfb5214ef8
xtensa/esp32: Add SPI Flash hardware encryption I/O support
2020-11-13 08:37:59 +01:00
Sara Souza
8a1960fdf4
Documentation for Watchdog Timer Driver
2020-11-09 08:06:10 -08:00
Sara Souza
b9d44017cf
xtensa/esp32: Watchdog support (MWDTs)
2020-11-08 13:05:24 -03:00
Alan C. Assis
816af60b77
xtensa/esp32: Include cache workaround to PSRAM
2020-11-07 12:08:02 +01:00
Abdelatif Guettouche
f052a9b1e6
baords/xtensa/esp32/esp32-core: Update all configs to add the new region
...
of memory.
2020-11-06 18:36:41 -03:00
Abdelatif Guettouche
2ac2ce55d2
arch/xtensa/src/esp32/esp32_allocateheap.c: Fix the memory regions with
...
regards to the data used by the ROM.
Static alloaction sections should end at the begining of the ROM data.
The rest of memory (End of ROM data --> End of DRAM) is added to the
heap.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-11-06 18:36:41 -03:00
Dong Heng
b54f0edff4
xtensa/esp32: Add Partition and OTA device
2020-11-03 21:54:07 +01:00
chao.an
b88561299b
make/expression: improving up asm/C/C++ compile times
...
In the current compilation environment, the recursive assignment(=) for compile
flags will be delayed until every file is actually need to be compile.
For example:
--------------------------------------------------------------------------------
arch/arm/src/Makefile:
INCLUDES += ${shell $(INCDIR) "$(CC)" $(ARCH_SRCDIR)$(DELIM)chip}
INCLUDES += ${shell $(INCDIR) "$(CC)" $(ARCH_SRCDIR)$(DELIM)common}
INCLUDES += ${shell $(INCDIR) "$(CC)" $(ARCH_SRCDIR)$(DELIM)$(ARCH_SUBDIR)}
INCLUDES += ${shell $(INCDIR) "$(CC)" $(TOPDIR)$(DELIM)sched}
CPPFLAGS += $(INCLUDES) $(EXTRAFLAGS)
CFLAGS += $(INCLUDES) $(EXTRAFLAGS)
CXXFLAGS += $(INCLUDES) $(EXTRAFLAGS)
AFLAGS += $(INCLUDES) $(EXTRAFLAGS)
--------------------------------------------------------------------------------
All compilation options will be included recursively,
which will be delayed until the compilation options are actually used:
tools/Config.mk:
--------------------------------------------------------------------------------
define COMPILE
@echo "CC: $1"
$(Q) $(CC) -c $(CFLAGS) $($(strip $1)_CFLAGS) $1 -o $2
endef
--------------------------------------------------------------------------------
All compile flags to be reexecuted $(INCDIR) as long as one file needs to be compiled,
but in fact, the compilation options have not changed in the current directory.
So the we recommand to change the syntax of assignment
From
Recursive (=)
To
Simple (:=)
In this way, we can ensure that all compilation options are expanded only once and reducing repeated works.
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-11-02 07:53:53 -08:00
Brennan Ashton
162da1169e
CI: Store artifacts durring build
...
Add new option -A is added to tools/testbuild.sh that will take the
created build executable and store it in a folder for the config
that generated it under $ARTIFACTDIR which can be set via an
environment variable or defaulted to $(TOPDIR)/buildartifacts
This is also helpful for local testing because you can now run
tools/testbuild.sh -A sim.dat and have all of the simulation
targets generated without having to rebuild along the way.
In the GitHub Actions workflow the artifacs are uploaded
two two bundles one for macOS and one for Linux
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2020-10-28 11:32:21 -07:00
Sara Souza
ddc0d30063
xtensa/esp32: Added Userled support
2020-10-27 15:38:03 -03:00
YAMAMOTO Takashi
d8bee6769a
esp32_flash.ld: Avoid having too many sections
...
Fixes an issue I saw when trying libcxx.
esptool.py has a limit of 16 sections.
It complains like:
A fatal error occurred: Invalid segment count 23 (max 16).
Usually this indicates a linker script problem.
2020-10-25 19:42:21 -07:00
Abdelatif Guettouche
9b98f20969
arch/xtensa: Fix the naming of the internal heap functions. They should
...
be prefixed by xtensa_ instead of up_.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-10-25 20:20:01 -03:00
Abdelatif Guettouche
c91db9eb40
baords/xtensa/esp32/esp32-core: Refresh all the defconfigs
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-10-25 20:20:01 -03:00
Abdelatif Guettouche
f0ae1dd54a
arch/xtensa/src/esp32: Fix PR #1958 nxstyle issues.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-10-25 20:20:01 -03:00
Abdelatif Guettouche
430e2d766d
boards/xtensa/esp32/esp32-core/configs: When there is no PSRAM, only one
...
memory region is available.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-10-25 20:20:01 -03:00
Abdelatif Guettouche
1b12d20225
arch/xtensa/src/esp32/esp32_spiflash.c&esp32_spi.c: Allocate a buffer from DRAM
...
when the given buffer is from PSRAM.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-10-25 20:20:01 -03:00
Abdelatif Guettouche
7ac5f7a35b
arch/xtensa/src/esp32: Add a PROCFS entry for the internal memory
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-10-25 20:20:01 -03:00
chenwen
67c0af650f
xtensa/esp32: Add power management of deep-sleep
2020-10-17 19:38:14 -03:00
Alan C. Assis
fdc44dc6fc
Add PSRAM board config test and update README
2020-10-17 20:02:43 +01:00
Dong Heng
a0b84ae53e
xtensa/esp32: Add ESP32 WiFi adapter and driver
2020-10-17 22:46:27 +09:00
Sara Souza
0faf861256
xtensa/esp32: Added Timer Support
2020-10-07 14:12:22 -03:00
Abdelatif Guettouche
caa945cb24
arch/xtensa/src/esp32: Add a way to retrieve reset cause.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-10-07 11:51:47 -03:00
Abdelatif Guettouche
c20c8c6dd5
arch/xtensa/esp32: Implement system reset.
...
Both CPUs are soft-reset with a call to board_reset. This is actually a
Core Reset, so both cores and all registers are reset. The only
exception is RTC.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-10-07 11:51:47 -03:00
chenwen
64e2f102ac
xtensa/esp32: Add power management of force-sleep
2020-09-20 17:23:07 +01:00
Abdelatif Guettouche
e90eee92d9
boards/xtensa/esp32/esp32-core/scripts/esp32.template.ld: Update the
...
linker script and correct some addresses.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-09-15 15:05:02 +08:00
Abdelatif Guettouche
f1b74fe421
boards/xtensa/esp32/esp32-core/scripts/esp32.template: Rename the file
...
to have it automatically syntax highlited in editors.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-09-15 15:05:02 +08:00
Abdelatif Guettouche
b1f851c987
boards/xtensa/esp32/esp32-core/scripts/Make.defs: Generate a map file
...
with a cross reference table.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-09-15 15:05:02 +08:00
Abdelatif Guettouche
7d1ac72b9b
boards/Board.mk: Make the context target a double colon target and allow
...
other obards to extend it instead of relaying on a definition of a variable.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-09-15 09:48:33 +08:00
Abdelatif Guettouche
53b975ff79
boards/xtensa/esp32/esp32-core: Add a defconfig example for the
...
SPIFlash.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-09-11 14:14:43 -03:00
Abdelatif Guettouche
d485ccc142
boards/xtensa/esp32/esp32-core: Support for the external FLASH.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-09-11 14:14:43 -03:00
Xiang Xiao
d1d8f2515d
boards/esp32: Remove CONFIG_NFILE_STREAMS option
...
since it is removed in:
commit b0797263ca
Author: Xiang Xiao <xiaoxiang@xiaomi.com>
Date: Thu Aug 13 18:17:29 2020 +0800
libc/stdio: Allocate file_struct dynamically
1.Reduce the default size of task_group_s(~512B each task)
2.Scale better between simple and complex application
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ia872137504fddcf64d89c48d6f0593d76d582710
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-09-11 20:47:41 +08:00
Xiang Xiao
b0797263ca
libc/stdio: Allocate file_struct dynamically
...
1.Reduce the default size of task_group_s(~512B each task)
2.Scale better between simple and complex application
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ia872137504fddcf64d89c48d6f0593d76d582710
2020-09-11 17:58:17 +08:00
Xiang Xiao
952af92690
sched/note: Move the circle buffer code to driver
...
so the format code can be shared by different transport
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-09-07 11:54:10 +08:00
Ouss4
41f432eb18
boards/xtensa/esp32/esp32-core: Add support for an MMCSD card over SPI.
2020-09-04 17:43:51 -03:00
Ouss4
8d32930d29
arch&boards/xtensa: Fix some typos, references to STM/ARM code and
...
change file headers where Gregory Nutt is the only author.
2020-08-27 05:48:55 -07:00
Alan C. Assis
52d7d0cb98
ESP32: Add board config to RNG driver
2020-08-23 08:26:10 -06:00
Alan C. Assis
4ded03a673
ESP32: Add support to RNG HW Driver
2020-08-23 08:26:10 -06:00
Alan C. Assis
4c31ada2ce
Fix a small typo - reported by Greg Nutt
2020-08-22 09:54:16 -07:00
Alan Carvalho de Assis
4d0f05c340
Update to divide long URL across many lines
...
Co-authored-by: patacongo <spudarnia@yahoo.com>
2020-08-20 15:15:07 -06:00
Alan C. Assis
5b719daf69
Fix issues reported in the pull request and update defconfig
2020-08-20 15:15:07 -06:00
chenwen
1e9ef469dc
xtensa/esp32: Add functions to switch CPU frequency from 80MHz to 240Mhz
2020-08-20 15:15:07 -06:00
Xiang Xiao
a0ce81d659
sched/wdog: Don't dynamically allocate wdog_s
...
to save the preserved space(1KB) and also avoid the heap overhead
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I694073f68e1bd63960cedeea1ddec441437be025
2020-08-11 12:28:55 -06:00
Alin Jerpelea
b02b1663df
boards: xtensa: esp32: update netnsh defconfig
...
In the commit
612acb9d93
the CONFIG_PREALLOC_MQ_MSGS is set by default to 4 and should be removed from defconfig.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2020-08-10 09:52:29 +01:00
Xiang Xiao
154852acb5
sched/mqueue: Reduce the initial memory consumption
...
Change the preallocated message and descriptor from 32/24 to 4.
The total size is reduce from 1892 to 532
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I79d199465daef678986868f773876289859f42fc
2020-08-10 08:07:50 +02:00
Masayuki Ishikawa
456c47643a
boards: esp32-core: Fix CI errors in netnsh/defconfig
...
Summary
- This commit should fix CI errors
Impact
- No impact
Testing
- Build check only
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-08-06 19:02:09 -07:00
Alan C. Assis
b815f4935c
Add Ethernet netnsh board configuration example
2020-08-06 19:47:02 -03:00
Alan C. Assis
6ea7b29088
Add ESP32 Ethernet device driver
...
This driver was implemented by Dong Heng<dongheng@espressif.com>
and reviewed by Alan Carvalho de Assis
2020-08-06 23:35:16 +01:00
Xiang Xiao
e1d3627bb1
sched/wdog: Change the default value of MAX_WDOGPARMS from 4 to 2
...
since the maximum number of argument pass to wd_start in the whole
code base is 2 and change CONFIG_MAX_WDOGPARMS in some defconfig
from 1 to 2 oherwise pthread_condclockwait will fail
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ib6cb28b8c0722058849e7be916e164513431d21c
2020-08-06 10:36:22 -06:00
Alan C. Assis
c06d3e1b0a
xtensa/esp32: Add SPI Flash device driver
...
ESP32 runs code in a SPI Flash, so users can also use it to store
data directly or mount some parts into a filesystem.
The SPI Flash usually use SPI0.
This driver was implemented by Dong Heng dongheng@espressif.com
and modified to fix coding style by Alan Carvalho de Assis.
2020-07-31 23:37:30 +01:00
Xiang Xiao
b329e2377d
boards: Move toolchain related variables to Toolchain.defs
...
1.It make sense to let Toolchain.defs give the default value
2.The board can still change if the default isn't suitable
3.Avoid the same definition spread more than 200 Make.defs
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ic2649f1c7689bcf59c105ca8db61cad45b6e0e64
2020-07-20 17:10:37 +01:00
Xiang Xiao
ee875b2a26
boards: Move HOSTCC/HOSTCFLAGS to tools/Config.mk
...
Make.defs under board folder can still overwrite the default as needed
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I1c300a8ace4b54d475ef8d398661ed65ca273a2e
2020-07-15 19:14:58 +01:00
Xiang Xiao
d32e9c38df
boards: Move the C/C++ search path to the common place
...
so all boards support uClibc++/libc++ automatically
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ibe6fafbec57f7acb26ea6188a3e9923ea82295c5
2020-07-13 15:11:12 -03:00
Xiang Xiao
49020acfdc
boards: Remove the unused CONFIG_xxx_CXXINITIALIZE=y
...
since cxx initialization is controlled by CONFIG_HAVE_CXXINITIALIZE now
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I39438dc3006d0a0b810052ecef50cd3c92f09d83
2020-07-01 10:41:37 -06:00
Gregory Nutt
198b8ae380
boards: Leverage PR 1150 to all remaining board Make.defs
...
Only Make.defs files tht followed the same pattern as the ARM Make.defs were modified. This excludes some of the sim and renesas Make.defs files and all of the z80 Make.defs files.
2020-05-31 16:11:07 +01:00
Xiang Xiao
8b20b97d26
build: Remove the dummy drivers folder under boards
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-24 20:20:12 +01:00
Xiang Xiao
e83c1400b6
build: Move BOARD_DIR definition to common place
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-24 20:20:12 +01:00
Xiang Xiao
7e5b0f81e9
build: Replace -I with INCDIR
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-24 20:20:12 +01:00
Xiang Xiao
23668a4b9b
build: Remove the empty variable assignment
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-24 08:24:13 -06:00
Xiang Xiao
dd61d3d9f9
build: Remve the unnecessary .gitignore
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-23 18:00:40 +01:00
Xiang Xiao
1a95cce1a3
build: Move .config check to the top Makefile
...
remove the workaround to handle the inexistence of .config/Make.defs
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-20 17:57:34 +01:00
Xiang Xiao
7faf3c0254
build: replace ${TOPDIR} with $(TOPDIR) in Makefile
...
make the usage consistence
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-19 19:23:18 +01:00
Xiang Xiao
567962bd62
build: Move the extension definition to common place
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-19 19:23:18 +01:00
Xiang Xiao
8b42ee421a
build: Move MKDEP definition to common place
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-19 19:23:18 +01:00
Xiang Xiao
9ec9431706
build: Move DIRLINK/DIRUNLINK definition to common place
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-19 19:23:18 +01:00
Xiang Xiao
bd656888f2
build: Replace WINTOOL with CYGWIN_WINTOOL Kconfig
...
so the correct value can be determinated by Kconfig system automatically
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-18 15:02:55 -06:00
Nathan Hartman
8d985819b3
Fix typos
...
Comments only. No functional changes.
2020-05-14 10:49:44 -06:00
Xiang Xiao
ea58adb371
esp32-core/Make.defs: Remove "-MMD -MP" from ARCHCFLAGS
...
since this should be done by makedep program
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-28 21:28:15 -07:00
Xiang Xiao
2810220ea9
Update defconfig per refresh.sh report
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-20 07:07:32 -06:00
Xiang Xiao
2ec8f60e53
Run refresh.sh --silent all
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-18 07:17:38 -06:00
liuhaitao
4c7274c2a4
esp32: Remove the unecessary PREPROCESS call to fix build warning
...
xtensa-esp32-elf-gcc: warning: /home/jenkins/jenkins-slave/workspace/NuttX-Nightly-Build/nuttx/boards/xtensa/esp32/esp32-core/scripts/esp32.template: linker input file unused because linking not done.
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-04-14 15:20:52 +08:00
liuhaitao
459ad99373
Use EXTRAFLAGS instead of EXTRADEFINES to be used by make via command line
...
So call 'make EXTRAFLAGS=-Wno-cpp' could suppress the warnings with pre-processor
directive #warning in GCC.
Change-Id: Iaa618238924c9969bf91db22117b39e6d2fc9bb6
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-04-11 08:31:08 -06:00
hartmannathan
bfc153ca27
Fix typos in comments and documentation ( #750 )
...
* Fix typos in comments and documentation
2020-04-08 06:45:35 -06:00
YAMAMOTO Takashi
a25ad63582
esp32: Bump idle stack size
...
This fixes crashes in ostest with the smp config.
The value was taken from ostest config.
Note that this board doesn't implement interrupt stack.
2020-03-30 11:46:25 -03:00
YAMAMOTO Takashi
3d78be81d2
esp32: README: Add FT232HL jumper settings and pin outs
2020-03-30 09:59:05 +01:00
YAMAMOTO Takashi
34de90e632
esp32: Another OpenOCD example config
2020-03-29 23:55:45 -05:00
Brennan Ashton
f787df1d38
Pull the ESP32 binary blobs from a configurable path
2020-03-28 06:58:35 -05:00
Xiang Xiao
e4c8f5d767
esp32: Guard the binary generation with CONFIG_ESP32CORE_BINARY
2020-03-23 19:19:43 +00:00
YAMAMOTO Takashi
1ffa009c8b
Revert "Don't generate .depend anymore"
...
This reverts commit 79af7fbf4e
.
Because:
* btashton reported some issues in local builds:
https://github.com/apache/incubator-nuttx/pull/603#issuecomment-602264860
* this might be related to the current CI breakage:
> /bin/sh: 1: /__w/incubator-nuttx/incubator-nuttx/nuttx/tools/mkdeps: not found
2020-03-22 23:07:29 -05:00
Xiang Xiao
79af7fbf4e
Don't generate .depend anymore
2020-03-22 18:15:29 +00:00
Miguel Herranz
d410a29693
Support to run NuttX on ESP32 QEMU
2020-03-21 14:03:07 -06:00
YAMAMOTO Takashi
c683bce4cd
esp32-core/README: Use the default partition table offset
...
And mention the relevant ESP-IDF config.
2020-03-18 09:49:40 +01:00
YAMAMOTO Takashi
430a2178fb
esp32-core: Document how to disable RTC watchdog timer
2020-03-16 09:47:48 -06:00
YAMAMOTO Takashi
855751b534
Introduce instruction memory allocator
...
Necessary for dlfcn etc on ESP32, which has separate memory regions
for instruction and data.
known issues/todo
* consider something similar to dual heaps for PROTOECTED
* consider to adapt binfmt as well
2020-03-16 07:54:49 -06:00
YAMAMOTO Takashi
bf2cfd4b1a
Add -mtext-section-literals to avoid out of range relocations
2020-03-16 07:54:49 -06:00
YAMAMOTO Takashi
2776a5bbea
Replace a few Gregory Nutt's copyright notices with Apache 2.0
...
The text was copied from sched/sched/sched_getcpu.c.
2020-03-16 07:54:49 -06:00
YAMAMOTO Takashi
b2627225bd
Update file paths of copy-and-paste'ed files
2020-03-16 07:54:49 -06:00
YAMAMOTO Takashi
3f80f806ef
xtensa: Add module/elf definitions
2020-03-16 07:54:49 -06:00