Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit introduces SocketCAN support for NuttX. New functions
socketCAN_open(char * dev)
andsocketCAN_saveMsg(struct can_frame m)
were added to support different open proccess and different NuttX structure of message, the overall princip remains the same (functionscanOpenTH(char * dev)
andsendMsg(uint16_t ID, uint8_t DATA[], int len)
are called from block´s source code). Filecanopen.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)
andcanOpen(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.