Commit Graph

1050 Commits

Author SHA1 Message Date
Masayuki Ishikawa
778c805357 boards: lc823450-xgevk: Update rndis/defconfig
Summary:
- Add DEBUG_HARDFAULT_ALERT
- Add the iperf and optimize IOB and ETH_PKTSIZE
- Enable TCP_WRITE_BUFFER
- Remove SCHED_INSTRUMENTATION_PREEMPTION
- Remove NETINIT_DHCPC
- Add getprime

Impact:
- lc823450-xgevk:rndis only

Testing:
- Tested with iperf, telnet, wget
- NOTE: need to update iperf in apps

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-02-01 18:40:39 -08:00
Masayuki Ishikawa
8706db6f48 boards: spresene: Add iperf to rndis and rndis_smp defcofigs
Summary:
- This commit adds iperf to rndis and rndis_smp defcofigs

Impact:
- rndis and rndis_smp

Testing:
- Tested with iperf

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-01-31 21:43:54 -08:00
Alan C. Assis
b0d611d3dc Replace ARM_LWL_CONSOLE with generic LWL_CONSOLE 2021-01-31 06:14:50 -08:00
Pavel Pisa
bd372724cc boards/arm/imxrt/teensy-4.x: added configuration for PiKRON's BaseBoard v1.
The BaseBoard carries Teensy 4.1 SBC. The complete design
of the baseboard (teensy_bb-1.tdb) is available at

  https://gitlab.com/pikron/projects/imxrt-devel/-/tree/master/hw

Attempt is to provide configuration which enables most
of interfaces of the BaseBoard and allows runtime applications
loading over TFTP.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
2021-01-29 10:40:03 -08:00
Pavel Pisa
c5d25d5887 boards/arm/lpc17xx_40xx/lx_cpu: enable CLOCK_MONOTONIC and NETDB support.
Signed-off-by: Pavel Pisa <ppisa@pikron.com>
2021-01-29 10:40:03 -08:00
Pavel Pisa
e7ed720699 boards/arm/lpc17xx_40xx/lx_cpu/: increase sections alignment and fix .ARM.exidx overlap.
The ARMv7 specifies minimal alignment to be 8 for EABI. Ensure
that sections are placed with even greater minimal alignment.
Sections final alignment should be adjusted according
to alignment of their inputs, but for some reasons some
combinations lead to .ARM.exidx overlap with .data.
When alignment is increased then the direct fetch of the
fill location

  _eronly = ABSOLUTE(.);

does not match with final LMA placement of the .data section.
Use constructs which should result in matching .data LMA
address for all cases

  _eronly = ABSOLUTE(.);

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
2021-01-29 10:40:03 -08:00
Pavel Pisa
210689535a boards/arm/lpc17xx_40xx/lx_cpu/configs/nsh: increase number of memory regions.
There was one region missing to register external SDRAM
into heap.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
2021-01-29 10:40:03 -08:00
Pavel Pisa
d77fe3390f board/arm/imxrt: the request for map file in Make.defs LDFLAGS results in absolute path in export target.
The BSP MAke.defs line

  LDFLAGS += -Map=$(TOPDIR)/nuttx.map

results  in absolute path in nuttx-export/scripts/Make.defs
which would mean that each application rebuild would attempt
to modify file inside original build of NuttX system.

Even worse, it prevents linking by GCC, because -Map=xxx/nuttx.map
works directly in LD, it would require -Wl,-Map= for GCC.

Fixed name of map file prevents to define map file by build
system using exported NuttX libraries and link kit.

Change is done to allow OMK template based applications
development for another NuttX BSP

  https://github.com/ppisa/nuttx-devel/tree/master/nuttx-omk-template

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
2021-01-29 10:40:03 -08:00
Masayuki Ishikawa
07e7ccb80c boards: sabre-6quad: The iperf works with CONFIG_NET_TCP_WRITE_BUFFERS
Summary:
- This commit makes the iperf work with CONFIG_NET_TCP_WRITE_BUFFERS
- Since the iperf sends a large packet (e.g. 16KB), CONFIG_IOB_NBUFFERS
  must be increased enough to hold the packet
- To improve performance CONFIG_IMX_ENET_NTXBUFFERS was changed to
  the default (i.e. 2)

Impact:
- sabre-6quad:netnsh only

Testing:
- Tested with iperf with QEMU

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-01-29 00:05:01 -08:00
Masayuki Ishikawa
0356a6db31 boards: sabre-6quad: Update netnsh/defconfig
Summary:
- This commit updates the followings
- Remove CONFIG_DEBUG_XXX except for CONFIG_DEBUG_FULLOPT and CONFIG_DEBUG_SYMBOLS
- Add CONFIG_EXAMPLES_IPERF=y and CONFIG_EXAMPLES_TCPBLASTER=y
- Set CONFIG_IMX_ENET_NTXBUFFERS=1 and CONFIG_NET_ETH_PKTSIZE=1514
- Add CONFIG_SCHED_LPWORK=y and CONFIG_SYSLOG_TIMESTAMP=y
- Add CONFIG_SYSTEM_DHCPC_RENEW=y and CONFIG_SYSTEM_DHCPC_RENEW=y

Impact:
- sabre-6quad:netnsh only

Testing:
- Tested with sabre-6quad:netnsh with QEMU

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-01-28 18:41:34 -08:00
baggio63446333
0261e58a8b boards: cxd56xx: Add I2C bitbang driver registration
Add board API to register i2c bitbang driver as i2c device.
2021-01-26 13:59:30 -03:00
Alin Jerpelea
e76f0f3de9 arch: arm: cxd56xx: replace licenses with Apache 2.0
This change is a license change to Apache 2.0 license.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-01-25 04:34:41 -08:00
Alin Jerpelea
0881e0e8db boards: arm: cxd56xx: drivers: update license to Apache 2.0
This is a license change to Apache 2.0 license.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-01-25 04:34:41 -08:00
Alin Jerpelea
94774f4d5b boards: arm: cxd56xx: common: update license to Apache 2.0
This is a license change to Apache 2.0 license.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-01-25 04:34:41 -08:00
Matias N
76cc5c36e4 bmp280: convert to common sensor interface 2021-01-18 21:08:34 -03:00
Brennan Ashton
3a64783273 nrf52: Add simple i2c test configuration
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2021-01-17 23:46:01 -08:00
Xiang Xiao
7df322c6be bluetooth: Move the lower half null check to common place
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-01-17 20:49:19 -08:00
Xiang Xiao
eda15d23c2 boards/imxrt1020-evk: Don't include the unused bt_uart_shim.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-01-17 20:49:19 -08:00
Alan C. Assis
0c5f71c849 boards/stm32f4discovery: Add a LWL board profile and improve the README.txt 2021-01-16 16:16:46 -08:00
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
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
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
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
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
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
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
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
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
Diego Herranz
375211f5a1 boards/arm/stm32: add common and stm32f103-minimum support for WS2812 LEDs. 2020-12-09 22:55:27 +01:00
raiden00pl
0c05f2ea38 stm32: add stm32g43x support and nucleo-g431rb board 2020-12-09 09:43:25 -03:00
Diego Herranz
258fc77999 boards/arm/stm32/stm32f103-minimum: cleanup
- Remove prototypes no longer needed after some code was moved to common folder
- Fix function names in syslog messages
- Minor typos
2020-12-09 12:54:25 +01:00
Diego Herranz
d838ea596f boards/arm/stm32/common: devpath not long enough for apa102 and veml6070
Also header path updated in drivers/leds/apa102.c
2020-12-09 09:22:03 +01:00
Simon Piriou
33125e929c stm32f103-minimum: add Android Debug Bridge defconfig 2020-12-08 10:13:29 -06:00
Simon Piriou
2bb31dca4c stm32f103-minimum: add board reset 2020-12-08 10:13:29 -06:00
Simon Piriou
2883dbdaf0 stm32f103-minimum: optimize flash size 2020-12-08 10:13:29 -06:00
YAMAMOTO Takashi
1e12c57bba boards/arm/lpc214x/zp214xpa/src/lpc2148_spi1.c: Don't assume debug macro expansion 2020-12-06 09:03:09 -06:00
YAMAMOTO Takashi
faa23102fe boards/arm/s32k1xx/rddrone-uavcan144/src/s32k1xx_bringup.c: Fix syslog formats 2020-12-06 07:41:37 -06:00
YAMAMOTO Takashi
60795464ef boards/arm/s32k1xx/rddrone-uavcan146/src/s32k1xx_bringup.c: Fix syslog formats 2020-12-06 07:41:37 -06:00
YAMAMOTO Takashi
46974c29bd boards/arm/sam34/sam4e-ek/src/sam_at25.c: Fix a syslog format 2020-12-06 07:41:37 -06:00
YAMAMOTO Takashi
392c2948e5 boards/arm/sam34/sam4e-ek/src/sam_at25.c: Appease nxstyle 2020-12-06 07:41:37 -06:00
YAMAMOTO Takashi
61579ed140 boards/arm/sam34/sam3u-ek/src/sam_lcd.c: Fix syslog formats 2020-12-06 07:41:37 -06:00
YAMAMOTO Takashi
c007f70de5 boards/arm/sam34/sam3u-ek/src/sam_lcd.c: Appease nxstyle
The following nxstyle errrors are intentionally left.
They are a part of a large table, which is not trivial to fix.

boards/arm/sam34/sam3u-ek/src/sam_lcd.c:43:87: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:44:86: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:45:87: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:46:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:47:89: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:48:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:49:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:50:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:51:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:52:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:53:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:54:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:55:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:56:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:57:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:58:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:59:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:60:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:61:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:62:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:63:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:64:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:65:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:66:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:67:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:68:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:69:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:70:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:71:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:72:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:73:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:74:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:75:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:76:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:77:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:78:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:79:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:80:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:81:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:82:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:83:84: error: Long line found
boards/arm/sam34/sam3u-ek/src/sam_lcd.c:84:84: error: Long line found
2020-12-06 07:41:37 -06:00
YAMAMOTO Takashi
3599120dbb boards/arm/sama5/sama5d4-ek/src/sam_at25.c: Fix a syslog format 2020-12-06 07:41:37 -06:00
YAMAMOTO Takashi
b69dbbcbcf boards/arm/sama5/sama5d4-ek/src/sam_at25.c: Appease nxstyle 2020-12-06 07:41:37 -06:00
YAMAMOTO Takashi
25ea93cb4a boards/arm/sama5/sama5d3x-ek/src/sam_at25.c: Fix a syslog format 2020-12-05 08:13:32 -06:00
YAMAMOTO Takashi
6d692fad82 boards/arm/sama5/sama5d3x-ek/src/sam_at25.c: Appease nxstyle 2020-12-05 08:13:32 -06:00
YAMAMOTO Takashi
2ceace2059 boards/arm/samv7/samv71-xult/src/sam_ili9488.c: Fix a syslog format 2020-12-05 08:13:32 -06:00
YAMAMOTO Takashi
0e81c2d95d boards/arm/samv7/samv71-xult/src/sam_ethernet.c: Fix a syslog format 2020-12-05 08:13:32 -06:00
yjdwbj
6aba444359 Added: MT29F2G Nand Flash block driver for sam4s-xplained-pro.
Fixed: SDIO Interface hanging after inserted SD Card.

Disabled the CONFIG_SYSTEMTICK_EXTCLK, using nxsig_usleep instead of usleep
2020-12-04 22:41:46 -08:00
Michal Lenc
eabd79f97b boards/arm/imxrt/teensy-4.x: fixed build error and nx style
Signed-off-by: Michal Lenc <lencmich@fel.cvut.cz>
2020-12-04 10:18:41 -08:00
Michal Lenc
11be65db8b board/arm/imxrt: Added Teensy-4 BSP based on imxrt1060-evk
Signed-off-by: Michal Lenc <lencmich@fel.cvut.cz>
2020-12-04 10:18:41 -08:00
YAMAMOTO Takashi
ec5079c9ff boards/arm/samv7/same70-xplained/src/sam_ethernet.c: Fix a syslog format 2020-12-02 02:53:47 -06:00
YAMAMOTO Takashi
364cb63834 boards/arm/stm32/clicker2-stm32/src/stm32_xbee.c: Fix syslog formats 2020-12-02 02:53:47 -06:00
YAMAMOTO Takashi
376b4a48ce boards/arm/stm32/clicker2-stm32/src/stm32_xbee.c: Fix syslog formats 2020-12-02 02:53:47 -06:00
YAMAMOTO Takashi
78caedd485 boards/arm/stm32/hymini-stm32v/src/stm32_ssd1289.c: Fix syslog formats 2020-12-02 02:53:47 -06:00
YAMAMOTO Takashi
ed974dc5e6 boards/arm/stm32/hymini-stm32v/src/stm32_ssd1289.c: Appease nxstyle 2020-12-02 02:53:47 -06:00
YAMAMOTO Takashi
c52241d53e boards/arm/lpc17xx_40xx/zkit-arm-1769/src/lpc17_40_lcd.c: Fix a syslog format 2020-12-02 02:53:47 -06:00
YAMAMOTO Takashi
063620146e boards/arm/tiva/lm3s8962-ek/src/lm_oled.c: Fix a syslog format 2020-12-02 02:53:47 -06:00
YAMAMOTO Takashi
3c28ecce61 boards/arm/tiva/lm3s8962-ek/src/lm_oled.c: Appease nxstyle 2020-12-02 02:53:47 -06:00
YAMAMOTO Takashi
613bf03457 boards/arm/stm32l4/nucleo-l452re/src/stm32_adc.c: Fix syslog formats 2020-12-02 02:53:47 -06:00
YAMAMOTO Takashi
74aac70367 boards/arm/stm32l4/nucleo-l452re/src/stm32_adc.c: Appease nxstyle
The following nxstyle error was intentionally left.
(a URL in a comment)

boards/arm/stm32l4/nucleo-l452re/src/stm32_adc.c:79:93: error: Long line found
2020-12-02 02:53:47 -06:00
YAMAMOTO Takashi
e70b098fe7 boards/arm/tiva/eagle100/src/lm_ethernet.c: Fix a syslog format 2020-12-02 02:53:47 -06:00
YAMAMOTO Takashi
13aa8db877 boards/arm/stm32/nucleo-l152re/src/stm32_ili93418b.c: Fix syslog formats 2020-12-02 02:53:47 -06:00
YAMAMOTO Takashi
38a8ee21a3 boards/arm/tiva/lm3s6432-s2e/src/lm_ethernet.c: Fix a syslog format 2020-11-30 05:28:17 -06:00
YAMAMOTO Takashi
41aa5e09b6 boards/arm/tiva/lm3s6965-ek/src/lm_oled.c: Fix a syslog format 2020-11-30 05:28:17 -06:00
YAMAMOTO Takashi
f0f8637b43 boards/arm/tiva/tm4c1294-launchpad/src/tm4c_ethernet.c: Fix a syslog format 2020-11-30 05:28:17 -06:00
YAMAMOTO Takashi
fe654c6ee9 boards/arm/tiva/dk-tm4c129x/src/tm4c_ethernet.c: Fix a syslog format 2020-11-30 05:28:17 -06:00
YAMAMOTO Takashi
cd49c310c6 boards/arm/stm32/stm32f4discovery/src/stm32_gs2200m.c: Fix syslog formats 2020-11-30 05:28:17 -06:00
yjdwbj
b236b82328 Add 2.4 Inch TFT LCD Shield ILI9341 for nucleo-l152re, 8080 MCU 8-bit bus interface I 2020-11-29 01:03:38 -06:00
Chaochao Cui
fbb3cd660b add simple wm8994 codec driver 2020-11-28 10:23:40 -03: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
049c991d28 style/Kconfig: remove unnecessary trailing whitespace
N/A

Signed-off-by: chao.an <anchao@xiaomi.com>
2020-11-28 12:20:30 +01:00
YAMAMOTO Takashi
4b6d117a93 boards/arm/lpc214x/zp214xpa/src/lpc2148_spi1.c: Fix syslog formats 2020-11-27 23:38:40 -06:00
YAMAMOTO Takashi
a2f3ad5d9f boards/arm/lpc214x/zp214xpa/src/lpc2148_ug2864ambag01.c: Fix syslog formats 2020-11-27 23:38:40 -06:00
YAMAMOTO Takashi
571f31c672 boards/arm/lpc214x/mcu123-lpc214x/src/lpc2148_spi1.c: Fix syslog formats 2020-11-27 23:38:40 -06:00
YAMAMOTO Takashi
9689720940 boards/arm/lpc43xx/bambino-200e/src/lpc43_ssp.c: Fix a missing semicolon 2020-11-27 23:38:40 -06:00
YAMAMOTO Takashi
2d7e25e7e0 boards/arm/lpc43xx/bambino-200e/src/lpc43_ssp.c: Appease nxstyle 2020-11-27 23:38:40 -06:00
YAMAMOTO Takashi
73e82edfb9 boards/arm/stm32/stm32f103-minimum/src/stm32_lcd_backpack.c: Fix a syslog format 2020-11-27 23:38:40 -06:00
YAMAMOTO Takashi
751f465b16 boards/arm/stm32/stm32f334-disco/src/stm32_smps.c: Fix syslog formats 2020-11-27 23:38:40 -06:00
YAMAMOTO Takashi
5564fc6e4a boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c: Fix syslog formats 2020-11-27 05:18:57 -06:00
YAMAMOTO Takashi
5bc56d388a boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c: Appease nxstyle
The following nxstyle errors are intentionally left.

* A table, not trivial to fix:

boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:142:119: error: Long line found
boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:143:95: error: Long line found
boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:144:88: error: Long line found
boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:145:119: error: Long line found
boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:146:108: error: Long line found
boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:147:108: error: Long line found
boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:148:108: error: Long line found
boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:149:108: error: Long line found
boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:150:108: error: Long line found
boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:151:108: error: Long line found
boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:152:108: error: Long line found
boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:153:108: error: Long line found
boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:154:119: error: Long line found
boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:155:119: error: Long line found
boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:156:119: error: Long line found
boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:157:119: error: Long line found
boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:158:119: error: Long line found
boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:159:119: error: Long line found
boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:160:119: error: Long line found
boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:161:119: error: Long line found
boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:162:108: error: Long line found
boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:163:108: error: Long line found
boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:164:108: error: Long line found
boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:165:108: error: Long line found
boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:166:108: error: Long line found
boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:167:108: error: Long line found
boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:168:108: error: Long line found
boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:169:108: error: Long line found
boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:170:119: error: Long line found

* Identifiers like ASCII_a:

boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:397:35: error: Mixed case identifier found
boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:651:16: error: Mixed case identifier found
boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c:660:38: error: Mixed case identifier found
2020-11-27 05:18:57 -06:00
YAMAMOTO Takashi
4c67d9d66c boards/arm/cxd56xx/common/src/cxd56_ili9340.c: Fix syslog formats 2020-11-27 05:18:57 -06:00
YAMAMOTO Takashi
edee18be72 boards/arm/cxd56xx/common/src/cxd56_gs2200m.c: Fix syslog formats 2020-11-27 05:18:57 -06:00
YAMAMOTO Takashi
7050eb7621 boards/arm/lpc17xx_40xx/lpcxpresso-lpc1768/src/lpc17_40_oled.c: Fix a syslog format 2020-11-27 05:18:57 -06:00
YAMAMOTO Takashi
c389b23960 boards/arm/lpc17xx_40xx/lpcxpresso-lpc1768/src/lpc17_40_oled.c: Appease nxstyle 2020-11-27 05:18:57 -06:00
YAMAMOTO Takashi
da3f0b2f28 boards/arm/stm32/stm3210e-eval/src/stm32_lcd.c: Fix syslog formats 2020-11-27 05:18:57 -06:00
YAMAMOTO Takashi
5631b7f464 boards/arm/stm32/stm3210e-eval/src/stm32_lcd.c: Appease nxstyle 2020-11-27 05:18:57 -06:00
YAMAMOTO Takashi
458d84454a boards/arm/stm32/stm32f334-disco/src/stm32_powerled.c: Fix a syslog format 2020-11-27 05:18:57 -06:00
YAMAMOTO Takashi
40ff30ed71 boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_ssd1306.c: Fix a syslog format 2020-11-24 22:31:33 -08:00
YAMAMOTO Takashi
b6217b23b6 boards/arm/stm32/stm32f429i-disco/src/stm32_ili93414ws.c: Fix syslog formats 2020-11-24 22:31:33 -08:00
YAMAMOTO Takashi
048e1aab9c boards/arm/stm32/stm32f429i-disco/src/stm32_ili93414ws.c: Appease nxstyle 2020-11-24 22:31:33 -08:00
YAMAMOTO Takashi
5d7af56982 boards/arm/stm32/stm32butterfly2/src/stm32_spi.c: Fix syslog formats 2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
99c416eedf boards/arm/stm32/stm32butterfly2/src/stm32_spi.c: Appease nxstyle 2020-11-22 19:01:05 -08:00
Brennan Ashton
2df6547d50 board: Add network configuration to nucleo-h743zi
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2020-11-22 01:47:13 -08:00
Brennan Ashton
87d8e5dda2 board: nucleo-h743zi USB Host fixups 2020-11-22 00:28:49 -08:00
KernelGuruMeditation
dcb3fd11ea Add proper default config file 2020-11-22 00:28:49 -08:00
KernelGuruMeditation
1a53a2f882 Fix code style 2020-11-22 00:28:49 -08:00
KernelGuruMeditation
c9e40ede2d Fix of the OTG FS HOST for nucleo-h743zi 2020-11-22 00:28:49 -08:00
Brennan Ashton
a0112eee4f stm32h7: Bug where more than CONFIG_MM_REGIONS would be allocated 2020-11-21 19:38:05 -08:00
Juha Niskanen
e9bd306265 boards/arm/stm32/stm32ldiscovery: modernize board init little bit, userleds and buttons like for other boards
Also fix typo in Kconfig
Update some obsolete comments
nxstyle changes

Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2020-11-21 19:23:11 +01:00
Masayuki Ishikawa
afc8eadf5a boards: lc823450-xgevk: Add CONFIG_USBDEV_DMA=y to rndis/defconfig
Summary:
- This commit adds CONFIG_USBDEV_DMA=y to rndis/defconfig

Impact:
- lc823450-xgevk:rndis only

Testing:
- Tested with ping, telnet

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-11-21 11:34:23 -03:00
YAMAMOTO Takashi
5df47f2828 boards/arm/stm32h7/nucleo-h743zi/src/stm32_ssd1306.c: Fix a syslog format 2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
3415f08b67 boards/arm/stm32/stm32butterfly2/src/stm32_boot.c: Fix a syslog format 2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
318b3ce8eb boards/arm/stm32/stm32butterfly2/src/stm32_boot.c: Appease nxstyle 2020-11-20 22:22:53 -08:00
Brennan Ashton
f48e4d5df4 Board: Add elf target for nucleo-h743zi 2020-11-20 00:42:28 -08:00
dongjiuzhu
cab072b84d board/stm32f429i: support l3gd20 sensor with new sensor model
Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>
2020-11-19 18:13:17 -08:00
Masayuki Ishikawa
fe8026d952 boards: sabre-6quad: Fix README.txt
Summary:
- Remove comments on up_idle() which is old information
- Add L2CC info with QEMU

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-11-19 18:01:30 -08:00
Philippe Coval
5394c8ae64 freedom-k64f/demo: Enable netcat app
Change-Id: I98e72d341f46c2e03efdb6cc93124a2f49613f19
Relate-to: https://github.com/apache/incubator-nuttx/issues/1988
Relate-to: https://github.com/apache/incubator-nuttx-apps/pull/482
Relate-to: https://github.com/rzr/aframe-smart-home/issues/3
Forwarded: https://github.com/apache/incubator-nuttx/pull/2333
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2020-11-18 11:58:27 -03:00
Philippe Coval
b3c2873ef1 freedom-k64f/demo: Enable TCP for netcat
Change-Id: Ie40df592529c3adfa478a71f9ff5315cb8b0c3d6
Relate-to: https://github.com/apache/incubator-nuttx/issues/1988
Relate-to: https://github.com/apache/incubator-nuttx-apps/pull/482
Relate-to: https://github.com/rzr/aframe-smart-home/issues/3
Forwarded: https://github.com/apache/incubator-nuttx/pull/2333
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2020-11-18 11:58:27 -03:00
YAMAMOTO Takashi
465b065790 boards/arm/nrf52/nrf52840-dk/src/nrf52_highpri.c: Fix a printf format warning 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
17f3e2dd23 boards/arm/stm32/stm32f429i-disco/src/stm32_highpri.c: Fix printf format warnings 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
f064dd629f boards/arm/stm32/nucleo-f302r8/src/stm32_highpri.c: Fix a printf format warning 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
a4fc870692 boards/arm/stm32/nucleo-f334r8/src/stm32_highpri.c: Fix a printf format warning 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
ec25462668 boards/arm/stm32/nucleo-f334r8/src/stm32_spwm.c: Fix a printf format warning 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
4db9da3ab5 boards/arm/stm32/viewtool-stm32f107/src/stm32_highpri.c: Fix printf format warnings 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
6125d1bb67 boards/arm/samd2l2/arduino-m0/src/sam_usb.c: Appease nxstyle 2020-11-16 05:46:53 -08:00
Masayuki Ishikawa
d15a6b4363 boards: sabre-6quad: Enable L2CC for smp/defconfig
Summary:
- This commit adds L2CC to smp/defconfig
- Also adds CLOCK_MONOTONIC

Impact:
- sabre-6quad:smp only

Testing:
- Tested with both QEMU and dev board

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-11-16 00:53:17 -08:00
Masayuki Ishikawa
3cc6ddd151 boards: sabre-6quad: Enable L2CC for nsh/defconfig
Summary:
- This commit adds L2CC to nsh/defconfig
- Also adds EXAMPLES_HELLO, TESTING_GETPRIME and TESTING_OSTEST

Impact:
- sabre-6quad:nsh only

Testing:
- Tested with both QEMU and dev board

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-11-16 00:53:17 -08:00
Masayuki Ishikawa
81abbcb75c boards: sabre-6quad: Add CONFIG_TESTING_GETPRIME=y to smp/defconfig
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-11-14 16:40:01 -08:00
Masayuki Ishikawa
064451b4ee Update TODO and sabre-6quad/README.txt regarding SMP
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-11-14 16:40:01 -08:00
YAMAMOTO Takashi
ca9bd8be0e Remove ARCROSSDEV leftovers
It has been removed while ago.
cf. 5efa93ec26
2020-11-13 05:54:20 -08:00
Simon Piriou
5892927aea board: add ADB example for stm32/photon 2020-11-12 21:35:07 -08:00
chao.an
e29a0d9dc6 boards/lpc31xx/pgnsh: disable environment variable support
locked region is unenough to accommodate more text in PASS1 phase

Signed-off-by: chao.an <anchao@xiaomi.com>
2020-11-09 23:42:46 -08:00
Matias N
f55a2879ca nrf52 GPIO/GPIOTE: better expose pin interrupt capability
This change improves upon current support for pin interrupts. Before,
a pin interrupt was handled (with nrf52_gpiote_setevent) using one
of the eight available GPIOTE channels. Moreover, it didn't event let
the user specify which channel to use (simply tried to get a free one).
Also, it was buggy since it did not consider unsetting the callback.

Besides GPIOTE channels, there is another way to deal with pin interrupts.
The GPIO peripheral is capable of generating a PORT event
(for the whole GPIO port) depending on the pin SENSE configuration
(HIGH or LOW, or NONE) and GPIO DETECTMODE register
(latching or non-latching).

This change then renames nrf52_gpiote_setevent into nrf52_gpiote_set_ch_event,
maintaining functionality of original function, but now allows specifying
channel (and correctly handles unsetting the callback). Then, a
new nrf52_gpiote_set_pin_event is added, which allows to set a callback
for a given pin. During initialization, interrupt for the PORT event is
enabled and handled in such way that for each pin whose corresponding
bit in LATCH register (indicates the result of pin SENSEing) the
callback for this pin will be invoked. This mechanism means that
every pin can get an ISR. It also avoids using GPIOTE channels for this
purpose which carry higher current consumption.

This new per-pin callback mechanism has some added memory requirement
so it can be disabled and its default is dependant on DEFAULT_SMALL.
When disabled, a callback for the PORT event can be set directly
with nrf52_gpiote_set_port_event

There was only one use of nrf52_gpio_setevent() which was migrated
into nrf52_gpio_set_ch_event() passing channel zero.
2020-11-09 20:23:29 +01:00
raiden00pl
728c3fc409 nrf52840-dk: add sx127x example configuration 2020-11-09 08:07:13 -08:00
Daniel P. Carvalho
e73e03a33f Add fuction to set timer frequency. 2020-11-05 11:36:40 -03:00
Daniel P. Carvalho
3f6157001a Change SPWM example to enable timer after configure timer clock. 2020-11-05 11:36:40 -03:00
Frank-Christian Kruegel
52097a4345 Added Support for more TI Tiva Microcontrollers:
* TM4C123GH6PZ (100 pin version of TM4C123GH6PM)
* TM4C123GH6PGE (144 pin version of TM4C123GH6PM)
* TM4C129ENCPDT (TM4C1294 with Crypto hardware added, TQFP package)
* TM4C129ENCZAD (TM4C1294 with Crypto hardware added, BGA package)
2020-11-03 08:07:24 -08:00
Xiang Xiao
9208176f60 build: Move __NuttX__ definition to tools/Config.mk
ensure this critical macro get defined in all projects

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-11-02 13:22:39 -03: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
Xiang Xiao
cc869d891c boards/cxd56xx: Remove HOSTCC and HOSTCFLAGS from Make.defs
since all host toolchain definition is moved to the common place(tools/Config.mk)

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-11-02 09:11:37 +01:00
YAMAMOTO Takashi
1184502661 Retire CONFIG_WCHAR_BUILTIN
wchar_t is always a builtin type for C++.

Note: boards/arm/stm32/nucleo-f4x1re/scripts/Make.defs was broken.
(missing -)
2020-11-01 18:19:13 -08:00
Matias N
4cbfbd0c74 nrf52_wdt: split into low-level API and watchdog driver lower-half
This separation allows to interact with the watchdog from OS code,
for example initiating the watchdog very early on boot. Moreover,
these changes make the lower-half driver support an already running
watchdog, which may happen if there's a bootloader which already
started it.
2020-10-29 20:17:33 -03:00
Yoshinori Sugino
c13f869432 Modify SIGSTP to SIGTSTP
Follow the POSIX description.
SIGTSTP should be sent when the Ctrl-Z characters is encountered, not SIGSTP.

Testing:
Built with hifive1-revb:nsh (CONFIG_SERIAL_TERMIOS=y, CONFIG_SIG_DEFAULT=y and CONFIG_TTY_SIGTSTP=y)
2020-10-29 01:12:43 -07:00
Alin Jerpelea
bc8ea75580 tools: cxd56: mkspk: automate mkspk build
the mkspk tool will automaticaly be built if CONFIG_CXD56_BINARY
is set.

Test:
nuttx.spk was succesfully generated

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2020-10-28 12:50:02 +01:00
Masayuki Ishikawa
8547ea2c72 boards: stm32f4discovery: Update wifi/defconfig
Summary:
- Add CONFIG_ARCH_INTERRUPTSTACK=2048
- Add CONFIG_ARMV7M_LAZYFPU=y
- Add CONFIG_TESTING_OSTEST_FPUSIZE=132

Impact:
- Affects stm32f4discovery:wifi only

Testing:
- Tested with ostest, uSD card, Wi-Fi

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-10-26 09:05:49 -07:00
Masayuki Ishikawa
d550e39b9e boards: sabre-6quad: Update nsh/defconfig
Summary:
- Add CONFIG_DEBUG_FULLOPT=y
- Add CONFIG_DEBUG_SYMBOLS=y
- Remove CONFIG_HOST_WINDOWS=y
- Add CONFIG_READLINE_CMD_HISTORY=y
- Add CONFIG_STACK_COLORATION=y

Impact:
- Affects sabre-6quad:nsh only

Testing:
- Tested with QEMU

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-10-26 09:05:49 -07:00
dongjiuzhu
d452a05910 pollnotify: we should send poll events before semaphore incrementes.
There is a good case on sim platform:
When we input some cmd and click enter key to start application in terminal,
this context will change to application from IDLE loop. Althrough entey key '\r'
has been received to recv buffer and complete post semaphore of reader, but
pollnotify may not be called because context change. So when application run
poll function, because no events happend and poll enter wait, context will
again change to IDLE loop, this pollnotify of IDLE loop will run to send poll
events, poll function of applicaton will wake up. It's wrong!

Change-Id: I812a889f2e90781a9c3cb4b0251cccc4d32bebd1
Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>
2020-10-26 08:27:09 -03:00
Juha Niskanen
0cea0f5cd4 board: LCD: fix wrong number of parameters to lcderr() macro
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2020-10-24 16:55:05 -03:00
Juha Niskanen
59faf8d8f4 stm32: common: fix SSD1306 initialization when LED is in SPI bus
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2020-10-24 16:55:05 -03:00
Yoshinori Sugino
edf035ccc1 Fix nxstyle warnings 2020-10-24 09:38:21 +01:00
Yoshinori Sugino
3ac90fca79 Remove tabs and spaces at the end of lines 2020-10-24 09:38:21 +01:00
Philippe Coval
bc11d14d08 freedom-k64f/demo: Support DHCP renew tool
Usage:

    nsh> ifconfig

    eth0    Link encap:Ethernet HWaddr 52:13:FF:FF:FF:FF at UP
            inet addr:10.0.0.2 DRaddr:10.0.0.1 Mask:255.255.255.0

    nsh> renew eth0 && ifconfig

    eth0    Link encap:Ethernet HWaddr 52:13:FF:FF:FF:FF at UP
            inet addr:192.168.1.42 DRaddr:192.168.1.254 Mask:255.255.255.0

CONFIG_NETDB_DNSCLIENT is needed for

    apps/netutils/netinit/netinit.c:659: \
    undefined reference to `netlib_set_ipv4dnsaddr'

Change-Id: I54b8495637baf0f3f28abf67d4d4ce861ef49ced
Bug: https://github.com/apache/incubator-nuttx/issues/1988
Forwarded: https://github.com/apache/incubator-nuttx/pulls/rzr
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2020-10-23 10:34:57 +08:00
Philippe Coval
e2274a4194 freedom-k64f/demo: Support Ethernet
It was tested using:

  nsh> ifconfig
  eth0    Link encap:Ethernet HWaddr 52:13:FF:FF:FF:FF at DOWN
          inet addr:10.0.0.2 DRaddr:10.0.0.1 Mask:255.255.255.0

All flags are needed to prevent build failures like:

    chip/kinetis_enet.c:181:4:\
    error: #error "Unrecognized or missing PHY selection"

    netlib_setifstatus.c: In function 'netlib_ifup':
    netlib_setifstatus.c:83:27: \
    error: 'NETLIB_SOCK_TYPE' undeclared (first use in this function);

Change-Id: I9496528ae09f6244d73ab77dbcd307ced95f46fd
Bug: https://github.com/apache/incubator-nuttx/pull/1988
Forwarded: https://github.com/apache/incubator-nuttx/pull/2066
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2020-10-23 00:34:17 +08:00
Philippe Coval
c39e380102 freedom-k64f/demo: Enable EXAMPLES_FXOS8700CQ
Depends on other flags that will be enabled automatically by kconfig:

  CONFIG_SENSORS=y
  CONFIG_SENSORS_FXOS8700CQ=y

Change-Id: Ic9bfbd02cca9f2fd4b1f1fb538100865a1c497ff
Bug: https://github.com/apache/incubator-nuttx/pull/1999
Forwarded: https://github.com/apache/incubator-nuttx/pulls/rzr
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2020-10-22 22:33:35 +08:00
Philippe Coval
d90ef8374b freedom-k64f: Enable SENSORS_FXOS8700CQ in demo config
Testing this flag in the CI pipeline

Change-Id: I46bf0d6f13d1d45e196e69733776f002f080e2ff
Bug: https://github.com/apache/incubator-nuttx/pull/1999
Forwarded: https://github.com/apache/incubator-nuttx/pulls/rzr
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2020-10-22 00:48:24 +08:00
Philippe Coval
0e431e6bf0 freedom-k64f/demo: Enable CONFIG_SENSORS
This change is mostly for testing codebase

Change-Id: I50a024dd80661932bfb06aed5be2b4addbbdee8a
Bug: https://github.com/apache/incubator-nuttx/pull/1999
Forwarded: https://github.com/apache/incubator-nuttx/pulls/rzr
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2020-10-21 21:29:10 +08:00
Philippe Coval
17e624eae4 freedom-k64f: Add I2C to demo image
Both flag were selected manualy from menuconfig

Usage:

    nsh> ls /dev/i2c0

    nsh> i2c bus
    BUS   EXISTS?
    Bus 0: YES

    nsh> i2c dev 0 0x7F
         0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
    00: 00 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    10: -- -- -- -- -- -- -- -- -- -- -- -- -- 1d -- --

Change-Id: I86c68753609c521af9710190397ef492ae562e38
Bug: https://github.com/apache/incubator-nuttx/pull/1999
Forwarded: # https://github.com/apache/incubator-nuttx/pull/2047
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2020-10-21 13:36:55 +08:00
Masayuki Ishikawa
19f7a243a7 boards: sabre-6quad: Update smp/defconfig
Summary:
- Remove CONFIG_HOST_WINDOWS=y
- Add CONFIG_READLINE_CMD_HISTORY=y
- Add CONFIG_STACK_COLORATION=y

Impact:
- Affects sabre-6quad:smp only

Testing:
- Tested with smp, ostest with QEMU

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-10-21 11:49:45 +08:00
Masayuki Ishikawa
3ef388aefa boards: lc823450-xgevk: Update rndis/defconfig
Summary:
- Add CONFIG_ARCH_STACKDUMP=y
- Add CONFIG_STACK_COLORATION=y
- Remove CONFIG_NSH_DISABLE_MB=y
- Remove CONFIG_NSH_DISABLE_MH=y

Impact:
- Affects lc823450-xgevk:rndis only

Testing:
- Tested with smp, ostest.

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-10-21 11:49:45 +08:00
Xiang Xiao
2956b8516b Fix nxstyle warning
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-10-20 01:45:06 -07:00
Xiang Xiao
eb4121ce38 Change all 'Nuttx' to 'NuttX'
Unify the naming convention

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-10-20 01:45:06 -07:00
Philippe Coval
bc14716d03 freedom-k64f: Regenerate demo/defconfig
With default settings,
it has been verified using:

    ./tools/refresh.sh --silent freedom-k64f/demo

Change-Id: I3cb96b82a392ac169d7887f5afda37a8b5daf992
Bug: https://github.com/apache/incubator-nuttx/issues/1988
Forwarded: https://github.com/apache/incubator-nuttx/pull/2037
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2020-10-19 21:19:00 -07:00
Philippe Coval
bce251a791 freedom-k64f: Add demo configuration
Minimal configuration.

Each feature will added one after one
to track configuration flags.

Change-Id: Iab8aff1d489a518b6050ecba0f0b950a8b27745b
Bug: https://github.com/apache/incubator-nuttx/issues/1988
Forwarded: https://github.com/apache/incubator-nuttx/pull/2037
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2020-10-19 21:19:00 -07:00
Philippe Coval
80be4a5d3c freedom-k64f: Fix k64_buttons.c
Change-Id: I0c9f8903513fdbce05e9dc03a3b6c772f6920002
Bug: https://github.com/apache/incubator-nuttx/pull/1999
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2020-10-18 19:23:56 -04:00
Xiang Xiao
a49a3eae51 tools: Remove the special handle for Ubuntu under Windows 10
since the Native Linux support could be reused for this case:
https://lists.apache.org/thread.html/r315682ed20bbeb2f1403cf592f892ef009274423189ffc5b3841a6a9%40%3Cdev.nuttx.apache.org%3E

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-10-18 11:48:19 -07:00
Philippe Coval
54bb98232e freedom-k64f: Lint freedom-k64f.h
Change-Id: I29e2ae0c003353840b79e8b190871a6b08afc86a
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2020-10-18 21:06:05 +08:00
Philippe Coval
08c1e4aadc freedom-k64f: Declare k64_i2cdev_initialize function
This will suppress a warning.

For some reason if declared weak,
it's not properly resolved at runtime,
this will need more investigations, any clues ?

Change-Id: I3cc3b7d145c7b32db20f5f2cbf4314ac20dba588
Forwarded: https://github.com/apache/incubator-nuttx/pulls/rzr
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2020-10-18 21:06:05 +08:00
Gregory Nutt
d5be1acf06 Revert PR #2009
We cannot accept any new files into the repository that do not have Apache 2.0 license headers.

This reverts commit 00eccfd4fa.
2020-10-17 21:43:19 -07:00
Michal Lenc
b5e9961036 Fix nxstyle errors and warnings
Signed-off-by: Michal Lenc <lencmich@fel.cvut.cz>
2020-10-17 19:38:42 -03:00
Michal Lenc
1f323fe6be imxrt1060-evk: Added support for FlexCAN driver
Signed-off-by: Michal Lenc <lencmich@fel.cvut.cz>
2020-10-17 19:38:42 -03:00
Philippe Coval
dfb626a215 freedom-k64f: Register on board sensor driver
Change-Id: I4f3ff16fae994250f62537cd0c3021465db1189c
Forwarded: https://github.com/apache/incubator-nuttx/pulls/rzr
Bug: https://github.com/apache/incubator-nuttx/pull/1999
Last-update: 2020-10-16
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2020-10-18 02:33:51 +08:00
Daniel P. Carvalho
7284956730 Fix nxstyle errors and warnings 2020-10-17 10:40:50 -03:00
Daniel P. Carvalho
45cefc5a1b Fix nxstyle. 2020-10-17 10:40:50 -03:00
Daniel P. Carvalho
00eccfd4fa Added support to STM32L432KC DAC. 2020-10-17 10:40:50 -03:00
Philippe Coval
35fa8bdfca freedom-k64f: Add I2C initial support
It was checked using i2c tool and onboard sensor:

    nsh> i2c bus
    Bus 0: YES

    nsh> i2c dev 1 0x7F
    10: -- -- -- -- -- -- -- -- -- -- -- -- -- 1d -- --

    nsh> i2c get -a 1d -r 0d
    #| READ Bus: 0 Addr: 1d Subaddr: 0d Value: c7

Sensor driver to come next.

Feature should be enabled using:

    CONFIG_SYSTEM_I2CTOOL=y
    CONFIG_KINETIS_I2C0=y

Change-Id: I4f3ff16fae994250f62537cd0c3021465db1189c
Forwarded: https://github.com/apache/incubator-nuttx/pull/1982/
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2020-10-14 15:02:14 -03:00
Philippe Coval
8f9cd8832d freedom-k64f: Add renew DHCP client for netnsh
Also enable ifup, use USB console and create raw image.

Windows is not mandatory, I use linux as host
so defconfig can rely on defaults.

Change-Id: Ic0e5f79f28facb6eff1d9831bcb31e1ff329a5aa
Forwarded: https://github.com/apache/incubator-nuttx/pulls/rzr
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2020-10-14 07:31:09 +02:00
Philippe Coval
fff15f1b93 freedom-k64f: Support raw binary firmware format
Then it can easly deployed using USB masstorage
(same as on embed)

Forwarded: https://github.com/apache/incubator-nuttx/pulls/rzr
Change-Id: I62381d3f571fbc6e4716fa01d6974954f9193075
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2020-10-13 15:30:50 +08:00
Philippe Coval
b76b3b6f3d freedom-k64f: Include kinetis.h for resources macros
Change-Id: I37560525678b820668abcb6e4aae93b978797066
Forwarded: https://github.com/apache/incubator-nuttx/pulls/rzr
Signed-off-by: Philippe Coval rzr@users.sf.net
2020-10-13 02:34:51 +08:00
Philippe Coval
cabaa10428 freedom-k64f: Init PWM only if enabled
Aligned to k28f.

Change-Id: I1b384ee69dd1b87268545ef6343acc63f29b2ae6
Forwarded: https://github.com/apache/incubator-nuttx/pull/1969
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2020-10-13 01:52:40 +08:00
Philippe Coval
a377c742a6 freedom-k64f: Lint code for checkpatch
Change-Id: Ie44b199af21e7a483c5b07539db9537e8bcb9b51
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2020-10-13 00:39:44 +08:00
Philippe Coval
0081b75d20 freedom-k64f: Declare missing NUM_BUTTONS
Change-Id: I99429d0e6d8bccc18358465eb192e739bf82881a
Forwarded: https://github.com/apache/incubator-nuttx/pull/1968
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2020-10-13 00:39:44 +08:00
Philippe Coval
718d928342 freedom-k64f: Close statement with semicolon in board_buttons
More changes to come

Change-Id: Ie60fd97083c4bc1b5b631d2e812b93bff304760a
Forwarded: https://github.com/apache/incubator-nuttx/pull/1967
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2020-10-13 00:18:40 +08:00
Masayuki Ishikawa
7be1739b41 boards: spresense: Add graphics demos to wifi and wifi_smp
Summary:
- This commit enables LCD for spresense and adds graphics demos

Impact:
- Affects wifi and wifi_smp configurations

Testing:
- Tested with nx, nxdemo, nxhello and nxlines

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-10-12 09:37:29 +02:00
Masayuki Ishikawa
b592228cea boards: spresense: Add CONFIG_ARCH_INTERRUPTSTACK=2048 to wifi and wifi_smp
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-10-12 09:37:29 +02:00
raiden00pl
650997e1f6 Fix nxstyle warnings 2020-10-10 12:24:28 -06:00
raiden00pl
17255414b5 stm32: Changed headers for apache 2.0 license 2020-10-10 12:24:28 -06:00
raiden00pl
29541e59e0 stm32h7: Changed headers for apache 2.0 license 2020-10-10 12:24:28 -06:00
raiden00pl
33901969fe Fix nxstyle warnings 2020-10-10 12:24:28 -06:00
raiden00pl
25c58f2a32 stm32f0l0g0: Changed headers for apache 2.0 license 2020-10-10 12:24:28 -06:00
raiden00pl
478de48bc7 nrf52: Changed headers for apache 2.0 license 2020-10-10 12:24:28 -06:00
Masayuki Ishikawa
cb6dd70082 boards: cxd56xx: Fix a deadlock in cxd56_gs2200m.c
Summary:
- During streaming test, I noticed a dealock when controlling IRQ
- Actually, it will send an IPI when the cpu index is not 0
- However, up_cpu_pause() also sends IPI with critical section
- So the IRQ control must follow the same rule

Impact:
- Affects SMP only

Testing:
- Tested with spresense:wifi_smp

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-10-08 09:02:17 +02:00
Masayuki Ishikawa
8d1dc11a36 boards: spresense: Add CONFIG_USERMAIN_STACKSIZE=3072 to wifi/defconfig
Summary:
- I noticed that stack for the init task was filled almost 100%
- This commit fixes this issue

Impact:
- Affects spresense:wifi configuration only

Testing:
- Tested with renew/mount/wget/nxplayer commands

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-10-01 08:45:48 +02:00
David Sidrane
c720f221c2 s32k1xx:boards Add KEEP on init_section 2020-09-29 10:26:59 +08:00
David Sidrane
06d1ea1a67 imxrt:imxrt10x0-evk Add KEEP on init_section 2020-09-29 10:26:59 +08:00
Thomas Axelsson
d67bc0c3c8 imxrt: ADC driver
Based on LPC17xx_40xx and STM32 drivers.
2020-09-23 13:16:33 -03:00
Masayuki Ishikawa
6696d72494 boards: spresense: Adjust parameters for wifi and wifi_smp
Summary:
- This commit adjusts parameters for audio streaming

Impact:
- Only affects spresense:wifi and spresense:wifi_smp

Testing:
- Tested with nxplayer

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-09-23 15:17:46 +02:00
Masayuki Ishikawa
b08eaf0fbb boards: spresense: Add rndis_smp/defconfig
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-09-23 10:45:29 +02:00
Masayuki Ishikawa
809b0aa02c boards: spresense: Add CONFIG_SYSTEM_NXRECORDER=y to rndis/defconfig
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-09-23 10:45:29 +02:00
Masayuki Ishikawa
3941e47259 boards: spresense: Update README.txt regarding gs2200m
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-09-17 09:24:39 +02:00
Brennan Ashton
a7585b74b2 Kconfig: Fix syntax error in giant-board
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2020-09-16 14:16:50 -06:00
Adam Feuer
6e7d966b0a converted spaces to tabs for giant-board entries 2020-09-16 13:24:41 -06:00
Adam Feuer
1aed2f1a2a Update boards/arm/sama5/giant-board/src/sam_i2schar.c
Co-authored-by: patacongo <spudarnia@yahoo.com>
2020-09-16 13:24:41 -06:00
Adam Feuer
6a31da67ff Update boards/arm/sama5/giant-board/src/sam_sdram.c
Co-authored-by: patacongo <spudarnia@yahoo.com>
2020-09-16 13:24:41 -06:00
Adam Feuer
1784a3a675 Update boards/arm/sama5/giant-board/src/sam_i2schar.c
Co-authored-by: patacongo <spudarnia@yahoo.com>
2020-09-16 13:24:41 -06:00
Adam Feuer
cab35983d4 giant-board support (SAMA5D27C-D1G) 2020-09-16 13:24:41 -06:00
Xiang Xiao
1475309c5b Fix nxstyle warning
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-09-16 06:57:29 -07:00
Xiang Xiao
bf7399a982 arch: Initialize idle thread stack information
and remove the special handling in the stack dump

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ia1ef9a427bd4c7f6cee9838d0445f29cfaca3998
2020-09-16 06:57:29 -07:00
Masayuki Ishikawa
5fec6191c3 boards: spresense: Update rndis/defconfig
Summary:
- This commit updates spresense:rndis defconfig
- Audio buffer has been changed from 4KBx16 to 2KBx32
- Also, increase PREALLOC_MQ_MSGS to 32
- Increase stack size for audio worker thread
- Add examples/tcpblaster
- Use default IOB settings
- Enable NET_TCP_WRITE_BUFFERS

Impact:
- Affects spresense:rndis only

Testing:
- Tested with nxplayer, tcpserver, tcpclient, webserver, telnetd.

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-09-16 13:57:42 +02:00
Matias N
166242c171 use "export" to expose TOPDIR to all child make instead of passing it around every time 2020-09-15 21:11:33 -07:00
Xiang Xiao
77ae03788a note: Rename note driver to noteram driver
to reflect this is just a normal note driver with ram buffer

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-09-15 14:55:22 +08:00
raiden00pl
749eac9bf6 boards/nrf52840-dk: normalize adc and pwm configs 2020-09-13 10:57:11 -03:00
raiden00pl
13ff8e0276 boards/nrf52840-dk: add ADC and PWM examples 2020-09-13 10:57:11 -03:00
Matias N
c1878406b5 fix: normalize two board configs which were not updated for CONFIG_NFILE_STREAMS change 2020-09-12 14:18:51 -07: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
Matias N
61cd792437 nrf52840-dk: fix config dependency 2020-09-10 12:10:20 +02:00
Masayuki Ishikawa
a712fbd0a0 boards: wifi_smp: Add CONFIG_CXD56_TESTSET=y to defconfig
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-09-10 08:52:22 +02:00
Masayuki Ishikawa
35b2e7c431 boards: spresense: Fix build error for wifi_smp
Summary:
- Fix build error introduced by PR1520

Impact:
- Affects spresense:wifi_smp only

Testing:
- Build check only

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-09-07 14:32:05 +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
Nathan Hartman
dc4c4102c3 b-g474e-dpow1: Add support for FLASH bootloader
boards/arm/stm32/b-g474e-dpow1/scripts/ld.script.dfu:

    * New file. Reserve up to 24KiB at the start of FLASH for a
      bootloader.

boards/arm/stm32/b-g474e-dpow1/scripts/Make.defs:

    * When building with CONFIG_STM32_DFU, use the new ld.script.dfu
      to leave room in FLASH for a bootloader.

boards/arm/stm32/b-g474e-dpow1/README.txt:

    * "FLASH Bootloader Support": New section.
2020-09-07 11:41:46 +08:00
Ouss4
062ac73644 baords/arm/stm32/olimex-stm32-p407: Add hooks to configure UEXT USART3 2020-09-01 18:19:31 -03:00
Masayuki Ishikawa
5feab8057c boards: cxd56xx: Add wifi_smp configuration
Summary:
- This commit adds a wifi_smp configuration for spresense
- To avoid deadlock, gs2200m_irq_enable() and gs2200m_irq_disable()
  release global spinlock if they are not called on CPU0.

Impact:
- Only affects spresense:wifi_smp

Testing:
- Tested with ostest, renew, smp, telnetd.
- NOTE: tcpserver might be unstable

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-09-01 09:05:53 +02:00
Nathan Hartman
91b52c38f9 Fix wrong executable bit on two source files
boards/arm/cxd56xx/drivers/audio/cxd56_audio_bca_reg.h:

    * Remove erroneous executable bit.

fs/tmpfs/fs_tmpfs.c:

    * Remove erroneous executable bit.
2020-08-31 19:19:14 +01:00
Xiang Xiao
e47ff4748d boards/nucleo-f412zg: Replace WINTOOL with CONFIG_CYGWIN_WINTOOL
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-08-31 09:54:13 +02:00
Brennan Ashton
58e43adf08 nxstyle: Fix existing long line to match code style
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2020-08-30 19:16:30 -03:00
Brennan Ashton
4cb193d530 Docs: Update links to old website and wiki
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2020-08-30 19:16:30 -03:00
Matias N
6c227075e7 nrf52832-mdk: normalize defconfig 2020-08-30 18:15:26 +02:00
Matias N
fd615d1cd9 Add support for NRF52832 MakerDiary MDK board 2020-08-30 18:15:26 +02:00
leomarradke
8a2c480a48 arch: samd5e5:
- Add MTD progmem support.
- NVM USER PAGE IOCTLs support.

boards: metro-m4  Add support for:

- SmartFS inicialization.
- AT24 EEPROM.
- GPIO dev support.
- BQ27426 gauge inicialization.

drives: power
- Add BQ27426 fuel gauge support.

Testing:
- Build check only.

Signed-off-by: Leomar Mateus Radke  <leomar@falker.com.br>
2020-08-27 11:46:50 -03:00
Alan C. Assis
461e9d4ece stm32f746g-disco: Move serial console from USART6 to USART1 (Virtual COM)
Thanks Gustavo H. Nihei and Abdelatif Guettouche for reviewing
2020-08-26 19:47:27 +01:00
Matias N
0c59b3f451 nrf52832_sparkfun: recreate files from proper Apache sources 2020-08-24 14:36:43 +01:00
Matias N
1d62a3fc76 nrf52832 sparkfun: normalize defconfig 2020-08-24 14:36:43 +01:00
Matias N
be57e262b5 nxstyle fixes 2020-08-24 14:36:43 +01:00
Matias N
06a223976c initial support for nrf52832-sparkfun board 2020-08-24 14:36:43 +01:00
Masayuki Ishikawa
f9359d3fe8 boards: stm32f4discovery: Refactor stm32_gs2200m.c
Summary:
- This commit refactors stm32_gs2200m.c
- gs2200m_irq_enable() and gs2200m_irq_disable() are now symmetric.

Impact:
- All use cases which use the gs2200m driver.

Testing:
- Tested with stm32f4discovery:wifi

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-08-20 03:17:13 -05:00
Masayuki Ishikawa
e3b3d21556 boards: cxd56xx: Refactor cxd56_gs2200m.c
Summary:
- This commit refactors cxd56_gs2200m.c
- gs2200m_irq_enable() and gs2200m_irq_disable() are now symmetric.

Impact:
- All use cases which use the gs2200m driver.

Testing:
- Tested with spresense:wifi

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-08-20 03:17:13 -05:00
leomarradke
f5912b5cba arch: samd5e5 : Oneshot, freerun and tickless available support. All support runs on Timer/Counter (TC).
Some fixes in external interrupt controller (EIC) and clockconfig.

Testing:
- Build check only.

Signed-off-by: Leomar Mateus Radke  <leomar@falker.com.br>
2020-08-18 12:42:44 -03:00
Xiang Xiao
acca9fcc3b sched/wdog: Remove MAX_WDOGPARMS and related stuff
since the variable arguments are error prone and seldom used.

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-08-14 08:19:50 -06:00
leomarradke
35e0d74f3e arch: samd5e5 : Add USB host support.
Fixes in USB device and i2c.

boards: metro-m4  Add support for:

- vfat auto-mounted on a flash drive;
- i2c inicialization;
- usb-dev cdc;
- sam_usbhost_vbusdrive needs your VBUS implementation.

Testing:
- Build check only.

Signed-off-by: Leomar Mateus Radke  <leomar@falker.com.br>
2020-08-13 14:02:58 -03:00
Ouss4
ccf7154f05 drivers: Add the configuration option to select a board specific folder. 2020-08-13 03:48:17 -05:00
Johannes Schock
0585a8b327 Changed Watchdog API. 2020-08-12 08:29:21 -03:00
Johannes Schock
4aacd68c51 Freedom-K28 Automounter not related to USB. Removed condition. 2020-08-12 08:29:21 -03:00
Xiang Xiao
61ea875c94 Fix build break introduced by commit a0ce81d659
sam_ili9488.c:1605:7: error: label 'errout_with_dmadog' used but not defined
bcmf_sdio.c:855:16: error: passing argument 1 of 'wd_start' from incompatible pointer type

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-08-12 02:11:56 -07: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
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
Johannes Schock
02a9228c1f Added USB MSC state change notifier in notifier work queue.
Added USB MSC automount for Freedom K28 using the above.
2020-08-09 11:54:04 -06:00
Masayuki Ishikawa
56181c0bdd boards: spresense: Update wifi/defconfig
Summary:
- Add CONFIG_EXAMPLES_TCPBLASTER_GROUPSIZE=500
- Remove CONFIG_EXAMPLES_TCPBLASTER_SERVER_PORTNO=10001
- Add CONFIG_EXAMPLES_TCPBLASTER_TARGET2=y

Impact:
- This commit affects spresense:wifi only

Testing:
- Tested tcpclient and tcpserver

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-08-09 07:39:43 -05:00
leomarradke
e7073df8d6 arch: samd5e5 : Add watchdog timer drivers.
boards: metro-m4  Add support for starting the watchdog timer on the metro-m4.

Testing:
- Build check only

Signed-off-by: Leomar Mateus Radke  <leomar@falker.com.br>
2020-08-08 17:33:24 -03:00
Xiang Xiao
4c706771c3 sched/wdog: Replace all callback argument from uint32_t to wdparm_t
and alwasy cast the argument of wd_start to wdparm_t

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-08-08 17:30:26 -03:00
Masayuki Ishikawa
9a1391d36b boards: spresense: Enable CONFIG_RTC_HIRES in wifi/defconfig
Summary:
- This commit enable COFNIG_RTC_HIRES

Impact:
- This commit affects spresense:wifi configuration only

Testing:
- spresense:wifi with getprime

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-08-07 09:30:52 +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
Johannes Schock
a32912040f Several nxstyle fixes. 2020-08-05 08:55:54 -03:00
Johannes Schock
c760db7fd0 Kinetis K28 USBHS USB-Host. 2020-08-05 08:55:54 -03:00
David Sidrane
0cc3f95bb4 nucleo-144:stm32_bbsram make coding standard compliant 2020-08-04 21:20:05 -05:00
David Sidrane
ed5d00edd8 board_crashdump:use consistent type from outer function for file name 2020-08-04 21:20:05 -05:00
Gregory Nutt
d09f6aaa72 Correct more improper use of malloc(), zalloc(), and free()
malloc() and free() should never be used within the OS. This will work in the FLAT build because there is only a single heap, but will cause problems in PROTECTED and KERNEL build modes where there are separate heaps for user and kernel memory.

Typically kmm_malloc(), kmm_zalloc(), and kmm_free() should be called within the kernel in those build modes to use the kernel heap.

Memory is never free.  Possible memory leak:

    ./boards/arm/cxd56xx/common/src/cxd56_crashdump.c:  pdump = malloc(sizeof(fullcontext_t));

Memory allocated with malloc(), but freed with kmm_free():

    ./drivers/usbhost/usbhost_composite.c:  cfgbuffer = (FAR uint8_t *)malloc(CUSTOM_CONFIG_BUFSIZE);

Memory is never freed in these cases.  It is allocated in the driver initialization logic, but there is no corresponding uninitialization logic; memory is not freed on error conditions:

    ./arch/arm/src/lc823450/lc823450_i2s.c:  priv = (struct lc823450_i2s_s *)zalloc(sizeof(struct lc823450_i2s_s));
    ./arch/arm/src/sam34/sam_spi.c:  spics = (struct sam_spics_s *)zalloc(sizeof(struct sam_spics_s));
    ./arch/arm/src/sama5/sam_spi.c:  spics = (struct sam_spics_s *)zalloc(sizeof(struct sam_spics_s));
    ./arch/arm/src/samv7/sam_spi.c:  spics = (struct sam_spics_s *)zalloc(sizeof(struct sam_spics_s));

Memory is allocated with zalloc() but freed on error conditions with kmm_free():

    ./arch/arm/src/sama5/sam_ssc.c:  priv = (struct sam_ssc_s *)zalloc(sizeof(struct sam_ssc_s));
    ./arch/arm/src/samv7/sam_ssc.c:  priv = (struct sam_ssc_s *)zalloc(sizeof(struct sam_ssc_s));
    ./arch/arm/src/stm32/stm32_i2s.c:  priv = (struct stm32_i2s_s *)zalloc(sizeof(struct stm32_i2s_s));

Memory is never freed:

    ./drivers/spi/spi_bitbang.c:  priv = (FAR struct spi_bitbang_s *)zalloc(sizeof(struct spi_bitbang_s));
2020-08-04 20:41:43 +01:00
Masayuki Ishikawa
ea1ce2bcb6 boards: lc82345-xgevk: Replace license header with Apache License 2.0
Summary:
- This commit replaces license header under lc823450-xgevk

Impact:
- No impact

Testing:
- Build check only

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-08-03 21:03:41 +01:00
SPRESENSE
3befe16f52 drivers/video: Support JPEG format in VIDEO_CAPTURE
Add support for the VIDEO stream with JPEG frames supported by ISX012.
2020-07-31 09:37:20 +02:00
SPRESENSE
45e9c2c8f5 drivers/video: Add 3A parameter control
Provide functions which get and set the 3A (Auto white balance/Auto
exposure/Auto
focus) parameters.
These are achieved by the ioctl request codes VIDIOC_G_EXT_CTRLS and
VIDIOC_S_EXT_CTRLS which have the following settings:

 1. ctrl_class = V4L2_CTRL_CLASS_CAMERA
 2. id         = V4L2_CID_3A_PARAMETER

Also, provide function which get the 3A adjustment status.
This is achieved by the ioctl request codes VIDIOC_G_EXT_CTRLS which has the
following settings:

 1. ctrl_class = V4L2_CTRL_CLASS_CAMERA
 2. id         = V4L2_CID_3A_STATUS
2020-07-31 09:37:20 +02:00
SPRESENSE
28ba7f4a1e boards: cxd56xx: Fix bugs about ON/OFF control of AWB and AE
Fix the following three bugs about ON/OFF control of auto white balance and auto
exposure:

 - The returned value of VIDIOC_G_CTRL with id = V4L2_CID_AUTO_WHITE_BALANCE is
different from V4L2 specification.
 - Auto exposure is locked if auto white balance lock is requested.
 - Auto exposure and auto white balance are locked if auto exposure lock is
requested.
2020-07-31 09:37:20 +02:00
SPRESENSE
f1f0378d0a boards: cxd56_imageproc.c: Add alpha blend API
Add imageproc_alpha_blend() to blend two images in a specified ratio.

The blended source image is selectable from the following two types:

 - Single color image
 - YUV422 image

The blend ratio is selectable from the following three types:

 - Blend ratio with single value
 - Blend ratio with 1bpp
 - Blend ratio with 8bpp
2020-07-31 09:37:20 +02:00
SPRESENSE
8fec8cccfc boards: cxd56_imageproc.c: Add RGB565 -> YUV422 converter
Enable to interconvert between YUV422 and RGB565.
2020-07-31 09:37:20 +02:00
Masayuki Ishikawa
22a9b497b1 arch: lc823450: Fix style violations in lc823450_syscontrol.h
Summary:
- Fix style violations in lc823450_syscontrol.h

Impact:
- This commit affects register naming in syscontrol.
- So some files such as lc823450_start.c lc823450_mux.c were also changed.

Testing:
- Build check only

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-07-30 00:07:31 -05:00
Masayuki Ishikawa
f255f4f97d boards: lc823450-xgevk: Fix style violations
Summary:
- Fix style violations under lc823450-xgevk

Impact:
- No impact

Testing:
- Build check only

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-07-30 00:07:31 -05:00
SPRESENSE
a32506bbdf boards: s32k1xx: Remove SPITOOL_PROGNAME
Fix apps/system/spi/Kconfig default value, so no longer needed.
2020-07-29 00:48:48 -05:00
SPRESENSE
d560ce65ff cxd56xx: spresense: Add some improvements and fix bugs for Spresense board
- Add new functions of GNSS
- Support the lower PWM frequency
- Add CONFIG_CPUFREQ_RELEASE_LOCK
- Add high speed ADC support
- Add HPADC input gain configuration
- Add eMMC device
- Frame buffer support
- Fix SD/GNSS/sensor drivers not worked
- Build errors
- Fix nxstyle issues
2020-07-28 09:13:05 +02:00
SPRESENSE
500ead8101 drivers/modem/altair: Update altair modem driver
- Add board specific logic to altair modem dirver
- Fix issue that SPI4 RX frequency violated AC Spec
- Remove dummy buffer in altair driver
- Fix priority of SPI transfer task is too low
- Remove unnecessary configuration
- Modify timeout value for RX ready
- Fix minor bugs
2020-07-28 09:09:18 +02:00
Johanne Schock
8792ade0fe Several USB improvements.
Kinetis: Reworked USB driver for setup out data phase.
Freedom K28: New config nshsdusb, with RNDIS support
PL2303: Try to avoid clone detection.
General: various nxstyle fixes
General: license changed
2020-07-24 13:24:53 -03:00
Xiang Xiao
1a901d72c0 board/arm: Remove -march and -mcpu option
Already add in arch/arm/src/armv7-m/Toolchain.defs

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-21 22:11:34 -07:00
raiden00pl
ba44a812bb fix nxstyle warnings 2020-07-20 17:11:11 +01:00
raiden00pl
8fe3a46dc0 boards/arm/nrf52/nrf52840-dk: add timer example 2020-07-20 17:11:11 +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
Masayuki Ishikawa
11f8b7c974 boards: stm32f4discovery: Remove CONFIG_SCHED_LPWORK=y from wifi/defconfig
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-07-19 21:11:46 -05:00
Masayuki Ishikawa
4cf307584f boards: spresense: Remove CONFIG_SCHED_LPWORK=y from wifi/defconfig
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-07-19 21:11:46 -05:00
raiden00pl
f6235c52f7 boards/arm/nrf52/nrf52840-dk: add highpri example configuration 2020-07-18 20:00:52 +01:00
Xiang Xiao
ac7e5de5ae libxx: Integrate uClibc++ latest official release
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I05377a0a7674f1cbe461ce67960bd3dc62729337
2020-07-17 21:40:34 +01:00
Adam Feuer
85811957c9 implement system reset on SAMA5D27
- makes nsh reboot command work

Squashed commit of the following:

commit 5193f6ae9623bfb4d3bed4ecf3d0fb9ae1bfb6e8
Author: Adam Feuer <adam@starcat.io>
Date:   Thu Jul 16 16:41:54 2020 -0700

    removed conflict tag that was missed

    - result of an incorrectly fixed bad merge

commit 731108ea7495655e96e516448887ca8c9ab354d1
Author: Adam Feuer <adam@starcat.io>
Date:   Thu Jul 16 16:12:30 2020 -0700

    implement system reset to make nsh reboot work

    Squashed commit of the following:

    commit 245d155cc58d31af412f2b832877736b2088b896
    Author: Adam Feuer <adam@starcat.io>
    Date:   Thu Jul 16 16:10:10 2020 -0700

        add Kconfig setting for system reset

    commit e7d5def8151821bf359c55c05ba1f59421b2371a
    Author: Adam Feuer <adam@starcat.io>
    Date:   Thu Jul 16 15:51:35 2020 -0700

         implement system reset to make nsh reboot work
2020-07-17 13:32:22 +01:00
Adam Feuer
65a866fbe2 support for SAMA5D27 SDMMC peripheral
- MMC and SD Card driver
- ported from imxrt_usdhc.c

Squashed commit of the following:

commit 46cbe18ad6a6e41ec2727d839f86f5670577878a
Author: Adam Feuer <adam@starcat.io>
Date:   Wed Jul 15 10:28:02 2020 -0700

    nxstyle change - Public Function Prototypes

    - instead of Public Functions

commit 486b7b62e83a78ae15b114e34846900d8fef8248
Author: Adam Feuer <adam@starcat.io>
Date:   Wed Jul 15 10:06:51 2020 -0700

    nxstyle changes

commit 28280d585a40aac99fd0e538295828ea013739b7
Author: Adam Feuer <adam@starcat.io>
Date:   Wed Jul 15 10:06:29 2020 -0700

    removing unused enum value

commit 7da6ba437e7e023d348e63c497732fea985a2d1b
Author: Adam Feuer <adam@starcat.io>
Date:   Tue Jul 14 21:17:49 2020 -0700

    CI build error fixes

    - unused vars
    - incorrect method calls

commit 145a73449b9d1eaed8a6cbf47cb53fb5b7a551f6
Author: Adam Feuer <adam@starcat.io>
Date:   Tue Jul 14 17:29:56 2020 -0700

    adding #defines to prevent unused var warning

commit 47ed2c08235816caded26a019cf33899daed1621
Author: Adam Feuer <adam@starcat.io>
Date:   Tue Jul 14 16:29:07 2020 -0700

    removing obsolete config values

commit b43f129c03a8bb8dc57ae6984d124ce9e9306196
Author: Adam Feuer <adam@starcat.io>
Date:   Tue Jul 14 09:58:42 2020 -0700

    removed obsolete config setting

commit 23e3af846ac24cac928442c7af86c5d0ef183ad3
Merge: 8b47330fe5 6f6d61eec4
Author: Adam Feuer <adam@starcat.io>
Date:   Tue Jul 14 09:53:12 2020 -0700

    Merge remote-tracking branch 'upstream/master' into feature/sama5d27-sdmmc-support

commit 8b47330fe5bb49bbd1991f2f3e2c69bdfb833d2c
Author: Adam Feuer <adam@starcat.io>
Date:   Tue Jul 14 09:51:56 2020 -0700

    replaced license headers with Apache License 2.0

commit 865e69b9a84d077ab9e05c2056dc7a515222c6c7
Author: Adam Feuer <adam@starcat.io>
Date:   Thu Jul 9 18:38:01 2020 -0700

    SAMA5D2x SDMMC peripheral support (SD Card driver)

    - reading and writing at 25 MHz and 50Mhz
    - UHS_SDR50, UHS_DDR50, and UHS_SDR104 are supported
    - ported from imxrt_usdhc.c
    - only tested on SAMA5D27

    Squashed commit of the following:

    commit e3122baef2feaeb32bb00798ae56310b2cc5c448
    Author: Adam Feuer <adam@starcat.io>
    Date:   Thu Jul 9 18:30:03 2020 -0700

        added sdmmcnsh defconfig and basic docs

    commit 12a290d7465a0a006473ba67893bf891a7bcea83
    Author: Adam Feuer <adam@starcat.io>
    Date:   Thu Jul 9 17:50:06 2020 -0700

        nxstyle changes

    commit 33409c0f63c328dc200150ba883327cadf0300b2
    Author: Adam Feuer <adam@starcat.io>
    Date:   Thu Jul 9 16:15:00 2020 -0700

        add short delay to in recvshortcrc

        - to allow SDMMC to respond

    commit 3be7a7fb6f79900042d1fdbef72810f364ac5f62
    Author: Adam Feuer <adam@adamfeuer.com>
    Date:   Thu Jul 9 10:54:59 2020 -0700

        added SDR50 and SDR104 SDMMC bus modes

    commit 2888408866548ca53e582ea1525178a7733617b4
    Author: Adam Feuer <adam@adamfeuer.com>
    Date:   Thu Jul 9 10:54:25 2020 -0700

        comment formatting cleanup

    commit 06cf2c39193971155eaa6f9c89a39a88b53964a8
    Author: Adam Feuer <adam@adamfeuer.com>
    Date:   Thu Jul 9 10:34:01 2020 -0700

        removed unneeded comment

    commit ac89b69231bdf19563754865fda93d4bbbb4488d
    Author: Adam Feuer <adam@adamfeuer.com>
    Date:   Thu Jul 9 10:30:23 2020 -0700

        code cleanup

        - removing custinfo() logging
        - remove duplicate #defines
        - move var declarations to the beginning of methods

    commit bcd4abec7935ee9023ab72edfb02685dbeee243c
    Author: Adam Feuer <adam@adamfeuer.com>
    Date:   Wed Jul 8 16:34:31 2020 -0700

        handle SDMA Boundary Pause interrupt (DMAINT)

        - SDMMC_INT_DINT
        - add to waitints
        - add handler to sam_interrupt

    commit e9da026c1270e999df520ee2c60487195799f58c
    Author: Adam Feuer <adam@adamfeuer.com>
    Date:   Tue Jul 7 16:07:34 2020 -0700

        Kconfig setting for SDMMC bus speed

        - 25 and 50 MHz
        - 50 MHz is the default

    commit 9edc636b7f18f981d653f85970c3af0b80801778
    Author: Adam Feuer <adam@adamfeuer.com>
    Date:   Mon Jul 6 21:55:51 2020 -0700

        added HSEN bit change for high speed mode

        - above 26 MHz

    commit b8e91c95b0f7b2f8220f02b1eb42b6134e0660d0
    Author: Adam Feuer <adam@adamfeuer.com>
    Date:   Mon Jul 6 21:28:03 2020 -0700

        added calloc to fix bug

        - not sure why this works.

    commit 1ceaf2f8487fe39d4d6fb21adecd57e4c4992e07
    Author: Adam Feuer <adam@adamfeuer.com>
    Date:   Mon Jul 6 21:25:47 2020 -0700

        removing spurious typo characters

    commit 14ba51743bcca35686b07a76f5af17bcce078a5f
    Author: Adam Feuer <adam@adamfeuer.com>
    Date:   Sat Jul 4 18:10:46 2020 -0700

        nxstyle changes

    commit d8af26df47b7840117de0d3a44ec548b3a72bc2b
    Author: Adam Feuer <adam@adamfeuer.com>
    Date:   Sat Jul 4 17:01:11 2020 -0700

        nxstyle changes

    commit 0ae532bd62d02c5ac36aa2192f31fa1f7f1cde99
    Author: Adam Feuer <adam@adamfeuer.com>
    Date:   Sat Jul 4 16:37:17 2020 -0700

        remove long lines in comments - nxstyle

    commit 3d025a84f8e9ddb7f7a4570504118d782dd5574c
    Author: Adam Feuer <adam@adamfeuer.com>
    Date:   Sat Jul 4 16:36:52 2020 -0700

        removed custinfo logging

    commit 366b5d9d241a42d693583679cb49aa7bf25615aa
    Author: Adam Feuer <adam@adamfeuer.com>
    Date:   Sat Jul 4 16:35:08 2020 -0700

        removed custinfo logging

    commit c74396e4a4943873c7de5b6ffee193787c39baef
    Author: Adam Feuer <adam@adamfeuer.com>
    Date:   Sat Jul 4 16:34:36 2020 -0700

        fixed typo

    commit 7f51e99d7f4c1e5e0bf71a84fd0b2467157fea59
    Merge: c40f8c1039 2481b1bfd5
    Author: Adam Feuer <adam@adamfeuer.com>
    Date:   Sat Jul 4 15:33:06 2020 -0700

        Merge remote-tracking branch 'upstream/master' into feature/sama5d27-sdmmc-support

    commit c40f8c10390ecefeb3a113046edd6740b07ab31b
    Author: Adam Feuer <adam@adamfeuer.com>
    Date:   Thu Jul 2 22:08:20 2020 -0700

        SDMMC support for SAMA5D27
2020-07-16 23:39:37 +01:00
Xiang Xiao
4910d43ab0 build: Move the toolchain library setting to the common place
so all boards support C++ automatically
2020-07-16 15:38:08 -03:00
Xiang Xiao
f5311de6b4 boards: Remove the unused ARCHCCVERSION and ARCHCCMAJOR
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I22d546693139c59c8c899479887a5f04d65edbd6
2020-07-16 11:03:53 -07:00
Masayuki Ishikawa
c4be707683 boards: stm32f4discovery: Add ELF support to wifi/defconfig
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-07-16 05:28:46 -05: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
Brennan Ashton
aef6f4ae09 Add initial support for the QuickLogic EOS S3
The QuickFeather board added as an initial target.
These featrues are minimally implemented:
  * Clock Configuration -- All clocking registers are defined and
    configuration is used to setup the HSO, M4 Core, and M4 Perif
    clocks.  Additionally some clock debugging is stubbed for
    bringing out clock paths to IO pins.

  * UART -- The lowputc as well as the serial driver is implemnted
    for the single UART device. Currently the configuration is
    hard coded, but uses the proper interfaces to later fill in.

  * SysTick -- The system tick timer is implemented and clocking
    properly. Tickless mode is not yet implemented.

  * Interrupts -- The interrupt system is implemented and verified
    using the UART and SysTick systems.

  * GPIO -- GPIO and IOMUX systems are defined and implemented.
    This is verified using the UART as well as the Arch LED
    system.  The GPIO interupt system is stubbed out but not
    implemented.

  * Arch LEDS -- The blue LED as part of the RGB LED is configured
    and attached to the Arch LED system.  This indicates the device
    coming online as well as when a hardfault is triggered.

Applications and Testing:
  * There is a nsh configuration implemented that includes debug
    features as well as the ostest, getprime, and mem test.
    All of these have been run and verified.

Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2020-07-15 11:25:30 +01:00
Masayuki Ishikawa
d214cff7d7 boards: stm32f4discovery: Update configs/posix_spawn
- Remove Make.defs
- Remove CONFIG_HOST_WINDOWS=y from defconfig
- Add CONFIG_RAW_BINARY=y to defconfig

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-07-14 22:40:22 -05:00
Masayuki Ishikawa
df72e4566f boards: stm32f4discovery: Update configs/elf
- Remove Make.defs
- Remove CONFIG_HOST_WINDOWS=y from defconfig
- Add CONFIG_RAW_BINARY=y to defconfig

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-07-14 22:40:22 -05:00
Dave Marples
bc95500bab Add buttons support to iMXRT1060 2020-07-14 23:34:08 +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
6abd03d53f libxx: Unify uClibc++ and libc++ config
code just need check CONFIG_CXX_EXCEPTION/CONFIG_CXX_LIBSUPCXX now,
instead uClibc++/libc++ specific config

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I3b00a5a6701b8bf1c70de89f2d924592ca3e38b0
2020-07-13 15:08:13 -03:00
Dave Marples
3cbf6d58a5 Fix LCD pins to work correctly 2020-07-09 14:03:13 +01:00
Xiang Xiao
5da9cb3ae6 libxx: Eanble HAVE_CXXINITIALIZE automatically if LIBCXX or UCLIBCXX enable
otherwise the user is shocked that using cin/cout/cerr will crash the system

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I453427261f3e2a6e60f7dd2398f7d3bd1043a0d5
2020-07-09 13:19:54 +01:00
Xiang Xiao
a62b45380b spresense:example_camera: Remove CONFIG_SYSTEM_NSH_CXXINITIALIZE
since it doesn't exist anymore

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-09 12:41:19 +09:00
Alin Jerpelea
5d0b93a0d9 boards: arm: cxd56xx: enable basic snapshot camera example
This camera example grabs a specified number of pictures
and saves them on the available storage

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2020-07-08 23:59:29 +01:00
chao.an
d938e2cd46 CI check: fix nxstyle warning
nxstyle fixes to reduce the CI warnings

Signed-off-by: chao.an <anchao@xiaomi.com>
2020-07-02 01:53:23 -05:00
Xiang Xiao
310b572116 board/olimex-stm32-p407: Remove CONFIG_SYSTEM_NSH_CXXINITIALIZE
forget in commit 49020acfdc

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-01 11:00:33 -06: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
Xiang Xiao
e9c7df4769 sched: Rename task_startup to nxtask_startup
to follow the naming convention

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I3594d12a65e8cacea99bc295d622628304c3f9f8
2020-07-01 07:55:33 -06:00
Peter van der Perk
b938348cdb S32K1XX EEEPROM indentation fix 2020-06-30 12:46:50 -06:00
Peter van der Perk
4a40a7c3d7 S32K148EVB netdev lateinit to support Enet & CAN at the same time 2020-06-30 12:46:50 -06:00
liuhaitao
ac1641dc1b stm32/nucleo-f412zg: refresh nsh defconfig
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-06-29 23:17:03 -05:00
liuhaitao
708f68a3d2 stm32/nucleo-f412zg: update nucleo-f412zg files to fix nightly build break
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-06-29 23:17:03 -05:00
Jacob Dahl
b12b3072e8 Added support for STM32F412xx. Tested with the NUCLEO-F412ZG dev board as well as a custom board using the STM32F412CE. 2020-06-29 17:44:35 +02:00
Gustavo Henrique Nihei
807c1df498 boards/arm/stm32f7/stm32f769i-disco: Apply NxStyle fixes 2020-06-24 10:51:02 -03:00