1
0
Fork 0
Commit graph

53 commits

Author SHA1 Message Date
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
temi54c1l8
359cda28e8 Fixed out of memory !!! 2024-06-03 10:24:37 +02:00
Janez
f054501d0e SRDO updated to current CANopenNode 2024-05-31 01:47:28 +02:00
temi54c1l8
f96ffb2526
Porting SRDO to v4.0 (#505)
* Renamed structure from CO_SDO_t to CO_SDOserver_t

* Porting SRDOGuard

* Porting SRDO

* Porting SRDO on CANopen.c with new parameters

* Misra for SRDO

* Fix extension read and write control count

* Remove pointer to configurationValid and CRC and connect to OD

* Remove dependencies from CO_SDOserver.h and CO_NMT_Heartbeat.h

* Replaced  CO_driver.h with CO_ODinterface.h
2024-04-09 11:56:43 +02:00
Janez
f56c96db3c Documentation arrangement according to doxygen.
- Minor changes in most files
- add CANopenNode.png
- update doxyfile
- move doc/LSSusage.md and doc/gettingStarted.md into CANopenDemo repository
- update README.md
2021-05-17 13:29:13 +02:00
Janez
a528eb1669 Better organised configuration macros (CO_config.h):
- rearranged and better documented
 - default values moved from CO_driver.h into appropriate files
 - rearranged also in CO_driver_target.h files
 - parts of the stack or whole objects can be disabled.
 - configuration is verified for depencies

Additional:
 - renamed some members of CO_Default_CAN_ID_t
 - moved helpers CO_setUint32() etc from CO_SDOserver.h into CO_driver.h.
 - change wrong CO_ERROR_PARAMETERS to CO_ERROR_ILLEGAL_ARGUMENT.
 - renamed CO_ERROR_PARAMETERS to CO_ERROR_OD_PARAMETERS
2020-09-14 15:50:21 +02:00
Janez
9dd36aa649 Manual merge #202:
- fix conflicts in CO_SRDO.h and CO_SRDO.c
- Add configs for GFC & SRDO for CO_driver.h and not for socketCAN
- Fix doxygen for CO_gateway_ascii
2020-07-01 09:02:40 +02:00
gotocoffee
3a50bc88c7
SRDO tx & rx extension (#201)
* CANopen Safety (SRDO according to DIN EN 50325-5:2016)

* GFC code and docs

* clang-format on GFC

* SRDO tx and rx extension
added CANopen Safety to README.md
allow manual SRDO transmit
some minor bug fixes

Co-authored-by: rg1 <r.gruening@miunske.com>
2020-06-30 19:17:55 +02:00
Freddie Chopin
19bf4a7fd5 Fix warnings about unused arguments and variables in CO_GFC.c 2020-06-26 12:03:18 +02:00