Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport all CAN-related changes from upstream NuttX #186

Draft
wants to merge 43 commits into
base: px4_firmware_nuttx-10.1.0+
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
eaab3a2
[BACKPORT] arch/stm32h7: Add FDCAN SocketCAN driver
JacobCrabill Apr 15, 2022
c29b742
[BACKPORT] boards/stm32h7: Add socketcan config to nucleo-h743zi2
JacobCrabill Apr 15, 2022
b4b9542
[BACKPORT] net/netdev: Add CONFIG_NETDEV_CAN_FILTER_IOCTL
JacobCrabill Apr 15, 2022
101663f
[BACKPORT] net/can: Fix CONFIG errors in can_recvmsg
JacobCrabill Apr 15, 2022
6d7fea1
[BACKPORT] stm32h7: Add FDCAN3_BASE to memorymap.h
JacobCrabill Apr 11, 2022
7406377
[BACKPORT] net: Fix typos, update comments in Kconfigs
JacobCrabill Mar 30, 2022
c7d4b23
nucleo-h743zi2: Fix socketcan backport (CONFIG renames)
JacobCrabill May 24, 2022
de18616
[BACKPORT] include: can: move error.h to apps/canutils
jerpelea Aug 16, 2021
c4ceffb
[BACKPORT] arch/arm/src/imxrt/imxrt_flexcan.c: use SW control to chec…
michallenc Aug 29, 2021
9e0c61b
[BACKPORT] boards/arm/imxrt/teensy-4.x: add option to have CAN3 as can0
michallenc Aug 29, 2021
6cd67d6
[BACKPORT] Fixed imxrt flexcan driver compilation error due to incorr…
pbrier Sep 21, 2021
d3f889f
[BACKPORT] net/can,icmp,icmpv6,tcp,tcp_timer,udp: device should poll …
a-lunev Oct 2, 2021
323cc48
[BACKPORT] can: WIP: Cleanup usage of soft fifo semaphore
MTres19 Jan 2, 2021
42f912f
[BACKPORT] include/nuttx/can.h: include nuttx/config.h
raiden00pl Dec 30, 2021
334e7ca
[BACKPORT] net/devif/devif_cansend.c: fix assertion for max data len
raiden00pl Jan 3, 2022
248efed
[BACKPORT] include/nuttx/can/can.h: fix typo
raiden00pl Jan 5, 2022
6ef0905
[BACKPORT] SocketCAN: add CAN error definitions
raiden00pl Jan 5, 2022
3dea2bd
[BACKPORT] stm32: add CAN error support
raiden00pl Jan 5, 2022
c0b5f3e
[BACKPORT] stm32: add SocketCAN support, based on stm32_can.c
raiden00pl Jan 5, 2022
5950e63
[BACKPORT] boards/stm32: register CAN character device if configured
raiden00pl Jan 5, 2022
5e41aff
[BACKPORT] boards/nucleo-f302r8: add CAN and SocketCAN examples
raiden00pl Jan 15, 2022
3086179
[BACKPORT] boards/nucleo-f446re: add SocketCAN example
raiden00pl Jan 15, 2022
3a8a220
[BACKPORT] stm32: add FDCAN support
raiden00pl Jan 11, 2022
a406270
[BACKPORT] arch/stm32: fdcan cosmetics
raiden00pl Jan 15, 2022
f1b5c76
[BACKPORT] boards/b-g431b-esc1: add CAN example
raiden00pl Jan 15, 2022
39f09f1
[BACKPORT] boards/nucleo-g431rb: add CAN example
raiden00pl Jan 15, 2022
de03f43
[BACKPORT] include/nuttx/can.h: make SocketCAN error definitions alwa…
raiden00pl Jan 22, 2022
e263e0e
[BACKPORT] include/nuttx/can.h: rename CAN_ERR_CTRL to CAN_ERR_CRTL f…
raiden00pl Jan 22, 2022
fb88aa8
[BACKPORT] arch/stm32: add FDCAN SocketCAN support
raiden00pl Jan 22, 2022
0889493
[BACKPORT] boards/arm/stm32g4: normalize CAN configs
raiden00pl Feb 5, 2022
57b627f
[BACKPORT] net/can: add an option to control CAN EXTID support
raiden00pl Feb 5, 2022
c625824
[BACKPORT] boards/b-g431b-esc1: add SocketCAN example
raiden00pl Jan 22, 2022
1aa879c
[BACKPORT] boards/nucleo-g431rb: add SocketCAN example
raiden00pl Jan 22, 2022
0e12b3c
[BACKPORT] net/can: remove psock reference from can connect
anchao Feb 11, 2022
1bf174d
[BACKPORT] net/can/can_setsockopt.c: fix assertion, value can be NULL
raiden00pl Feb 12, 2022
e21e4f9
[BACKPORT] stm32/fdcan: use array indexes when accessing RX/TX FIFO
raiden00pl Feb 12, 2022
79a623a
[BACKPORT] stm32/fdcan: add CAN FD frames support
raiden00pl Feb 12, 2022
a0c05c2
[BACKPORT] arch/arm/src/stm32f7/stm32_can.c: fix CAN3 receiving
lukegluke Mar 3, 2022
e596450
[BACKPORT] drivers/can: optimize can driver reader side
pkarashchenko Mar 11, 2022
74f1170
Revert "[BACKPORT] net/can: remove psock reference from can connect"
JacobCrabill May 25, 2022
98a3962
stm32: Add definition of 'arm_netinitialize()' for SocketCAN
JacobCrabill Jul 28, 2022
67ad6ab
stm32: Fix unused variable in can_netdev_ioctl
JacobCrabill Jul 28, 2022
601722d
SocketCAN: add non-blocking write
jarivanewijk Jul 22, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[BACKPORT] net: Fix typos, update comments in Kconfigs
JacobCrabill committed Jul 28, 2022
commit 740637766aac503c882d0e0fbe4d029dd18351dc
4 changes: 2 additions & 2 deletions net/Kconfig
Original file line number Diff line number Diff line change
@@ -255,7 +255,7 @@ config NETDEV_LATEINIT
Normally, networking initialization occur in the later phase of the
boot process in the function up_initialize() when it calls the
driver initialization function, up_netinitialize(). This
initialization occurs after a sufficient about of the OS has been
initialization occurs after a sufficient amount of the OS has been
initialized so that driver registration can be performed, but
before the completion of OS initialization and before the first
application is started.
@@ -271,7 +271,7 @@ config NETDEV_LATEINIT
dependencies so that the hardware is not in an appropriate
state for up_netinitialize() to be called.

Examples of this latter situation includes such things as network
Examples of this latter situation include such things as network
drivers that required some setup via an I2C I/O expander, or network
drivers that depend on USB, SPI, I2C, PCI, serial, or other
interfaces that may not be ready when up_netinitialize() is normally
6 changes: 3 additions & 3 deletions net/can/Kconfig
Original file line number Diff line number Diff line change
@@ -11,10 +11,10 @@ config NET_CAN
select NET_READAHEAD
depends on NET
---help---
Enable support for SocketCAN sockets that will permit.
Enable support for SocketCAN sockets.

This logic is a WIP. Currently only fragmentary support is
available, not enough to actually do anything of consequence.
This requires a lower-half driver compatible with the SocketCAN
API.

if NET_CAN