Sebastien Lorquet
7f11255662
fix overflow checks in mtdpart
2021-11-30 10:43:27 -06:00
Petro Karashchenko
d4a5003376
board/same70-xplained: MCUboot related improvements
...
- simplify LDSCRIPT file name selection
- rename CONFIG_SAME70XPLAINED_APP_FORMAT_MCUBOOT to
CONFIG_SAME70XPLAINED_FORMAT_MCUBOOT
- fix usage of SAME70XPLAINED_PROGMEM_OTA_PARTITION
config option
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-11-29 23:53:46 -06:00
Gerson Fernando Budke
c3307fce6b
arch/arm/Kconfig: Add ARCH_HAVE_PROGMEM config
...
The Atmel samv7 implements progmem functionality. However, there is
missing ARCH_HAVE_PROGMEM Kconfig symbol. This add missing symbol.
Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2021-11-29 21:31:08 -06:00
anjiahao
c2bcef4db8
include/stdio:add setlinebuf marco
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2021-11-29 11:18:36 -06:00
Petro Karashchenko
4b2b7d1d91
boards/same70-qmtech: add support of SAME70 QMTECH board
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-11-29 11:17:47 -06:00
Petro Karashchenko
31809724e1
boards/same70-xplained: disable systick before loading MCUboot application
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-11-28 20:33:53 -06:00
Gerson Fernando Budke
5c1cefd09d
boards/arm/samv7/samv71-xult: Set console at usart1
...
Set default console port to USART1. This allows easy access to serial
console by embedded debug CDC-ACM driver.
The README is updated with correct information about PB04 use once
samv71-xult can only be debugged using SWD mode. This means that it is
safe use CDC-ACM as default serial console.
Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2021-11-28 20:32:13 -06:00
Xiang Xiao
54eabf9616
libc: Add mknod implementation
...
https://pubs.opengroup.org/onlinepubs/007904875/functions/mknod.html
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-28 23:31:16 +01:00
Petro Karashchenko
fae27cc945
arch/samv7: fix unaligned address write for progmem interface
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-11-28 11:04:28 -06:00
Xiang Xiao
5da9dbe57a
libc/gets: Remove the unnecessary cast
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-27 16:07:39 -03:00
Xiang Xiao
b5f6dcb523
libc/getdelim: Remove __KERNEL__ check since it shouldn't be called inside kernel
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-27 16:07:39 -03:00
Petro Karashchenko
919aeced30
boards/same70-xplained: fix usage of SAMV71XULT instead of SAME70XPLAINED
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-11-27 16:06:48 -03:00
Petro Karashchenko
7ba330dff1
boards/same70-xplained/scripts: fix memory region size for MCUboot app
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-11-27 16:06:31 -03:00
songlinzhang
22df553443
net/arp: clean the arp table when netdev carrier off
...
Fix the arp address changed if netdev renew, since the
arp table should be cleared when the netdev carrier off
Signed-off-by: songlinzhang <songlinzhang@xiaomi.com>
2021-11-27 06:19:50 -06:00
anjiahao
4db9513658
inculude/netinet:add net mask define
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2021-11-27 06:19:10 -06:00
Michal Lenc
500738757f
boards/arm/samv7/same70-xplained: update adc defconfig with DMA support
...
Updates defconfig for example application to take the advantage of DMA
support and Timer/counter trigger.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2021-11-27 06:17:45 -06:00
Michal Lenc
ce53ea5da6
arch/arm/src/samv7: add DMA and TC trigger support to AFEC driver
...
This commit adds DMA and TC support to SAMV7 AFEC driver. The AFEC (ADC)
can now be triggered by Timer/counter at chosen frewuency and samples can
be transfered via DMA with configurable number of samples. Timer/counter
trigger is now set as a default option with the possibility to change it
to software generated trigger.
DMA is inspired by SAMA5 driver and also uses ping pong buffers.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2021-11-27 06:17:45 -06:00
Michal Lenc
6f2e23ad0c
arch/arm/src/samv7/sam_tc.c: fix compile warnings and errors
...
Just a minor change fixing some compile warnings and errros, does not have
any impact on functionality.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2021-11-27 06:17:45 -06:00
Abdelatif Guettouche
7776c6ad0e
sched_note.c: Condition g_note_disabled_irq_nest with
...
INSTRUMENTATION_IRQHANDLER to avoid warnings.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-11-27 06:16:23 -06:00
anjiahao
80d32edbe1
libc/str:add strlcat to libc
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2021-11-26 15:24:35 -03:00
Abdelatif Guettouche
251b8a3445
esp32xx_rtc: Include "clock/clock.h" to have a declaration of
...
g_basetime.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-11-26 15:23:47 -03:00
Abdelatif Guettouche
af11cf6cd1
esp32xx_rtc.c: Fix a duplicated assignment.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-11-26 15:23:47 -03:00
Dong Heng
66023da10c
risc-v/esp32c3: Refactor ADC calibration
...
Use calibration parameters from efuse rather than self-calibration.
2021-11-26 15:23:24 -03:00
Petro Karashchenko
298c372afa
tools/nxstyle: fix nxstyle check for pointer to function types
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-11-26 14:55:34 -03:00
Petro Karashchenko
510154299b
boards/same70-xplained: initial support of MCUboot
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
Co-authored-by: Gerson Fernando Budke <nandojve@gmail.com>
2021-11-26 14:55:34 -03:00
Petro Karashchenko
0d9425676d
arch/arm/src/samv7: add flash progmem erasestate ioctl support
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-11-26 14:55:34 -03:00
Petro Karashchenko
134b2e6ec9
arch/arm/include/samv7: fix typo in samv7 irq header files
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-11-26 14:55:34 -03:00
Xiang Xiao
c1cb429a98
libc/hex2bin: Handle the line ending(\r, \n and \r\n) dynamically
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-26 11:55:00 -03:00
chao.an
3b69d09c80
net/udp/icmp: correct the unreadchable handling
...
Reference RFC1122:
https://datatracker.ietf.org/doc/html/rfc1122
----------------------------------------------
4.1.3 SPECIFIC ISSUES
4.1.3.1 Ports
If a datagram arrives addressed to a UDP port for which
there is no pending LISTEN call, UDP SHOULD send an ICMP
Port Unreachable message.
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-11-26 08:47:54 -06:00
chao.an
6cd850b0e6
net/icmp/v6: add ICMP Destination Unreachable code definitions
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-11-26 08:47:54 -06:00
Petro Karashchenko
dd647d200e
arch/samv7/sam_progmem: fix page size flash writing
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-11-26 08:47:08 -06:00
zhangguoliang
b16eea4f14
feat: charger: add operation to get out voltage
...
Signed-off-by: zhangguoliang <zhangguoliang3@xiaomi.com>
2021-11-26 11:16:53 +01:00
weizhifang
e20becd91b
feature: charge: add add chipid ioctl api
...
1.add chipid ioctl api to battery monitor code
2.add chipid itctl api to battery charger code
3.add chipid itctl api to battery gauge code
Signed-off-by: weizhifang <weizhifang@xiaomi.com>
2021-11-26 11:16:53 +01:00
David Sidrane
08007dca8a
ramtron:Remove errant code and definitions
...
After reviewing the data sheet for MB85RS256B, CY15B104Q, and
FM25V0x the status register definitions in the driver were
wrong as was the use.
2021-11-25 20:52:10 -06:00
Xiang Xiao
e30a5f3790
arch/sim: Add new option to enable arch specific hostfs
...
we have many different hostfs implementation now, so it's better
to select the implementation explicitly, just like what we have
done for arm(FS_HOSTFS vs. ARM_SEMIHOSTING_HOSTFS).
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-25 14:42:23 +01:00
anjiahao
624b8d0776
add MAXHOSTNAMELEN in headfile
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2021-11-24 22:49:09 -06:00
zhuyanlin
1b3005accf
arch:cache_invalidate: fix unalign cacheline invalidate
...
Only invalidate may corrupt data in unalign start and end.
Use writeback and invalidate instead.
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2021-11-24 22:48:13 -06:00
zhuyanlin
4db5016d83
arch:hostfs: add cache coherence config for semihosting option
...
N/A
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2021-11-24 22:48:13 -06:00
David Sidrane
ad7e36d83f
stm32f7:sdmmc defer invalidate until after DMA completion
...
The FAT was not coherent. Resulting in a write failed
with errno:28 No space left on device.
It is unclear how the memory is acesses prior to the DMA
completion. But this restructuring ensures the data
is coherent.
This issue was not detected on the stm32h7
2021-11-24 20:38:23 -06:00
Jukka Laitinen
ac5a228d89
boards/risc-v/mpfs: Enable CONFIG_SPI_CS_CONTROL
...
Enable CS control via register write for the mpfs hwtest target
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2021-11-24 06:50:32 -06:00
Jani Paalijarvi
4dfd3c9160
arch/riscv: Add ARCH_HAVE_SPI_CS_CONTROL for mpfs
...
Make it possible to override SPI CS function in board logic
Co-authored-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2021-11-24 06:50:32 -06:00
Lee Lup Yuen
6e68d55f8a
Fix GPIO output
2021-11-24 06:48:50 -06:00
anjiahao
41c3b42468
change /dev/syslog & /dev/ramlog for unix standard
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2021-11-24 05:19:46 -06:00
chao.an
f3b019d1d2
libc/stdoutstream: restore the output method to fputc()
...
keep the default behavior for stdoutstream since the character
needs to flush every output
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-11-24 15:50:33 +09:00
chao.an
e228434cea
libs/libc: add interface to support output stream as buffer style
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-11-23 21:00:43 -06:00
chao.an
7cbb8da692
binfmt/elf: add bare metal coredump support
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-11-23 20:48:00 -06:00
Xiang Xiao
36a6f4cd09
tools/checkrelease.sh: Launch nuttx after build
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-23 17:17:24 +01:00
Xiang Xiao
403b09fa60
tools/release.sh: Build sim:asan instead of sim:nsh
...
since sim:asan could do more check
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-23 17:17:24 +01:00
Xiang Xiao
e6e3cc7e02
boards/sim: Automatically run ostest for asan and kasan config
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-23 17:17:24 +01:00
chao.an
0f76ff42eb
arch/sim: add arch elf define
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-11-23 20:34:56 +09:00