Gustavo Henrique Nihei
76acb32e29
Fix typos reported by codespell
2021-02-25 11:31:49 -08:00
Gustavo Henrique Nihei
b9f231cdca
include: Fix typos reported by codespell
2021-02-25 11:30:38 -08:00
hotislandn
651b905b99
arch:rv64:add API up_copyfullstate for later FPU support.
...
Signed-off-by: hotislandn <hotislandn@hotmail.com>
2021-02-25 11:26:27 -08:00
Yuichi Nakamura
a556bbf3a4
arm/rp2040: Fix LDFLAGS for boot stage2
2021-02-25 11:25:27 -08:00
Gustavo Henrique Nihei
7fe096c65e
risc-v: Fix typos reported by codespell
2021-02-25 16:25:47 +00:00
Gustavo Henrique Nihei
ed0a1b724b
xtensa/esp32: Fix typos reported by codespell
2021-02-25 15:02:15 +00:00
Alin Jerpelea
561428fb84
libs: nxstyle fixes
...
nxstyle fixes to pass the CI
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-02-25 01:44:30 -08:00
Alin Jerpelea
88fa869a04
libnx: 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-02-25 01:44:30 -08:00
Alin Jerpelea
9dd35d8d83
libcxx: : 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-02-25 01:44:30 -08:00
Alin Jerpelea
fe9ccffe2b
libs: libnx: nxfonts: fix Mixed case identifier
...
Fix Mixed case identifier to pass nxstyle CI check
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-02-25 01:44:30 -08:00
hotislandn
30cb7d3983
arch:rv32:up_sigdeliver missing fpu contexts.
...
Signed-off-by: hotislandn <hotislandn@hotmail.com>
2021-02-24 23:42:18 -08:00
YAMAMOTO Takashi
542574acd6
libs/libc/modlib/modlib_init.c: initialize file descriptor with -1
...
Use -1 instead of 0 to represent an invalid descriptor
so that modlib_uninitialize doesn't try to close the descriptor 0.
2021-02-24 23:42:06 -08:00
YAMAMOTO Takashi
bac6b11065
sched/module/mod_insmod.c: Fix a resource leak
...
Note: partially initialized loadinfo should be uninitialized.
It can contain an open file descriptor.
2021-02-24 23:42:06 -08:00
Masayuki Ishikawa
8085010ae8
arch: arm: Add 'select ARM_HAVE_WFE_SEV' to ARCH_CHIP_RP2040
...
Summary:
- This commit adds 'select ARM_HAVE_WFE_SEV' to ARCH_CHIP_RP2040
- Now NuttX spinlock uses WFE/SEV to reduce power consumption
- Also, modify a comment on rp2040
Impact:
- rp2040 only
Testing:
- Tested with raspberrypi-pico:smp
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-02-24 19:12:22 -08:00
Byron Ellacott
3e3af5b73d
net: fix a few DP83848C and DP83825I constants
2021-02-24 19:04:05 -08:00
Nathan Hartman
7c5174a53b
arch/stm32f7: Fix nxstyle errors
...
arch/arm/src/stm32f7/stm32_config.h,
arch/arm/src/stm32f7/stm32_dma.h,
arch/arm/src/stm32f7/stm32_dma2d.h,
arch/arm/src/stm32f7/stm32_dtcm.h,
arch/arm/src/stm32f7/stm32_dumpgpio.c,
arch/arm/src/stm32f7/stm32_ethernet.h,
arch/arm/src/stm32f7/stm32_gpio.c,
arch/arm/src/stm32f7/stm32_gpio.h:
* Fix nxstyle errors.
2021-02-24 22:39:49 +00:00
Yuichi Nakamura
01699e00e0
arm/rp2040: Raspberry Pi Pico SMP support
2021-02-25 07:20:59 +09:00
Jiuzhu Dong
936ce77d21
driver/sensor: gets the capacity of the hardware fifo
...
to hold the number of events
Change-Id: I58a9ad07913c7b189e1fd229ab22e91e220e01f6
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-02-24 15:26:15 -03:00
Jiuzhu Dong
46ea549630
driver/sensor: Fetch(with O_NONBLOCK) will directly return.
...
when sensor is disable.
Change-Id: I02c02aa447ee0b0d681082b4209ecd36e10f2547
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-02-24 15:26:15 -03:00
Jiuzhu Dong
54ea96da6b
driver/sensor: replace lower->buffer_size with lower->buffer_number
...
more efficient
Change-Id: I0823b10248caf75e4dd6a5086ad230ba4a7298f6
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-02-24 15:26:15 -03:00
Gustavo Henrique Nihei
6edeb9ebd9
risc-v/esp32c3: Free CPU interrupt if irq_attach fails
2021-02-24 15:56:26 +00:00
Gustavo Henrique Nihei
5c24c98880
risc-v/esp32c3: Invalidate CPU interrupt number after free
2021-02-24 15:56:26 +00:00
Byron Ellacott
41b805813f
libc/hex2bin: fix handling of segment offsets
2021-02-24 07:01:45 -08:00
Jiuzhu Dong
142406bd2a
builtin: execute app whose filename is longer than NAME_MAX
...
Change-Id: I0d8ed47c0391e65467cc8a2f4f499b0fbfa8c122
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-02-24 05:21:39 -08:00
YAMAMOTO Takashi
ee8cea1f4b
esp32: xtensa_user: Implement a few more instructions
...
You can find them used in the ROM version of memcpy.
While it might be controversial if it's a good idea to use the ROM version
of these functions, it's nicer to support more instructions here anyway.
2021-02-24 10:34:55 +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
Abdelatif Guettouche
fb68a4b777
esp32c3: Add system reset.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-02-23 18:13:02 -08:00
Gustavo Henrique Nihei
48ff647fe9
risc-v/esp32c3: Fix erroneous references to ESP32-C3
2021-02-23 18:12:16 -08:00
David Sidrane
62321fa5db
s32k1xx:Support ramfunc
2021-02-23 18:11:41 -08:00
Gustavo Henrique Nihei
07900cdce9
Fix typo in "repetitions" word
2021-02-23 07:18:33 -08:00
Xiang Xiao
e7c97ce7f0
fs: Merge fs_poll into poll_fdsetup
...
to avoid the user misuse the wrong funciton
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-02-23 08:39:48 -03:00
Dong Heng
7c9c9907ef
boards/esp32c3: Add tmpfs mounting when bringing up
2021-02-23 00:41:08 -08:00
Nathan Hartman
c90fffcc09
arch/stm32f7: Fix nxstyle errors
...
arch/arm/src/stm32f7/stm32_pwr.c,
arch/arm/src/stm32f7/stm32_pwr.h,
arch/arm/src/stm32f7/stm32_usbhost.h:
* Fix nxstyle errors.
2021-02-22 18:18:58 -08: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
Gustavo Henrique Nihei
3850df7a78
tools/esp32: Fix warnings from ShellCheck
2021-02-22 17:39:33 +00:00
Gustavo Henrique Nihei
af8e71d9e9
risc-v/esp32c3: Fix inconsistent guard comment
2021-02-22 09:24:14 -08:00
Gustavo Henrique Nihei
628e2288aa
risc-v/esp32c3: Add missing header guard for lowputc
2021-02-22 09:24:14 -08:00
Gustavo Henrique Nihei
ca30c1db69
risc-v/esp32c3: Build serial driver only when selected
2021-02-22 09:24:14 -08:00
Abdelatif Guettouche
491a4c1ed2
risc-v/esp32c3: Don't reserve any vectors for any special use.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-02-22 09:21:24 -08:00
Gustavo Henrique Nihei
291a5755cc
risc-v/esp32c3: Add support for MWDT0 and MWDT1
2021-02-22 17:18:01 +00:00
Yuichi Nakamura
7b8c72ec1b
boards: raspberrypi-pico: Add nshsram defconfig for SRAM build
2021-02-22 09:11:09 -08:00
Masayuki Ishikawa
1f61c58e43
boards: raspberrypi-pico: Normalize nsh/defconfig
...
Summary:
- This commit normalizes nsh/defconfig
Impact:
- None
Testing:
- None
2021-02-22 12:14:47 +00:00
Brennan Ashton
f23f2a8557
Fix context switch bug for pic32mx
2021-02-21 22:24:12 -08:00
Masayuki Ishikawa
cf72133d3c
rp2040: Continue to build even if PICO_SDK_PATH is not set
...
Summary:
- In the previous implementation, the build system stops if
PICO_SDK_PATH is not set.
- However, this behavior is not good for CI. Because the path
is only used to generate a flash image.
- This commit fixes this issue
Impact:
- rp2040 only
Testing:
- Tested with and without PICO_SDK_PATH
2021-02-21 20:30:58 -08:00
Brennan Ashton
7a9e9b770f
pic32mz does not have ANSELJ register on port K
2021-02-21 18:27:56 -08: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
2c338a3ad0
tools/esp32xx/Config.mk: Update the binaries names to reflect the same
...
name used with the esp-nuttx-bootloader repo.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-02-21 09:57:01 -08: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
86fd6843c3
tools/esp32: Refine the QEMU image generation.
...
Use the usual while loop idiom when parsing arguments.
Add more options to the script to be able to specify the name of the
NuttX binary and final image.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-02-21 09:57:01 -08:00
Alexander Vasiljev
8bb50b578b
arch/stm32h7: add definitions for DAC
2021-02-21 07:39:05 -08:00