raiden00pl
51b24c4bad
stm32/qenco: add support for QEIOC_SETPOSMAX
2021-08-10 11:19:05 -03:00
raiden00pl
dca8c65331
drivers/qencoder: add command to set the maximum encoder position
2021-08-10 11:19:05 -03:00
raiden00pl
092a0c8453
stm32/qenco: add an option to disable encoder timer extension from 16-bit to 32-bit
...
Previous implementation has always expanded the width of the timer to 32-bit.
This feature is not always needed and should be configurable from Kconfig.
2021-08-10 11:18:40 -03:00
raiden00pl
b0c9a6133e
stm32/qenco: fix TIM2 width for STM32F3 which is 32-bit not 16-bit
...
STM32F3 has timers of the same length as in STM32F4.
2021-08-10 11:18:40 -03:00
raiden00pl
3dd385ac0c
stm32/qenco: add support for STM32G4
...
This required generalization of RCC definitions that are not compatible with previous chips
2021-08-10 11:18:40 -03:00
raiden00pl
21f59c874f
stm32/qenco: fix compilation for STM32F1. GTIM_CCER_CCxNP bits are not present in F1
2021-08-10 11:18:40 -03:00
Sara Souza
af6c311fd1
risc-v/esp32-c3: Complete the support for RWDT
2021-08-10 11:17:15 -03:00
Sara Souza
61ab4f9f14
xtensa/esp32: Fix the type of enum passed between functions in esp32_rtc_clk
2021-08-10 11:15:51 -03:00
Sara Souza
67d29e7537
xtensa/esp32: initialize RTC in case PM or RTC configs are not set, but RWDT is.
2021-08-10 11:15:51 -03:00
Xiang Xiao
d7cb4567e6
fs/nfs: Support fchstat and chstat callback
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-10 21:28:52 +09:00
Xiang Xiao
580de38832
fs/nfs: Return nanosecond from nfs_fstat and nfs_stat callback
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-10 21:28:52 +09:00
Xiang Xiao
7a60efab35
fs/nfs: Support 64bit file length
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-10 21:28:52 +09:00
Alan C. Assis
c4742c2197
mtd/smartfs: Fix compilation warning
2021-08-09 20:33:05 -03:00
zhuyanlin
5820972727
arch:xtensa: add arch stdarg.h include file for xtensa
...
Add arch/include/stdarg.h for xtensa.
Change-Id: Ia914ca0f4c95e86b130983ce690479a994a08b56
2021-08-09 17:58:25 -03:00
Xiang Xiao
776458143c
fs/hostfs: Support fchstat and chstat callback
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-09 17:55:44 -03:00
Xiang Xiao
6c61d032db
fs: Add utimens and lutimens
...
https://pubs.opengroup.org/onlinepubs/9699919799/functions/futimens.html
https://www.daemon-systems.org/man/utimens.2.html
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-09 17:55:44 -03:00
Kenneth Thompson
50c49da078
bch/bchlib_cache.c: Fix error handling
2021-08-09 10:52:08 -07:00
Kenneth Thompson
9d29d4bef5
drivers/bch: Handle return value of bchlib_readsector()
2021-08-09 10:52:08 -07:00
Fotis Panagiotopoulos
59b9a30592
Compile fixes in MCP23X17 driver.
2021-08-09 08:42:53 -03:00
Xiang Xiao
7f60376d3a
fs/hostfs: Change all priv_ to priv
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-09 13:20:19 +02:00
Alan C. Assis
2581c7acef
Doc/FAQ: Add more entries about board initialization
2021-08-08 20:50:49 -07:00
Xiang Xiao
7e0db977cc
arch/arm: Add CONTROL register bit field definition
...
and replace all hardcode value
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-07 09:20:10 -03:00
YAMAMOTO Takashi
b815a2c3a8
tcp_input: Don't put back sndseq on an old ack
2021-08-06 21:17:25 -07:00
YAMAMOTO Takashi
e53f989997
tcp_rexmit: advance conn->sndseq
...
Otherwise, we use an old sequence number when sending
non-data segment. (eg. window update)
The peer might consider such a segment stale and ignore.
2021-08-06 21:17:25 -07:00
Michal Lenc
87c5cc1a5d
adc: add IOCTL commands ANIOC_RESET_FIFO and ANIOC_SAMPLES_ON_READ
...
This commit adds two new IOCTL commnands for ADC driver. Command
ANIOC_RESET_FIFO resets FIFO head and tail which causes the driver
to wait for the new data to be received. Calling this command before
reading ADC data in user space ensures that the read data are newly
sampled.
Command ANIOC_SAMPLES_ON_READ return the number of read channels in
the buffer. This can be useful in nonblocking mode when the application
needs to get the samples received before the app was started.
Both IOCTL commands are used only in generic driver section only and do
not have any effect on existing architecture specific drivers.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2021-08-06 21:10:59 -07:00
Gustavo Henrique Nihei
b145ad82b7
sched: Fix crash on early syslog message with prepended process name
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-08-06 21:09:08 -07:00
Alan C. Assis
bed8161202
Documentation/FAQ: Why /dev/ttySx is not created
2021-08-06 19:52:30 -03:00
Jiuzhu Dong
5c5e75ac6f
cmd/df: Fix the abnormal output after off_t change
...
Change-Id: Ieaf063cb636a77eea971cb19e6eaeea6421bff4b
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-08-06 08:08:36 -07:00
Xiang Xiao
b12f588140
Rename CONFIG_LIB_BOARDCTL to CONFIG_BOARDCTL
...
since boardctl isn't a libc feature
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-06 13:58:26 +02:00
YAMAMOTO Takashi
0272a16010
net_ioballoc: remove redundant critical section
2021-08-05 23:50:46 -07:00
YAMAMOTO Takashi
b5bb0d56ad
tcp: fix an assertion in "fix iob allocation deadlock" commit
...
Fix a wrong assertion in:
```
commit 98ec46d726
Author: YAMAMOTO Takashi <yamamoto@midokura.com>
Date: Tue Jul 20 09:10:43 2021 +0900
tcp_send_buffered.c: fix iob allocation deadlock
Ensure to put the wrb back onto the write_q when blocking
on iob allocation. Otherwise, it can deadlock with other
threads doing the same thing.
```
I forget to submit this with https://github.com/apache/incubator-nuttx/pull/4257
2021-08-05 23:50:06 -07:00
Pedro Bertoleti
b399c509c8
Add BMP180 and INA219 headers. Fix rp2040_ina219.h last comment format
2021-08-05 20:08:09 -03:00
Daniel P. Carvalho
a7be1c9a2e
stm32_pmw: fix pwm_stop() function to enable multiple PWM start and stop.
2021-08-05 14:48:44 -03:00
Xiang Xiao
5025fbef8d
Rename LIB_ to LIBC_ for all libc Kconfig
...
follow other libc component naming convention
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-05 19:45:24 +02:00
Michal Lenc
a3986eeba3
arch/arm/src/imxrt/imxrt_flexpwm.c: Set LDOK bits after all channels are set
...
This commit changes the FLexPWM driver for iMXRT MCU so that LDOK bits in
Master Control Register are set at once after all channels are configured.
Setting LDOK bit enables the driver to load prescaler, modulus and PWM
values of corresponging submodule and start PWM output. Setting all bits
at once instead of doing it separately can help avoiding the channels to
be out of sync with each other.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2021-08-05 09:57:49 -07:00
Xiang Xiao
4bb50cdd37
signal: Allow SIG_EVTHREAD selectable in protected mode
...
since we can delivery signal through libs/libc/wqueue
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-05 09:52:06 -03:00
Xiang Xiao
00e0afb864
libc/gettext: Change g_domain to array
...
otherwise textdomain will deference NULL pointer in the default case
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-05 09:41:30 -03:00
zhuyanlin
ec17cad69d
arch:xtensa:include chip/irq.h instead of depend on chip config.
...
Many duplicate code when more chips add-in,
follow arch/arm/include/irq.h method, use chip/irq.h instead.
Change-Id: I42f516c1dda68e973939c669f627c457cd0bc65e
2021-08-05 10:08:48 +02:00
Jiuzhu Dong
8f7ad8f9ce
tzset: avoid taking semaphore in interrupt for non-kernel mode
...
Change-Id: Ic72819eddb38621751e462fe32e9e433288fb33c
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-08-04 23:17:16 -07:00
zhuyanlin
cec6aeb059
arch:xtensa:vector: fix typo error in level4_ventor
...
Change-Id: I66cd3ff30e50e18ed718499aef609dd7aeb82dd3
2021-08-04 20:16:41 -07:00
zhuyanlin
51d13df317
arch: xtensa: save current SP before overwrting in dispatch_c_isr.
...
In levelx(2,3,4,5)_handler, first need to save sp in a12,
then after dispatch_c_isr we can restore sp from a12.
Change-Id: Idb6b64a782da866670a4db80b33435a9b63f02c3
2021-08-04 20:16:41 -07:00
Daniel P. Carvalho
91264ba704
nucleo-g431kb: modify COMP example
...
COMP example was changed to use DAC3CH2 signal on COMP INM input.
2021-08-04 20:22:58 +02:00
Daniel P. Carvalho
2593089f84
stm32_dac: add support for DAC3
2021-08-04 20:22:58 +02:00
zhuyanlin
4fc5b62ec3
arch:xtensa: use letter 'i' in inline assemble constraint instead of I
...
Some toolchain such as xtensa-xcc is unrecognize with constraint letter 'I',
letter 'i' is more common in GNU assembler.
Change-Id: I00f6a33fd7a5f2b95508c683e9954d402b68755f
2021-08-04 18:23:40 +02:00
zhuyanlin
9a34705b80
arch:xtensa_testset: remove include arch/spinlock.h
...
In config with no "CONFIG_SPINLOCK", include arch/spinlock.h will lead to
build error as multi definition with spinlock_t. Nuttx/spinlock.h will
include arch/spinlock.h when needed.
Change-Id: I33b48503f679ec79af3a0ef1f0fb1536aaf1ce7c
2021-08-04 18:18:11 +02:00
zhuyanlin
355133f218
arch:xtensa: add new GNU toolchain for xtensa.
...
Add support xcc,xclang GUN toolchin in xtensa,
ESP toolchain is default.
Change-Id: Id00bcf4a16c1e16862a106db32b1da3f3713a14c
2021-08-04 18:16:14 +02:00
Xiang Xiao
6a396eb224
Fix the printf warning after off_t change
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Id46daa2ee690a73d3187b479f0e7ab0e2e361764
2021-08-04 06:48:30 -07:00
Xiang Xiao
319474b1b1
fs: Change off_t and related types to int64_t if long long is supported
...
since it is very popular that the storage capcacity is large than 4GB
even in the embedded system:
https://www.opengroup.org/platform/lfs.html
https://en.wikipedia.org/wiki/Large-file_support
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I019dc08aff02f9ea01eb6d750033bbc358994da5
2021-08-04 06:48:30 -07:00
Abdelatif Guettouche
238a96e7de
arch/esp32_cpuint.c: Simplify up_disable/enable_irq.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-08-03 19:52:12 -07:00
Abdelatif Guettouche
4f2f2ef9fb
arch/xtensa: Get the cpu member out of the read only structure.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-08-03 19:52:12 -07:00