Janez
8c09a433ef
Fix CANopen terminology: “CAN messages” are actually “CAN frames”
...
Fix all documentation and comments according to CiA proposals:
https://www.can-cia.org/services/publications/can-community-news/05-2025
CANopenNode was using "CAN message" in many places, but actually such
term is incorrect. No code or variable names was changed.
2026-06-26 10:23:01 +02:00
Tilen Majerle
6dfd4ed7f2
define variable before it is being assigned ( #582 )
2025-06-08 17:43:26 +02:00
Janez
f46f1e2733
clang-format: ReflowComments: true
2024-07-07 01:05:10 +02:00
Janez
82c95a2bc9
Format comments in the .c files.
2024-07-06 21:48:21 +02:00
Janez
95c1705e76
Format the .c files using clang-format v15.
2024-07-06 19:57:06 +02:00
Janez
0d016a0019
Remove /*********...*/ comment delimiters.
2024-07-06 18:53:40 +02:00
Janez
f064eeaa40
Format the license information in files.
2024-07-06 13:03:00 +02:00
Janez
fcd89f87de
Remove comments from arguments in CO_CANrxBufferInit and CO_CANtxBufferInit
2024-07-05 18:38:01 +02:00
temi54c1l8
5a2f24bc4b
static analysis: ANSI/ISO minimum translation limit of 31 'significant characters in an external identifier' exceeded, processing is unaffected
2024-06-27 14:49:37 +02:00
temi54c1l8
b39334d9c3
CO_SDOclient: static analysis: potential out of bounds pointer access [MISRA 2012 Rule 18.1, required]
2024-06-27 08:55:44 +02:00
temi54c1l8
646e367ae1
CO_SDOclient: static anaylsis: loss of precision (assignment) from 32 bits to 8 bits
2024-06-26 18:01:47 +02:00
temi54c1l8
ad14eb5b18
CO_SDOclient: static analysis: argument 1 is not compatible with argument 2 in call to function 'memcpy'
2024-06-26 17:59:01 +02:00
temi54c1l8
b1cba9661b
CO_SDOclient: static analysis: side effects on right hand of logical operator, '||'/'&&' [MISRA 2012 Rule 13.5, required]
2024-06-26 17:53:02 +02:00
temi54c1l8
6b41e85e3d
CO_SDOclient: static analysis: body should be a compound statement [MISRA 2012 Rule 15.6, required]
2024-06-26 17:36:41 +02:00
temi54c1l8
86eb9bfad3
CO_SDOclient: static analysis: an unsigned value and an enum value cannot be used together [MISRA 2012 Rule 10.4, required]
2024-06-26 17:24:43 +02:00
temi54c1l8
53f3c58540
CO_SDOclient: static analysis: body should be a compound statement [MISRA 2012 Rule 15.6, required]
2024-06-26 17:19:05 +02:00
temi54c1l8
2a6b78172d
CO_SDOclient: static analysis: cannot assign a composite expression of type 'unsigned8' to an object of wider type 'unsigned32' [MISRA 2012 Rule 10.6, required]
2024-06-26 17:08:38 +02:00
temi54c1l8
10816afe53
CO_SDOclient: static analysis: right operand to +=/-= is a composite expression of type 'unsigned8' which is smaller than the left operand of type 'unsigned32' [MISRA 2012 Rule 10.7, required]
2024-06-26 17:05:44 +02:00
temi54c1l8
900633ad93
CO_SDOclient: static analysis: cannot assign 'signed8' to different essential type 'unsigned8' [MISRA 2012 Rule 10.3, required]
2024-06-26 16:43:50 +02:00
temi54c1l8
7d1da22c82
CO_SDOclient: static analysis: essential type of condition of 'if' statement is 'unsigned8' but should be boolean [MISRA 2012 Rule 14.4, required]
2024-06-26 16:42:19 +02:00
temi54c1l8
c41d5b7cad
CO_SDOclient: static analysis: statement or comment should appear in default case [MISRA 2012 Rule 16.1, required], [MISRA 2012 Rule 16.4, required]
2024-06-26 16:38:28 +02:00
temi54c1l8
56466169cb
CO_SDOclient: static analysis: conditional of #if does not evaluate to 0 or 1 [MISRA 2012 Rule 20.8, required]
2024-06-26 16:35:59 +02:00
temi54c1l8
be69c270c3
CO_SDOclient: static analysis: the name 'abort' is reserved to the compiler [MISRA 2012 Rule 21.2, required]
2024-06-26 16:34:07 +02:00
temi54c1l8
d8811edba3
CO_SDOclient: static analysis: increment/decrement operation combined with other operation with side-effects [MISRA 2012 Rule 13.3, advisory]
2024-06-26 16:27:08 +02:00
temi54c1l8
340ba3f84e
CO_SDOclient: static analysis: departure from MISRA switch syntax: missing break or throw from switch-case [MISRA 2012 Rule 16.1, required]
2024-06-26 16:25:01 +02:00
temi54c1l8
41e637cb42
CO_SDOclient: static analysis: ignoring return value of function 'CO_SDOclient_setup' [MISRA 2012 Directive 4.7, required], [MISRA 2012 Rule 17.7, required]
2024-06-26 16:22:45 +02:00
temi54c1l8
022e1e0d75
CO_SDOclient: static analysis: enum constant case not used within default switch
2024-06-26 16:20:11 +02:00
temi54c1l8
40917a870e
CO_SDOclient: static analysis: no 'else' at end of 'if ... else if' chain [MISRA 2012 Rule 15.7, required]
2024-06-26 16:06:09 +02:00
temi54c1l8
f9d8bdeff3
static analysys: local variable 'data' could be pointer to const [MISRA 2012 Rule 8.13, advisory]
...
refactory CO_CANrxMsg_readData return const
2024-06-14 11:27:22 +02:00
temi54c1l8
6e009c0893
static analysis: cannot assign 'signed8' to different essential type 'boolean' [MISRA 2012 Rule 10.3, required]
2024-06-12 10:42:40 +02:00
temi54c1l8
9e8ceb4dfa
static analysis: ignoring return value of functions [MISRA 2012 Directive 4.7, required]
2024-06-12 10:13:45 +02:00
temi54c1l8
d4e7214f4d
static analysis: conditional of #if does not evaluate to 0 or 1 [MISRA 2012 Rule 20.8, required]
2024-06-12 09:09:12 +02:00
temi54c1l8
446925be63
static analysis: add 'U' of unsigned [MISRA 2012 Rule 10.4, required]
2024-06-10 17:57:42 +02:00
temi54c1l8
dc10900ad5
static analysis: Aggiunte parentesi per la dipendenza posta sulla precedenza dell'operatore [MISRA 2012 Rule 12.1, advisory]
2024-06-10 14:39:05 +02:00
temi54c1l8
e3206f2c7f
static analysis: Ignoring return value of function 'memset' [MISRA 2012 Directive 4.7, required]
2024-06-10 11:56:47 +02:00
temi54c1l8
ddaa8974f1
static analysis: Ignoring return value of function 'memcpy' [MISRA 2012 Directive 4.7, required]
2024-06-10 10:30:59 +02:00
Janez
1191979f57
Issue #426 update: SDO Client block transfer has incorrect handling of early server acknowledgments.
2023-03-18 11:42:50 +01:00
Janez
e79a364983
Fixed issue #426 : SDO Client block transfer has incorrect handling of early server acknowledgments.
2023-03-17 22:40:40 +01:00
mlout
4ab0bd10c1
Always call OD lock macros on SDO operations
2023-03-17 17:42:35 +01:00
mlout
900ab00a79
Rename CO_CONFIG_FLAG_ALWAYS_LOCK_OD to CO_CONFIG_FLAG_SDO_ALWAYS_LOCK_OD
2023-03-16 14:19:07 +01:00
mlout
d8a637dbc5
Add CO_CONFIG_FLAG_ALWAYS_LOCK_OD to always lock OD
...
Add CO_CONFIG_FLAG_ALWAYS_LOCK_OD which can be used to lock the OD for
every SDO read/write operation.
Modify the code in CO_SDOserver.c and CO_SDOclient.c to check this
config flag.
2023-03-16 14:09:01 +01:00
gotocoffee
18bac27516
fixed typo in sdo client
...
SDO_C instead of SDO
2021-08-31 15:53:30 +02:00
Janez
fe3777b781
Verify for restricted CAN-IDs in SYNC, TIME, EMCY, PDO and SDO COB-ID configuration.
2021-08-09 14:12:19 +02:00
gotocoffee1
591a91be29
fixed some warnings
...
fixed some small bugs
2021-04-27 16:24:00 +02:00
gotocoffee
5c4b498b2a
remove VLA from SDOclient in newOD branch
...
see issue #288
2021-04-08 11:00:38 +02:00
Janez
f8eb4bc0a1
CO_ODinterface: simplified API to read/write functions. Return variables changed.
2021-03-12 11:42:34 +01:00
Janez
5b8be4ef7e
CO_ODinterface: simplified API to read/write functions. subIndex moved to OD_stream_t.
2021-03-10 15:22:03 +01:00
Janez
fc81777097
Pass CO_CANmodule_t argument to all the CO_LOCK_...() and CO_UNLOCK_...() macros.
...
https://github.com/CANopenNode/CANopenNode/issues/162#issuecomment-777438875
2021-03-02 21:28:22 +01:00
Janez
88558203a0
Linux socketCAN driver, fix CANsend().
...
There was a problem with block transfer, when transmitting sequence of
data. If CANsend() failed (socket buffer full), message was dropped.
Now dropped message is marked with bufferFull flag and then it is
re-transmitted later by the driver, as is in the original behaviour of
CANopenNode. Same as commit acd719e27 in v2.0.
2021-02-08 17:01:55 +01:00
Janez
5538b5e1f8
Remove CO_errinfo() from driver and put errInfo into CO_CANopenInit() as arg
2021-01-20 12:49:20 +01:00