1
0
Fork 0
Commit graph

173 commits

Author SHA1 Message Date
temi54c1l8
b2de7f4cbe static analysis: integer null pointer constant is not the NULL macro [MISRA 2012 Rule 11.9, required] 2024-06-12 09:46:34 +02:00
temi54c1l8
e720f497d1 static analisys: cannot assign 'unsigned32' to narrower essential type 'unsigned8' [MISRA 2012 Rule 10.3, required] 2024-06-12 09:43:41 +02:00
temi54c1l8
fbe4d307d9 static analysis: argument is not compatible with other argument in call to function 'memmove' 2024-06-12 09:42:19 +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
7399d31447 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 15:09:49 +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
Janez
6a0df55b01 Overrun not correctly reported in CO_Emergency.c, by H-Grobben #466 2024-06-04 19:54:00 +02:00
Janez
f054501d0e SRDO updated to current CANopenNode 2024-05-31 01:47:28 +02:00
Janez
39fc9212e6 Fixed Compiler warnings, issue #512 2024-04-25 16:51:37 +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
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
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
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
ankit.chudasama1
4c86a61342 Fix variable name and use of pointer for big endian system
1. Variable name update in CO_PDO.c file
2. Correct use of pointer in the CO_SDOserver.c file
2023-02-16 19:36:49 +05:30
Janez
1128bbbaf9
Wrong conditional compilation #420, fixed 2022-12-03 00:08:13 +01:00
Blazej1994
7249ea6acd
TPDO inhibitTime_us / evnetTime_us calculation fix
Added inhibiTime and eventTime casting to uint32_t
2022-07-14 11:48:08 +02:00
gotocoffee
18bac27516
fixed typo in sdo client
SDO_C instead of SDO
2021-08-31 15:53:30 +02:00
Janez
f1e39ccabb
Update CO_PDO.c 2021-08-24 08:20:37 +02:00
Tilen Majerle
88bc36da27
Add conditional compile statement for unused vars 2021-08-14 12:00:08 +02:00
Janez
9d1e99f66e Use enumerators in CO_NMT_t, #327 2021-08-13 19:07:19 +02:00
Janez
b1b091a463 Add option for logical devices to have more than four PDOS with pre-defined CAN_IDs. 2021-08-10 16:34:20 +02:00
Janez
2117fb6149 Add example for basic SDO client usage, #276 2021-08-10 10:17:46 +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
Janez
5338f110e1 Synchronous TPDO: send first in the middle between sync messages. 2021-08-09 14:08:31 +02:00
Janez
3ff84e21ff Fix some SDO abort messages. 2021-08-09 14:06:08 +02:00
Janez
bb74ed2cf5 SDO server: send abort on wrong block size 2021-08-09 14:00:45 +02:00
Janez
20f7af361f Fixed Heartbeat consumer
Receive buffer was not disabled, if monitored node has been unconfigured.
2021-08-09 13:59:03 +02:00
Janez
b4ddf9be32 Fixed SDO server
- Missing break
- expedited transfer: always copied fixed amount of data instead of actual data size.
2021-08-09 13:56:05 +02:00
Mattia Maldini
2e80d0304a Fixed bug with CANrxData buffer indexing 2021-07-14 19:19:28 +02:00
Janez
3a0039716b
Merge pull request #312 from DISTORTEC/PDO_initMapping-fixes
PDO_initMapping() fix + CO_CANopenInitPDO() call in example + warning fix
2021-07-05 13:25:45 +02:00
Freddie Chopin
a1db0180c4 Fix warning about unused argument in CO_TIME_set()
If CO_CONFIG_TIME_PRODUCER is not enabled, `producerInterval_ms`
argument for CO_TIME_set() is unused and gives multiple warnings
(because the function is in header).
2021-07-05 12:33:58 +02:00
Freddie Chopin
e8d40fbfb7 Fix error in PDO_initMapping()
The loop should initialize only existing subindexes. Assuming that every
time there are CO_PDO_MAX_MAPPED_ENTRIES subindexes results in the
function returning CO_ERROR_OD_PARAMETERS because the call to
OD_get_u32() to read a non-existing subindex returns ODR_SUB_NOT_EXIST.
2021-07-05 12:33:58 +02:00
Janez
b9927ff1cd Remove CO_CONFIG_EM_BUFFER_SIZE macro, size is fetched from Object Dictionary
It is necessary to re-generate OD.h file with the latest CANopenEditor
from https://github.com/CANopenNode/CANopenEditor
2021-06-28 12:39:03 +02:00
Janez
b8b9011f7f Remove CO_CONFIG_HB_CONS_SIZE macro, size is fetched from Object Dictionary
It is necessary to re-generate OD.h file with the latest CANopenEditor
from https://github.com/CANopenNode/CANopenEditor
2021-06-26 13:53:49 +02:00
Janez
cdad71beee Fix reading OD entry 1003,0, etc. 2021-06-26 13:35:43 +02:00
Janez
1775b96450 Move emergency processing before NMT processing in CANopen.c
Hold emergency messages if not operational or pre-operational, don't
delete them.
There was a problem, if error condition was present after a
communication reset, device was in operational state for a short time.
2021-05-17 13:33:37 +02:00