1
0
Fork 0
Commit graph

551 commits

Author SHA1 Message Date
temi54c1l8
88e437b525 static analysis: minor fix 2024-06-11 09:14:58 +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
187650d073 static analysis: Ignoring return value of function 'memmove' [MISRA 2012 Directive 4.7, required] 2024-06-10 11:58:55 +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
6a0df55b01 Overrun not correctly reported in CO_Emergency.c, by H-Grobben #466 2024-06-04 19:54:00 +02:00
temi54c1l8
f407bc6d05 Fixed txErrors variable name 2024-06-04 19:28:42 +02:00
Janez
0dd1a08118 remove SRDO warning 2024-06-04 19:26:13 +02:00
Janez
61ff70e997 Merge branch 'temi54c1l8-fix_srdo_three_part' 2024-06-04 19:16:56 +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
Janez
2d1ecce21e
Merge pull request #517 from temi54c1l8/fix_srdo_second_part
Fix srdo
2024-06-03 17:04:49 +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
c8f161cb42 fix variable lowestState assignment 2024-06-03 10:27:09 +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
Janez
57ce72e6a2 .clang-format file changed to the same from 'https://github.com/MaJerle/c-code-style'
Auto formatted the file 'codingStyle'
2024-05-31 01:39:38 +02:00
Janez
39fc9212e6 Fixed Compiler warnings, issue #512 2024-04-25 16:51:37 +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
Brian Linari
a52db428f6
Misra (#501)
Make MISRA compliant for:
MISRA C 2004 rule 14.10
MISRA C 2004 rule 14.9
MISRA C 2004 rule 13.1
MISRA C 2004 rule 15.3

MISRA style guild update
2024-03-13 17:20:42 +01:00
Janez
1204042a1f OD_extension, callback function: add information about the OD index. 2024-03-13 16:56:21 +01:00
Janez
9d2a65cda7 Fix CO_storageEeprom. CO_LOCK_OD must not be used, as it is used inside SDO server already. 2024-03-13 12:23:10 +01:00
Oleksii Slabchenko
32274bef99 Fix bit shifting in CO_CANtxBufferInit
Shifting by 12 overlaps RTR bit if DLC is 8 bytes.
2024-03-11 14:27:13 +01:00
sicris
91653819e7 + added CANopenNode ESP32 device support for ESP-IDF framework 2023-12-07 12:12:07 +01:00
Janez
4f68e4404a
Update README.md - notice about NOT up-to-date for the current version. 2023-11-10 19:08:38 +01:00
Janez
99eb6b704a
Update README.md 2023-10-26 16:35:22 +02:00
Janez
a4b4e6df66 Node guarding disable, if heartbeat is used. 2023-10-19 12:16:37 +02:00
Janez
b0b0724c6f Node guarding added 2023-09-07 16:58:04 +02:00
ZDH
361080da87 uint32_t fix for 16bit mcu's. 2023-03-28 19:38:03 +02:00
Janez
90950be0e4
Update deviceSupport.md 2023-03-28 18:07:45 +02:00
Janez
8f2a59f478
CO_ODinterface, fixed typo in ODR_t, #372 2023-03-28 16:44:37 +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
a8c5dcbbc8 update funding 2023-03-18 01:11:20 +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