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

NuttX: Added support for SocketCAN #6

Merged
merged 1 commit into from Jun 3, 2021

Conversation

michallenc
Copy link
Contributor

This commit introduces SocketCAN support for NuttX. New functions socketCAN_open(char * dev) and socketCAN_saveMsg(struct can_frame m) were added to support different open proccess and different NuttX structure of message, the overall princip remains the same (functions canOpenTH(char * dev) and sendMsg(uint16_t ID, uint8_t DATA[], int len) are called from block´s source code). File canopen.c now can support both characteristic device dev/can0 and socketcan.

There are also few unused functions like rcvMsg(uint8_t DATA[], int timeout), rcvMsgCob(int cob, uint8_t DATA[], int timeout) and canOpen(char * dev). I am not sure whether they should be removed as they do not support real time receive or whether they can have some usage.

SocketCAN communication was tested on existing blocks.

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
@robertobucher robertobucher merged commit d8a0a98 into robertobucher:master Jun 3, 2021
@michallenc michallenc deleted the nuttx_socketcan branch June 14, 2021 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants