Dave Marples
4835c4c017
i.MXRT 106x: pinmux change sof the 1060's.
2019-11-08 18:20:14 -06:00
Gregory Nutt
e2905bc69c
boards/arm/imxrt/imxrt1020-evk: Run all .c and .h files through tools/nxstyle and fix numerous coding violations. This sucks. The submitter of the patch is responsibile for doing this and dumping this on me is shit.
2019-11-08 17:49:29 -06:00
Dave Marples
aedccfc940
arch/arm/src/imxrt/imxrt_enet.c: Improve naming of Ethernet pins.
2019-11-08 17:33:37 -06:00
Dave Marples
b10737864f
boards/arm/imxrt/imxrt1020-evk: Add support for the MIMXRT1021-EVK board. It features nsh, netnsh and usdhc sample configurations.
2019-11-08 17:18:01 -06:00
Dave Marples
15c2951c0d
This commit, initially for the imxrt1050, separates out the pinmux and iomux functions cleanly. For ease of conversion default IOMUX definitions have been added into imxrt_iomux.h. The change effectively does two things;
...
(1) unifies the iomux definitions - previously some pins had them, and some didn't. This effectively made it impossible to use the pinmuxes without editing the header file in the standard distribution tree.
(2) unifies the pin definitions so that every pin now has a suffix. This makes it *much* easier to see when a pin is in use in your code, because it will always have a definition in your board.h file.
For anyone who is already using this CPU, a couple of small changes are needed to existing code;
In respect of (1) add IOMUX decorators to your pin definitions. You will find defaults in haardware/imxrt_iomux.h. Every pin should have a IOMUX decorator and in general the defaults should be OK. So while previously in your board.h file you might have had;
You will now have;
In respect of (2) you will need to add selectors for any function that previously only had one pinning option. There aren't many of those but LPUART1 is a good example. That just means adding into your board.h something like;
2019-11-08 17:08:48 -06:00
Matias N
93e11dacb8
arch/arm/src/stm32l4/stm32l4_idle.c: (1) Added BEGIN_IDLE()/END_IDLE() to stop call so that we also get notification via LED of the STOP mode, (2) Added the stm32l4_clockenable call as previously discussed, and (3) Added call to pm_changestate() to inform drivers we're back to running after the call to stm32l4_stop() returns.
2019-11-08 17:00:16 -06:00
Gregory Nutt
b6756eb5fe
Trivial update to some comments.
2019-11-08 12:06:29 -06:00
Gregory Nutt
dbbabcd33c
Squashed commit of the following:
...
net/netlink/netlink_route.c: Add Netlink socket NETLINK_ROUTE support for getting a snopshot of the Neighbor table.
net/neighbor/neighbor_snapshot.c: Add neighbor_snapshot() that will eventually be used by the Netlink sockets. Also fixed naming violation 'struct neighbor_entry' -> 'struct neighbor_entry_s'.
include/nuttx/net/neighbor.h: Expose format of the IPv6 neighbor table for use with Netlink sockets.
2019-11-08 11:16:04 -06:00
David Sidrane
2213904cfd
Merged in david_s5/nuttx/px4_firmware_nuttx-8.1+_bbsram_mpu (pull request #1069 )
...
STM32H7:Set the BBSRAM memory range to non-cacheable.
* armv7-m:mpu add user peripheral helper
* stm32h7:BBSRAM Exclude BBSRAM from cacheable when CONFIG_ARMV7M_DCACHE
ST placed the STM32H7 BBSRAM in the SRAM default memory region
which is cacheable. This commit sets the BBSRAM memory range
to non-cacheable.
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-11-08 16:17:28 +00:00
Dave Marples
2b8cd24364
arch/arm/src/armv7-m/nvic.h: Add BPIALL register address.
2019-11-08 09:49:41 -06:00
Juha Niskanen
219d99451a
drivers/syslog/syslog_device.c: Fix assert that assumes re-opened syslog file is the same. Logic in syslog_file_channel() is calling syslog_initialize() for the default syslog device as a recovery action after failed syslog_dev_initialize().
2019-11-08 07:43:24 -06:00
Matias N
853e3e0086
arch/arm/src/stm32l4/stm32l4x6xx_rcc.c: This fix is needed if HSI clock is selected. Otherwise when waking up from STOP mode, the MSI clock is selected instead of the HSI clock.
2019-11-07 14:14:09 -06:00
Gregory Nutt
d31411189e
net/netlink/Kconfig: Remove dependency on EXPERIMENTAL. Although the Netlink implementation is still only fragmentary, there is no usable functionality there and no reason for it to depend on EXPERIMENTAL. Also minor changes to the menu organization so that the Netlink options appear the same was as do other network options.
2019-11-07 14:10:35 -06:00
Matouš Pokorný
4d59d6cbcc
drivers/mtd/mtd_progmem.c: Small typo fix.
2019-11-07 07:46:22 -06:00
Han Raaijmakers
d86a9c6374
boards/arm/s32k1xx/s32k146evb/scripts/s32k146.cfg and boards/arm/s32k1xx/s32k146evb/README.txt: Added configuration script and instructions for using Thread-Aware OpenOCD for the S32K146 with Eclipse.
2019-11-07 07:38:58 -06:00
ligd
6710ba47d8
drivers/serial/serial_dma.c: Still need reset xmit buffer when meet TCOFLUSH. This is an amendment to 8fb19a4359
.
2019-11-07 06:40:21 -06:00
Nathan Hartman
33898ef551
arch/arm/include/tiva/tm4c_irq.h: Fix wrong IRQ vector number.
2019-11-06 20:43:51 -06:00
Nathan Hartman
3869cfc41d
arch/arm/src/tiva/common/tiva_flash.c: Improve tiva_write() (but needs more work!)
...
arch/arm/src/tiva/common/tiva_flash.c: Fix several mistakes in
tiva_write() but note that this function needs more work. (1) Fix wrong
use of && when & was intended. (2) Add compile- time warning directive
because according to this function's interface, it is supposed to
support unaligned writes and/or writes of arbitrary numbers of bytes to
FLASH. However, this function does NOT support that at this time. This
needs to be fixed. (3) Fix wrong preprocessor conditional. Was written
to use the 32-word write buffer only for TM4C1294NCPDT. This buffer is
available on all TM4C123 and TM4C129 parts. Now conditioned upon
CONFIG_ARCH_CHIP_TM4C123 or CONFIG_ARCH_CHIP_TM4C129. (4) Add comments
to document the intent of the above preprocessor logic.
2019-11-06 20:35:35 -06:00
Nathan Hartman
71ce894cab
arch/arm/src/tiva, arch/arm/include: Add support for Tiva TM4C129ENCPDT.
2019-11-06 16:20:40 -06:00
Gregory Nutt
79a2890ed5
arch/arm/src/stm32h7/stm32_allocateheap.c: Clean up some comments mangled in the last PR.
2019-11-06 13:24:33 -06:00
David Sidrane
1168e4ecea
Merged in david_s5/nuttx/master_alloc (pull request #1068 )
...
stm32h7:allocateheap SRAM and SRAM1 are not continuous
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-11-06 19:20:37 +00:00
Gregory Nutt
c8831ac3c8
drivers/serial/serial_io.c and serial_dma.c: Fix some long lines.
2019-11-06 07:10:24 -06:00
ligd
8fb19a4359
drivers/serial/serial_dma.c: Avoid uart_xmitchars_done() move the tail bigger then head. If ioctl(TCOFLUSH) occurs between uart_xmitchars_dma() and uart_xmitchars_done(), TCOFLUSH will reset xmit buffer, then uart_xmitchars_done() will move the 'tail' ahead of 'head', then sends lots of wrong data.
2019-11-06 07:07:30 -06:00
Gregory Nutt
3e8366775f
Run tools/nxstyle against some files.
2019-11-05 19:39:36 -06:00
David S. Alessio
87329ebf67
boards/arm/stm32/olimex-stm32-e407/scripts/: Individual linker scripts for F407ZE and F407ZG chips.
2019-11-05 18:35:23 -06:00
Xiang Xiao
3a32937b9b
drivers/wireless/ieee80211/bcm43xxx: Move drivers/wireless/ieee80211/ to drivers/wireless/ieee80211/bcm43xxx/
...
since the directory only contains only BCM43362 and BCM43438 related code.
2019-11-05 15:38:01 -06:00
Heiko Demlang
7b6bd5cc0f
boards/arm/stm32h7/nucleo-h743zi/src: Added gpio-device-driver for userspace apps.
2019-11-05 14:14:55 -06:00
David Alessio
1c3d6ea24b
sched/sched/sched_waitpid.c: Fix null pointer derefence on race without DEBUG_ASSERT.
2019-11-05 08:59:01 -06:00
Gregory Nutt
e2976c5b4e
boards/../stm32_appinit.c: Handle cases where 'OK' is not defined.
2019-11-05 07:47:12 -06:00
Juha Niskanen
a085a0a70b
fs/smartfs/smartfs_smart.c: Honor O_APPEND on writes. Also document pwrite() bug/limitation.
2019-11-05 07:32:23 -06:00
Juha Niskanen
3268eb882e
fs/smartfs/smartfs_smart.c: Fix O_CREAT without O_TRUNC truncating existing file. Also nothing in POSIX says that O_APPEND should prevent O_TRUNC.
2019-11-05 07:28:24 -06:00
David Alessio
0154126c01
boards/Kconfig: Newer Olimex E407 boards are populated with STM32407ZE chips.
2019-11-05 07:12:07 -06:00
Gregory Nutt
e207f020d7
boards/boardctl.c: pm_stay() was used were pm_staycount() was intended. The caused an error: void value not ignored as it ought to be.
2019-11-04 18:28:01 -06:00
Gregory Nutt
86846f8bb3
include/sys/boardctl.h: pm.h is in include/nuttx/power/pm.h, not include/nuttx/pm.h.
2019-11-04 16:59:18 -06:00
David Sidrane
f078a2496b
drivers/serial/serial_io.c: Uses signal numbers, but does not include signal.h. This has not problems but missing signal definitions have been seen in certain cases.
2019-11-04 16:24:41 -06:00
Gregory Nutt
3927be2612
libs/libc/string/Make.defs: Need to include build support for files needed when CHAR_BIT != 8.
2019-11-04 16:02:50 -06:00
Gregory Nutt
dc3ae12545
boards/arm/stm32/nucleo-f4x1re/src/stm32_boot.c: Fix some erroneous conditional compilation in board_late_initialize().
2019-11-04 14:20:15 -06:00
Gregory Nutt
7218f6431c
boards/arm/stm32f0l0g0/nucleo-g070rb/src/stm32_boot.c: Fix some erroneous conditional compilation in board_late_initialize().
2019-11-04 14:16:43 -06:00
Daniel Pereira Volpato
4c5cbdfae3
boards/arm/stm32f0l0g0/nucleo-g070rb: boards/arm/stm32f0l0g0/nucleo-g070rb: Add button driver support, Add driver support. Add GPIO example. Includes fixes to the GPIO driver support from Guillherme Amaral <gvr@certi.org.br>.
2019-11-04 14:11:36 -06:00
Gregory Nutt
38e527deeb
net/netlink: Fix cosmetic issues, mostly typo fixes.
2019-11-04 14:06:07 -06:00
Dave Marples
48d1d9d84f
arch/arm/src/imxrt/imxrt_serial.c: This commit improves the performance of UART serial ports on the IMXRT by enabling the RX & TX FIFOS and transmission on the holding register being empty (TDRE) rather than transmission being complete (TC).
2019-11-04 11:16:46 -06:00
Gregory Nutt
6d197e5a59
include/nuttx/audio/audio.h: Fix some typos that I introduced with my review of a recent patch.
2019-11-04 10:45:13 -06:00
Gregory Nutt
6d13705e93
net/netlink: The NETLINK_ROUTE logic needs to return the first queued response and not attempt to match up reponses with requests. That is the Linux compatible way. Also, use queue.h functions for list management and fix an error in arp_snapshot().
2019-11-04 09:02:14 -06:00
Alin Jerpelea
7153598124
Merged in alinjerpelea/nuttx (pull request #1066 )
...
drivers: modem: altair: auto select SPI
The Altair hardware is connected to SPI and will not work without SPI support
The SPI_EXCHANGE is automaticaly enabled (default y) when SPI is selected.
Since SPI is mandatory it should be auto selected
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-11-04 14:24:44 +00:00
Xiang Xiao
800e12fc42
arch/: Add rpmsg_serialini() call to every implementation of up_initialize() for rpmsg uart initialization.
2019-11-04 08:11:50 -06:00
Gregory Nutt
a257a5e606
Documentation/NuttShell.html: Update document to at least mention the new pmconfig command.
2019-11-04 08:01:28 -06:00
Xiang Xiao
8a59ae70ff
boards/boardctl.c: Expose power manager function through boardctl interface.
2019-11-04 07:41:25 -06:00
Alin Jerpelea
516945d97e
boards/arm/cxd56xx/spresense/configs/lte/defconfig: Select CONFIG_MODEM_ALTMDM.
2019-11-04 07:18:18 -06:00
Alin Jerpelea
182c55635d
include/nuttx/rptun/rptun.h: openamp/open_amp.h must not be included unless CONFIG_RPTUN (and heance CONFIG_OPENAMP) are selected.
2019-11-04 07:15:06 -06:00
ligd
3480f7a0bc
drivers/serial/serial.c: Only real uart will call pm_activity().
2019-11-03 19:56:28 -06:00