Commit Graph

1172 Commits

Author SHA1 Message Date
Masayuki Ishikawa
aa4a30f81c boards: lm3s6965-ek: Add iperf to discover/defconfig
Summary:
- This commit adds the following configs
  +CONFIG_EXAMPLES_IPERF=y
  +CONFIG_EXAMPLES_IPERFTEST_DEVNAME="eth0"
  +CONFIG_NET_ETH_PKTSIZE=1514

Impact:
- lm3s6965-ek:discover only

Testing:
- Tested with qemu

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-01-15 08:30:05 -06: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
liang
caf2d1430e arch/risc-v/bl602: add gpioirq and i2c(master) driver 2021-01-14 08:55:03 -08:00
YAMAMOTO Takashi
4e6adefc2b sim: Use c++14 for LIBCXX
The compiler default varies among the environment.
Especially, the default std version for xcode clang doesn't work
for libcxx.

This commit just ensures to use the consistent std version
among compilers.  we can come up with a more sophisticated way
to control the version later if desiable.

clang/macOS (from xcode):

    spacetanuki% c++ -dM -E -x c++ /dev/null | grep __cplusplus
    #define __cplusplus 199711L
    spacetanuki% c++ --version
    Apple clang version 11.0.0 (clang-1100.0.33.17)
    Target: x86_64-apple-darwin18.7.0
    Thread model: posix
    InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
    spacetanuki%

clang/macOS (from homebrew):

    spacetanuki% /usr/local/Cellar/llvm/11.0.0/bin/clang++ -dM -E -x c++ /dev/null | grep __cplusplus
    #define __cplusplus 201402L
    spacetanuki% /usr/local/Cellar/llvm/11.0.0/bin/clang++ --version
    clang version 11.0.0
    Target: x86_64-apple-darwin18.7.0
    Thread model: posix
    InstalledDir: /usr/local/Cellar/llvm/11.0.0/bin
    spacetanuki%

gcc/ubuntu:

    root@477d94753e9b:/# c++ -dM -E -x c++ /dev/null | grep __cplusplus
    #define __cplusplus 201402L
    root@477d94753e9b:/# c++ --version
    c++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
    Copyright (C) 2019 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    root@477d94753e9b:/#
2021-01-14 04:26:12 -06:00
YAMAMOTO Takashi
3fc06ff2d1 sim: Specify -fshort-wchar as NuttX wchar_t is 16-bit
* For C, wchar_t is provided by the OS. On NuttX, it's uint16_t.
  (Except wide character literals, which uses the compiler
   built-in knowledge of wchar_t.)

* For C++, wchar_t is a built-in type. It's provided by the compiler.

* The compilers built-in wchar depends on the compiler configuration.
  For the sim, the compilers are usually configured with wchar_t == int,
  which is 32-bit.

* wchar_t should be compatible between C and C++.

This commit fixes the mismatches by telling the compiler to use
16-bit wchar_t.

An alternative is to make NuttX use 32-bit wchar_t if the compiler
is configured with 32-bit wchar_t. It can increase the runtime
footprint. While it might be ok for the sim, it might be a problem
for real devices.
2021-01-14 04:26:12 -06:00
Xiang Xiao
0dc6990166 Fix nxstyle warning
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-01-13 08:57:58 +01:00
Xiang Xiao
0536953ded Kernel module should prefer functions with nx/kmm prefix
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-01-13 08:57:58 +01:00
liang
32708ab849 arch/risc-v/bl602 : add spiflash(hardware sf controller) 2021-01-11 17:59:00 -08:00
YAMAMOTO Takashi
fc7cddee39 Deal with "sed -i" portability
An empty extension for sed -i is not widely available.

* Where it isn't available (eg. macOS's sed) "sed -i -e" will
  create a backup file with the "-e" suffix.

* Even GNU sed documentation says it's "not recommended".

This commit deals with it by:

* Replace it with a more appropriate tool (kconfig-tweak)

* Or, specify the extension (.bak)
2021-01-11 08:38:19 +01:00
liang
2889315c20 arch/risc-v/bl602 : add pwm onshot watchdog driver. 2021-01-06 23:40:37 -08:00
Masayuki Ishikawa
84283d0911 boards: sabre-6quad: Update README.txt
Summary:
- This commit updates how to build the u-boot
- Also adds tftpboot

Impact:
- No impact

Testing:
- Tested with sabre-6quad board

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-01-06 20:18:28 -06:00
RB
4e6ce1f00b Updated README.txt 2021-01-04 05:26:32 -06:00
Brennan Ashton
dd26d9c9f9 BL602: Add support for system reboot modes
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2021-01-02 00:14:37 -06:00
Brennan Ashton
e062bd08ce bl602: Update register defines and drivers 2020-12-30 23:27:42 -06:00
Xiang Xiao
753cb6c22b bluetooth: Remove BLUETOOTH_UART_BT860 from Kconfig
it isn't difference from BLUETOOTH_UART_OTHER, so let's use the later instead

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-12-29 18:11:21 -08:00
Virus.V
5f71e2be79 fix ci build failed 2020-12-29 01:52:09 -08:00
Virus.V
3e0a84182e check bl602 license 2020-12-29 01:52:09 -08:00
yangyue
d354a2f19f fix some code style 2020-12-29 01:52:09 -08:00
Virus.V
2b8e0945a9 Fix BL602 CI Build failed.
Modify the default configuration in KConfig.
Sync latest commit from mainline.

Remove unused demo configuration

fixup bl602 nsh defconfig cause CICD failed

Rebase from mainline code
2020-12-29 01:52:09 -08:00
Virus.V
7e84874cb1 Reconstruct bl602 readme; move up_irq_save/restore declaration to common place 2020-12-29 01:52:09 -08:00
Virus.V
ce40edbd11 Solve the problems pointed out in the comments 2020-12-29 01:52:09 -08:00
Lei Chen
58bd873729 Add Basic support for BL602(UART timer CLIC) 2020-12-29 01:52:09 -08:00
Masayuki Ishikawa
3e4917e3b6 boards: stm32f4discovery: Replace license header with Apache License 2.0
Summary:
- This commit replaces SHES related headers under stm32f4discovery

Impact:
- No impact

Testing:
- Build check only

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-12-28 08:43:35 +01:00
Masayuki Ishikawa
96769b0722 boards: cxd56xx: Replace license header with Apache License 2.0
Summary:
- This commit replaces SHES related headers under cxd56xx

Impact:
- No impact

Testing:
- Build check only

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-12-28 08:43:35 +01:00
Masayuki Ishikawa
38733b76df boards: stm32f4discovery: Fix style violations
Summary:
- This commit fixes style violations in stm32_mmcsd.c

Impact:
- No impact

Testing:
- Build check only

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-12-28 08:43:35 +01:00
YAMAMOTO Takashi
374d05a05a Revert "board/sim: Remove the too strict warning"
This reverts commit e70bff723b.

* These warnings sometimes find real bugs. There are ways to disable
  the specific warnings for the specific code (eg. libcxx) selectively.

* It doesn't make much sense to disable these warnings only on sim.
  There are many boards with -Wall -Wshadow. Because the sim is
  mainly for development and testing, it should be less forgiving
  than real boards.
2020-12-24 21:57:39 -06:00
Masayuki Ishikawa
ace6e70f57 arch: imx6: Add imx_enet driver
Summary:
- This commit adds imx_enet driver derived from imxrt_enet

Impact:
- imx6 only

Testing:
- Tested with sabre-6quad:netnsh
- NOTE: telnetd works with QEMU
2020-12-23 16:56:25 -03:00
Michal Lenc
6439d1b976 boards/arm/imxrt/teensy-4.x: Added lcd-4.1 config to README.txt
Signed-off-by: Michal Lenc <lencmich@fel.cvut.cz>
2020-12-23 11:19:53 -03:00
Michal Lenc
1502693f93 boards/arm/imxrt/teensy-4.x: Added support for LCD display with ST7789
Signed-off-by: Michal Lenc <lencmich@fel.cvut.cz>
2020-12-23 11:19:53 -03:00
Sara Souza
6a6121378c xtensa/esp32: Fixed wdt typos 2020-12-22 20:32:38 +01:00
YAMAMOTO Takashi
d5a1c8cae8 boards/sim/sim/sim/src/etc/init.d/rcS: Make it conditional with FS_FAT
ifdef out the guts of the script because it doesn't make sense
without FAT enabled.
2020-12-21 20:12:05 -08: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
YAMAMOTO Takashi
ecd66eb90c sim: libcxx: Use __GLIBCXX__ ABI for non macOS 2020-12-20 23:16:11 -06:00
YAMAMOTO Takashi
f0e0e6ab4d sim: Make.defs: tweak CXXFLAGS for LIBCXX 2020-12-20 23:16:11 -06:00
Xiang Xiao
9ea229cea0 boards: Remove CINCPATH and CXXINCPATH
these macro doesn't need anymore with commit:
commit d32e9c38df
Author: Xiang Xiao <xiaoxiang@xiaomi.com>
Date:   Sat Jul 11 18:37:40 2020 +0800

boards: Move the C/C++ search path to the common place

so all boards support uClibc++/libc++ automatically
2020-12-20 13:52:50 +01:00
Matias N
91c8d2bac6 sim: add "nimble" config, to test nimBLE on top of bthcisock 2020-12-19 08:00:38 -06:00
Masayuki Ishikawa
7fdfc9377e boards: stm32f4discovery: Add adb configuration
Summary:
- This commit adds adb configuration

Impact:
- stm32f4discovery:adb only

Testing:
- Tested with adb client on ubuntu18.04 x86_64
- adb shell works but still unstable

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-12-17 02:53:15 -06:00
Masayuki Ishikawa
9f586a6042 boards: stm32f4discovery: Call usbdev_adb_initialize() in stm32_bringup.c
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-12-17 02:53:15 -06:00
Sara Souza
add46d0408 xtensa/esp32: Added support for RTC WDT 2020-12-16 14:37:39 +01:00
Masayuki Ishikawa
aa6ddf6e5d boards: sabre-6quad: Update Make.defs to remove unused code
Summary:
- Add -ffunction-sections -fdata-sections to ARCHCFLAG
- Add --gc-sections to LDFLAGS

Impact:
- sabre-6quad only

Testing:
- Tested with nsh and smp configurations

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-12-15 20:56:08 -06:00
Michal Lenc
3ec7cd186a boards/arm/imxrt/teensy-4.x: CDC-ACM console support
Signed-off-by: Michal Lenc <lencmich@fel.cvut.cz>
2020-12-14 04:25:56 -06:00
Masayuki Ishikawa
1aa7f3498f boards: stm32f4discovery: Update usbnsh/defconfig
Summary:
- Enable CONFIG_DEBUG_SYMBOLS and CONFIG_DEBUG_FULLOPT
- Add CONFIG_EXAMPLES_HELLO=y
- Remove CONFIG_HOST_WINDOWS=y
- Enable CONFIG_RAMLOG and CONFIG_RAMLOG_SYSLOG
- Add CONFIG_STACK_COLORATION=y

Impact:
- stm32f4discovery:usbnsh only

Testing:
- Tested with stm32f4discovery board

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-12-14 03:39:24 -06: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