David Sidrane
9b29641bf5
s32k1xx:eeprom fix missing debug.h
2021-06-02 17:36:06 -03:00
Xiang Xiao
d7f96003cf
Don't include debug.h from public header file
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-06-01 06:42:02 +09:00
chao.an
6c69b12000
wireless/bluetooth: decoupling bt_driver_s and bt_buf_s
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-05-31 09:50:54 -03:00
Alin Jerpelea
02b244cb6f
arch: arm: update licenses to Apache
...
Sebastien Lorquet has submitted the CLA
Uros Platise has submitted the CLA
Gregory Nutt is the copyright holder for those files and he has submitted the
SGA as a result we can migrate the licenses to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-05-31 01:37:27 -05:00
Han Raaijmakers
04d81b24e3
S32K1XX LSPI Double word up to 64 bits support
2021-05-27 11:37:46 -07:00
Masayuki Ishikawa
88c6524d7c
arch: imx6: Add termios support to imx6
...
Summary:
- This commit adds termios support to imx6
Impact:
- None
Testing:
- Tested with QEMU
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-05-25 07:17:29 -05:00
Xiang Xiao
001e7c3e76
sched: Don't include nuttx/sched.h inside sched.h
...
But let nuttx/sched.h include sched.h instead to
avoid expose nuttx kernel API to userspace.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-05-24 12:11:53 +09:00
David Sidrane
86523318fc
stm32f7:i2c use inttypes
2021-05-22 08:53:07 -05:00
David Sidrane
8596fdd0bf
stm32h7:i2c use inttypes
2021-05-22 08:53:07 -05:00
Huang Qi
f4a0b7aedd
libc: Call pthread_exit in user-space by up_pthread_exit
...
Drop to user-space in kernel/protected build with up_pthread_exit,
now all pthread_cleanup functions executed in user mode.
* A new syscall SYS_pthread_exit added
* A new tcb flag TCB_FLAG_CANCEL_DOING added
* up_pthread_exit implemented for riscv/arm arch
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2021-05-21 22:46:52 -06:00
Huang Qi
81a01d089b
libc/pthread: Fix comment and document issue
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2021-05-21 22:46:52 -06:00
Gregory Nutt
bb9b58bdde
libc: Move pthread_create to user space
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
Change-Id: I5c447d94077debc79158686935f288e4c8e51e01
2021-05-21 22:46:52 -06:00
chao.an
6c40185985
arm/v7-a/fpu: add VFP-v3 D32 support
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-05-21 09:55:00 -03:00
Anthony Merlino
c9ccbb9e03
stm32h7xxxx_rcc.c: Fixes typo in comment
2021-05-20 00:53:49 -07:00
Anthony Merlino
35553147ba
stm32h7 rcc: Sync h7x7xx and h7x3xx. Changes are relevant to both
2021-05-20 00:53:49 -07:00
SPRESENSE
6b5a4cbfd3
arch: cxd56xx: Fix parameter check of hostif buffer
...
Fix a parameter check of the buffer attribute in opening hostif driver.
2021-05-20 07:23:48 +02:00
SPRESENSE
db9c94962b
arch: cxd56xx: Add host interface driver
...
Add host interface driver which supports I2C or SPI slave feature.
2021-05-20 07:23:48 +02:00
SPRESENSE
5a7a118320
arch: cxd56xx: Fix uninitialized variable for gnss driver
...
Fix uninitialized variable in gnss driver.
CodeSonar Warning 518288 - 518292
2021-05-20 07:23:48 +02:00
SPRESENSE
151fec4e98
arch: cxd56xx: Do not re-initialize the console for subcore
...
If the subcore configuration, which is mainly used in the Spresense
Arduino environment, is enabled, the serial console has been already
initialized by maincore. Then, don't need to re-initialize the UART1
serial driver.
2021-05-20 07:23:48 +02:00
SPRESENSE
efd4789b72
arch: cxd56xx: gauge: Use the dedicated debug macro
...
Replace to the battery dedicated debug macro instead of standard one.
2021-05-20 07:23:48 +02:00
SPRESENSE
50cb0306b6
arch: cxd56xx: charger: Use the dedicated debug macro
...
Replace to the battery dedicated debug macro instead of standard one.
2021-05-20 07:23:48 +02:00
SPRESENSE
bb348cc464
arch: cxd56xx: gnss: Fix compile error in debug log
...
Fix compile error when debug log is enabled.
Replace debug message from obsolete logerr() to _err().
2021-05-20 07:23:48 +02:00
SPRESENSE
6d3fb9ee81
arch: cxd56xx: wdt: Fix compile error in debug log
...
Fix compile error when CXD56_WDT_REGDEBUG is enabled.
2021-05-20 07:23:48 +02:00
SPRESENSE
f0cae6cdf3
arch: cxd56xx: Fix multiple open and close ADC driver
...
ADC driver does not support multiple open and close. It causes the memory
corruption by multiple free. This commit fixes this problem by introducing
the reference counter.
2021-05-20 07:23:48 +02:00
SPRESENSE
98871e58af
arch: cxd56xx: Fix gnss open error by clock change
...
If the system clock is changed during loading gnssfw, gnss open may be
failed. So this commit prohibits clock change until loading gnssfw is
completed.
2021-05-20 07:23:48 +02:00
SPRESENSE
e26da5f564
arch: cxd56xx: Update isop firmware
...
Update isop firmware which supports for the error handling and i2c
multi-master environment.
2021-05-20 07:23:48 +02:00
SPRESENSE
f548ffa7a7
arch: cxd56xx: Support execution error by SCU sequencer
...
Enable interrupt by SCU sequencer execution error. If the interrupt
occurs, then it stops the sequencer and returns the error code.
2021-05-20 07:23:48 +02:00
SPRESENSE
ba6201401f
arch: cxd56xx: Remove unnecessary i2c settings
...
Remove slave address register setting that is unnecessary for the
transfer by SCU sequencer.
2021-05-20 07:23:48 +02:00
SPRESENSE
ade26c17d2
arch: cxd56xx: Update i2c register initialization
...
Enable RX_FIFO_FULL_HLD_CTRL and RESTART of i2c control register in
i2c initial settings for transfer by SCU sequencer.
2021-05-20 07:23:48 +02:00
SPRESENSE
a10a4c483f
arch: cxd56xx: Add SCU register definitions
...
Add SCU register definitions.
2021-05-20 07:23:48 +02:00
SPRESENSE
09cc6b780b
arch: cxd56xx: update loader and gnssfw version
...
Update loader and gnssfw to version 2.2.20175
2021-05-20 07:23:48 +02:00
SPRESENSE
a276de741f
arch: cxd56xx: Fix SPI setmode function
...
When SSP mode is changed, SSE bit of SSPCR1 register must be disabled.
2021-05-20 07:23:48 +02:00
SPRESENSE
89fd987a1a
arch: cxd56xx: Fix RTC alarm cancellation process
...
There is an issue that the next alarm is expired immediately after
canceling a RTC alarm. Fixed alarm settings to be completely cleared
when canceling an RTC alarm.
2021-05-20 07:23:48 +02:00
SPRESENSE
67a56410ee
arch: cxd56xx: Prohibit clock change during SPI transfer
...
If the system clock is changed during the SPI transfer, the SPI data can
be corrupted. So this commit prohibits the clock change during SPI transfer,
and keep the clock until the transfer is completed.
2021-05-20 07:23:48 +02:00
SPRESENSE
db340a8941
arch: cxd56xx: Support for suppresion of clock change
...
Introduce PM_CPUFREQLOCK_FLAG_HOLD into the frequency lock mechanism in
power manager, which is used to keep the current frequency without clock
change, for example, during the transfer of a periphral.
2021-05-20 07:23:48 +02:00
SPRESENSE
9b3a80cc37
arch: cxd56xx: Fix uart getting stuck during a clock change
...
UART driver is stopped and re-started during a clock change. When a UART
interrupt is generated in each process, the unexpected behavior will
occur and a console will get stuck with UART driver. This commit fixed
each process is performed atomically.
2021-05-20 07:23:48 +02:00
Anthony Merlino
e37ce7677b
Try to address CI build error and a few macro fixes.
2021-05-19 10:41:18 -07:00
Anthony Merlino
b54a4c7788
Replace more ATIM_/BTIM_ macros with GTIM_ macros
2021-05-19 10:41:18 -07:00
Anthony Merlino
58c92be39c
stm32 timers: Make some register operations more readable.
2021-05-19 10:41:18 -07:00
Anthony Merlino
fa2b9ca43b
stm32/stm32f7 tickless: Fix up_timer_getmask to be correct for the width of the timer.
2021-05-16 13:04:31 -05:00
Anthony Merlino
99a9d75cdd
stm32f7: Remove references to BOARD_ENABLE_USBOTG_HSULPI. Prefer Kconfig option instead.
2021-05-16 01:02:51 -07:00
Juha Niskanen
abcb67a292
Remove final remaining CONFIG_DISABLE_SIGNALS and CONFIG_DISABLE_SIGNAL
2021-05-10 17:04:38 -03:00
Nathan Hartman
8af9d39667
Documentation, comments: Minor improvements and typos fixed
2021-05-09 19:12:13 -07:00
David Sidrane
17b786399c
stm32:SDIO:Use 250 Ms Data path timeout, regardless of Card Clock frequency
2021-05-07 17:39:08 -04:00
David Sidrane
3e49d49cd9
stm32h7:SDMMC:Use 250 Ms Data path timeout, regardless of Card Clock frequency
2021-05-07 17:39:08 -04:00
David Sidrane
c45e03b75f
stm32f7:SDMMC:Use 250 Ms Data path timeout, regardless of Card Clock frequency
2021-05-07 17:39:08 -04:00
Harri Luhtala
e5f1069654
arch/arm/src/stm32l4/hardware/stm32l4xrxx: pinmap alternative function for SPI2
2021-05-07 05:08:05 -07:00
Gustavo Henrique Nihei
534c058d93
spi: Adopt CPHA as the abbreviation for clock phase
2021-05-05 16:56:07 -03:00
David Sidrane
92dba32c8c
stm32h7:Allow for reuse of the OTG_ID GPIO
...
Currently Nuttx doesn't seem to be any real support for OTG.
In the future when OTG is supported. This Knob can be removed
and drivers can enable their pin sets based on CONFIG_OTG.
(Adding CONFIG_OTG at this time would be misleading.)
2021-05-05 12:22:11 -04:00
David Sidrane
cd603af958
stm32f7:Allow for reuse of the OTG_ID GPIO
2021-05-05 12:22:11 -04:00