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
6fef978b69
CO_PDO: static analysis: dependence placed on operator precedence [MISRA 2012 Rule 12.1, advisory]
2024-06-27 13:21:43 +02:00
Janez
7850623700
Update CO_PDO.c: make eventTime, inhibitTime and syncStartValue optional in object dictionary.
2024-06-26 12:40:17 +02:00
temi54c1l8
f7c7f9c104
Add more static analysis and MISRA.md
...
(cherry picked from commit ad337c3e9c4e879721ec432bc9a5d9a84a53c573)
# Conflicts:
# CANopen.c
2024-06-24 17:46:34 +02:00
temi54c1l8
8cccf6f379
minor fix after static analysis
2024-06-14 13:46:21 +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
c41aa14680
CO_PDO: static analysis: named parameter 'timerNext_us' of 'non-virtual' function 'CO_RPDO_process' not subsequently referenced [MISRA 2012 Rule 2.7, advisory]
2024-06-14 11:09:31 +02:00
temi54c1l8
32c1086ac1
CO_PDO: static analysis: last value assigned to 'odRet' not used [MISRA 2012 Rule 2.2, required]
2024-06-13 12:23:38 +02:00
temi54c1l8
d9d24ffe82
CO_PDO: static analysis: unsigned integer literal without a 'U' suffix [MISRA 2012 Rule 7.2, required]
2024-06-13 12:17:28 +02:00
temi54c1l8
fe1709c42a
CO_PDO: static analysis: argument 1 of type 'uint8_t [4]' is not compatible with argument 2 of type 'const void *' in call to function 'memcpy'
2024-06-13 12:05:39 +02:00
temi54c1l8
6f6936c9cc
CO_PDO: static analysis: cannot assign 'enum' to different essential type 'unsigned8' [MISRA 2012 Rule 10.3, required]
2024-06-13 12:03:21 +02:00
temi54c1l8
fd8cf681a3
CO_PDO: static analisys: result of assignment operator used in right operand to '=' operator [MISRA 2012 Rule 13.4, advisory]
2024-06-13 11:58:04 +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
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
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
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
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
ZDH
361080da87
uint32_t fix for 16bit mcu's.
2023-03-28 19:38:03 +02: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
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
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
Mattia Maldini
2e80d0304a
Fixed bug with CANrxData buffer indexing
2021-07-14 19:19:28 +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
0d33cbb8bd
Fix in CO_RPDO_process(), #283
2021-03-22 22:59:49 +01:00
Janez
66d0e14ef4
301/CO_PDO.h/c updated to newOD.
2021-03-18 15:13:06 +01:00
Janez
f73025ef65
CANopenNode V2.0 pre-release
2020-10-07 17:50:25 +02:00
Wilkins White
28925a4e3c
Add CO_SYNCsend() ( #225 )
...
* add CO_SYNCsend function
* change return type of CO_TPDOsend
2020-09-29 09:24:21 +02:00
Freddie Chopin
7c13199a1a
Fix all possible warnings about unused timerNext_us argument
2020-06-26 11:56:46 +02:00
Janez
229b5c5fd3
Change optional arguments in CO_RPDO_init(), CO_TPDO_init(), CO_GTWA_init()
2020-05-31 22:08:36 +02:00
Freddie Chopin
b4b0fe069f
Convert {T,R}PDO_CALLS_EXTENSION to CO_CONFIG_{T,R}PDO_CALLS_EXTENSION
...
User can now enable extension callbacks in RPDO/TPDO handling paths
simply by configuration flags instead of modifying sources or by passing
the defines directly to the compiler.
2020-05-06 18:22:50 +02:00
Freddie Chopin
aa6075b3c8
Add CO_..._initCallbackPre() for RPDO and SYNC ( #178 )
...
* Merge two parts of CO_PDO_receive() into single common code
* Add CO_RPDO_initCallbackPre() for received RPDO messages
This optional mechanism allows to immediatelly wake the thread that
processes RPDO, without waiting for its next tick.
* Add CO_SYNC_initCallbackPre() for received SYNC messages
This optional mechanism allows to immediatelly wake the thread that
processes SYNC, without waiting for its next tick.
2020-05-05 13:23:26 +02:00
Janez
ffd5027cb2
Make SYNC optional in TPDO and RPDO.
2020-03-20 18:47:16 +01:00
Janez
6e28914ca9
Make calculation of timerNext_us optional.
2020-03-20 16:44:37 +01:00
Janez
d9c44c69d1
Change non-descriptive CO_***_initCallback() into CO_***_initCallbackPre().
...
Change CO_NMT_initCallback() into CO_NMT_initCallbackChange().
Change type of NMT->operatingState from uint8_t into enum CO_NMT_internalState_t.
2020-03-18 23:19:29 +01:00
Janez
62ffc7c9f5
Drivers removed from stack, directory structure rearranged.
...
- Change log added to README.
- Doxygen documentation updated.
2020-02-05 10:52:56 +01:00