1
0
Fork 0
Commit graph

61 commits

Author SHA1 Message Date
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
temi54c1l8
a9e2b3c2b0
add conformance test adaptation for obj: 13FEh and 13FFh (#563) 2025-03-01 16:54:23 +01:00
Janez
05931a6b76 Fix and update doxygen documentation. 2024-08-07 00:17:39 +02:00
Janez
f41bfdcb5d Format comments in the .h files. 2024-07-09 00:17:15 +02:00
Janez
f46f1e2733 clang-format: ReflowComments: true 2024-07-07 01:05:10 +02:00
Janez
b87fad2195 Format the .h files using clang-format v15. 2024-07-06 21:54:59 +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
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
28d3c1f372 Fix SRDO problem with PCL Codesys on configuration runtime without reset 2024-07-04 09:55:39 +02:00
temi54c1l8
240dd588fc Fix timing message, cycleTimer is only managed by the normal message to avoid mail loop losses 2024-07-01 11:40:44 +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
5337877ac7 CO_SRDO: static analysis: cannot assign 'enum (OD_attributes_t)' to different essential type 'unsigned8' [MISRA 2012 Rule 10.3, required] 2024-06-13 14:29:24 +02:00
temi54c1l8
6f4df2bdeb CO_SRDO: static analysis: 'subIndex' is typographically ambiguous with respect to 'subindex' when ignoring case [MISRA 2012 Directive 4.5, advisory] 2024-06-13 14:24:25 +02:00
temi54c1l8
f112105cde CO_SRDO: static analysis: cannot cast 'unsigned16' to wider essential type 'unsigned32' [MISRA 2012 Rule 10.8, required] 2024-06-13 14:22:14 +02:00
temi54c1l8
6cf0200afb CO_SRDO: static analysis: result of assignment operator used in right operand to '=' operator [MISRA 2012 Rule 13.4, advisory] 2024-06-13 14:19:33 +02:00
temi54c1l8
3b89378841 CO_SRDO: static analysis: right operand to == is a composite expression of type 'unsigned16' which is smaller than the left operand of type 'unsigned32' [MISRA 2012 Rule 10.7, required] 2024-06-13 14:18:01 +02:00
temi54c1l8
3c53895fde CO_SRDO: static analysis: cannot cast to wider essential type [MISRA 2012 Rule 10.8, required] 2024-06-13 14:14:34 +02:00
temi54c1l8
8755f23d79 CO_SRDO: static analysis: argument of type 'const void *' is not compatible with argument of type in call to function memcmp and memcpy 2024-06-13 14:02:17 +02:00
temi54c1l8
7855d35bae static analysis: refactoring changed enum with define to be able to use bitwise operators 2024-06-12 13:41:13 +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
bfa773da05 CO_GFC: static analysis: cannot assign 'signed8' to different essential type 'boolean' [MISRA 2012 Rule 10.3, required] 2024-06-11 14:49:48 +02:00
temi54c1l8
7cabf33d35 CO_GFC: static analysis: Added parentheses for dependency on operator precedence [MISRA 2012 Rule 12.1, advisory] 2024-06-11 14:48:50 +02:00
temi54c1l8
3533d4498a CO_GFC: static analysis: add 'U' of unsigned [MISRA 2012 Rule 10.4, required] 2024-06-11 14:45:15 +02:00
temi54c1l8
e58c5de976 CO_GFC: static analysis: ignoring return value of function 'OD_extension_init' [MISRA 2012 Directive 4.7, required], [MISRA 2012 Rule 17.7, required]
ignores the return because it was checked on the function argument
2024-06-11 14:43:05 +02:00
temi54c1l8
59e0c3b07b CO_SRDO: static analysis: the name '_configurationValid' matches a pattern reserved to the compiler [MISRA 2012 Rule 21.2, required] 2024-06-11 09:21:47 +02:00
temi54c1l8
5a31668c3e CO_SRDO: static analysis: loss of precision (assignment) from 32 bits to 8 bits
when: SRDO->dataLength = srdoDataLength[0];
2024-06-11 09:12:42 +02:00
temi54c1l8
c4c4f98e2c CO_SRDO: static analysis result of assignment operator used in right operand to '=' operator [MISRA 2012 Rule 13.4, advisory] 2024-06-11 09:10:15 +02:00
temi54c1l8
fa774c75fa CO_SRDO: static analysis: variables are potentially uninitialized [MISRA 2012 Rule 9.1, mandatory] 2024-06-11 09:07:21 +02:00
temi54c1l8
68daa1f526 CO_SRDO: static analysis: cannot assign 'unsigned32' to narrower essential type 'unsigned16' [MISRA 2012 Rule 10.3, required] 2024-06-11 09:04:52 +02:00
temi54c1l8
9632958e3d CO_SRDO: static analysis: cannot assign 'signed8' to different essential type 'boolean' [MISRA 2012 Rule 10.3, required] 2024-06-11 09:03:19 +02:00
temi54c1l8
70fc66046b CO_SRDO: static analysis: no 'else' at end of 'if ... else if' chain [MISRA 2012 Rule 15.7, required] 2024-06-11 09:00:18 +02:00
temi54c1l8
ae2f75b7a6 CO_SRDO: static analysis: warning 578: declaration of 'ret' hides a local variable [MISRA 2012 Rule 5.3, required]
variable already declared at the beginning of the function
2024-06-11 07:48:57 +02:00
temi54c1l8
e87959d86c CO_SRDO: static analysis: ignoring return value of function 'OD_extension_init' [MISRA 2012 Directive 4.7, required], [MISRA 2012 Rule 17.7, required]
ignores the return because it was checked on the function argument
2024-06-11 07:44:43 +02:00
temi54c1l8
46dcd05251 CO_SRDO: static analysis: function 'OD_not_write_same_value' defined without a prototype in scope [MISRA 2012 Rule 8.4, required] 2024-06-11 07:39:23 +02:00
temi54c1l8
0142f41857 static analysis: an enum value is not an appropriate left operand [MISRA 2012 Rule 10.1, required] 2024-06-10 17:59:05 +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
a17b9fa209 static analysis: Ignoring return value of functions: CO_setUint8, CO_setUint16, CO_setUint32 [MISRA 2012 Directive 4.7, required] 2024-06-10 12:07:41 +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
temi54c1l8
1b63929837 Only if the configuration is valid, the private variable is activated (otherwise CO_SRDO_process will generate errors) 2024-06-07 20:29:01 +02:00
Janez
0dd1a08118 remove SRDO warning 2024-06-04 19:26:13 +02:00
Janez
3fe59fed4b Use CO_CONFORMANCE_TEST_TOOL_ADAPTATION macro to make code optional. 2024-06-04 19:16:00 +02:00
temi54c1l8
39c2d7a897 Implemented "elegant" solution to avoid problems with conformance test tool 2024-06-04 14:16:19 +02:00
Janez
83b358abb5 Another cast data after bitwise 2024-06-03 17:11:41 +02:00
temi54c1l8
520981b48c The number of objects in the mapping are mappedObjectsCount (not CO_SRDO_MAX_MAPPED_ENTRIES) 2024-06-03 14:58:30 +02:00
temi54c1l8
2a43af4424 Cast data after bitwise, for non-8bit CPU compatibility 2024-06-03 14:51:20 +02:00
temi54c1l8
aa119f5ca2 Fixed control verifyLength with CO_SRDO_MAX_SIZE divided in two for straight and inverted data 2024-06-03 10:26:03 +02:00