Commit Graph

201 Commits

Author SHA1 Message Date
Gustavo Henrique Nihei
2efae6928d drivers/input: Rename BUTTONS configs to INPUT_BUTTONS 2021-04-08 14:41:22 -03:00
Matias N
ab206687bb Replace wrong inclusion of sys/errno.h (toolchain provided) with errno.h 2021-04-07 21:27:06 -05:00
Matias N
bc8a6772f6 Documentation: migrate ESP32DevKit README into docs 2021-04-07 22:34:33 +01:00
Matias N
d88b5aac97 esp32: move common XTAL and RUN_IRAM configs to ESP32 KConfig 2021-04-07 21:45:48 +01:00
Abdelatif Guettouche
b198c63512 boards/xtensa/esp32: Update some old information in README.txt files.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-04-06 22:40:14 -05:00
Abdelatif Guettouche
19f3523499 boards/xtensa/esp32: Update Kconfig helps when it comes to running from
IRAM.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-04-06 22:40:14 -05:00
Alan C. Assis
cd08694698 esp32 boards: BUTTON_BOOT should use PULLUP instead PULLDOWN 2021-04-05 23:06:03 -05:00
Alan C. Assis
6481eb6523 esp32-devkitc: Add BMP180 sensor support 2021-04-04 10:54:02 -05:00
Alan C. Assis
ec1b89e264 esp32-wrover-kit: Don't use User GPIO Subsystem to control LED
The GPIO_LEDx are already used by esp32_userleds.c, they shouldn't
be used by esp32_gpio.c. This patch also includes the GPIO Input
example (GPIN) that was missing.
2021-04-03 09:37:38 -05:00
Abdelatif Guettouche
f07b64d1af boards/xtensa/esp32/*/esP32_bringup.c: Remove unused comments blocks and
garbage at the end of the files.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-04-01 12:15:34 -05:00
Abdelatif Guettouche
b925c73110 boards/xtensa/esp32: Move the WLAN initialization to the common
directory.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-04-01 12:15:34 -05:00
Alin Jerpelea
3d96d5f2ce arch: esp32: Mixed Case identifier fix
Fix Mixed Case Identifier reported by nxstyle

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-04-01 12:13:12 -05:00
Abdelatif Guettouche
fcf5c1501e boards/xtensa/esp32-devkitc: Add MQTT-C defconfig.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-03-31 10:01:08 -05:00
Gustavo Henrique Nihei
d89b2b4092 boards/esp32-wrover-kit: Disable unnecessary SPI driver from nsh config 2021-03-30 04:11:31 -05:00
Gustavo Henrique Nihei
6d93d948de boards/esp32-ethernet-kit: Disable unnecessary SPI driver from nsh config 2021-03-30 04:11:31 -05:00
Gustavo Henrique Nihei
6949ec1074 boards/esp32-devkitc: Disable unnecessary SPI driver from nsh config 2021-03-30 04:11:31 -05:00
Alan C. Assis
7e9faa9725 esp32-devkitc: Add GPIO board support 2021-03-28 13:33:48 -07:00
Abdelatif Guettouche
04b9b8f6db esp32-devkitc: Make nsh the entry-point of the ostest config.
This makes it consistent with other configs and helps with scripting.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-03-26 12:14:16 -05:00
Sara Souza
59313c86d1 xtensa/esp32: Adds oneshot timer driver. 2021-03-24 16:01:26 -03:00
chenwen
f54aef9977 xtensa/esp32: Support esp32 wireless ioctl cmd 2021-03-23 16:29:52 -03:00
Gustavo Henrique Nihei
ca05ff5ffb boards/esp32-ethernet-kit: Add configuration for testing Button device 2021-03-23 16:29:15 -03:00
Gustavo Henrique Nihei
72d98e645a boards/esp32-ethernet-kit: Add Button support via the BOOT button 2021-03-23 16:29:15 -03:00
Gustavo Henrique Nihei
c759f7e30e boards/esp32-devkitc: Add configuration for testing Button device 2021-03-23 16:29:15 -03:00
Gustavo Henrique Nihei
fca65f08cf boards/esp32-devkitc: Add Button support via the BOOT button 2021-03-23 16:29:15 -03:00
Gustavo Henrique Nihei
d8073c2fd8 boards/esp32-wrover-kit: Add configuration for testing Button device 2021-03-23 16:29:15 -03:00
Gustavo Henrique Nihei
c29770cde1 boards/esp32-wrover-kit: Add Button support via the BOOT button 2021-03-23 16:29:15 -03:00
Abdelatif Guettouche
cc23bdeca4 boards/xtensa/esp32: Add a section in external memory to hold some BSS
data.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-03-23 16:39:01 +09:00
Masayuki Ishikawa
9cce09e58a boards: Remove SCHED_INSTRUMENTATION from all SMP related configs
Summary:
- This commit removes SCHED_INSTRUMENTATION which has been used
  to debug NuttX SMP kernel

Impact:
- None

Testing:
- Tested with ostest

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-03-22 19:47:56 -07:00
Abdelatif Guettouche
04dffb551d boards/xtensa/esp32: Delete the QEMU generated image on distclean.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-03-22 09:51:49 +09:00
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