temi54c1l8
24065d5751
CANopen: static analysis: cannot assign 'unsigned16' to narrower essential type 'unsigned8' [MISRA 2012 Rule 10.3, required]
2024-06-12 16:29:47 +02:00
temi54c1l8
0f06b1022d
CANopen:static analysis: right operand to + is a composite expression of type 'unsigned8' which is smaller than the left operand of type 'unsigned16' [MISRA 2012 Rule 10.7, required]
2024-06-12 16:23:04 +02:00
temi54c1l8
704bc17b1e
CANopen:static analysis possible loss of precision (assignment)
2024-06-12 15:15:02 +02:00
temi54c1l8
8c06bec4c9
CANopen: static analysis increment operation combined with other operation with side-effects [MISRA 2012 Rule 13.3, advisory]
2024-06-12 15:08:54 +02:00
temi54c1l8
73a65dbfea
Revert "CANopen: static analysis: locals not referenced [MISRA 2012 Rule 2.5, advisory]"
...
This reverts commit 20fa24abf7 .
2024-06-12 14:59:34 +02:00
temi54c1l8
20fa24abf7
CANopen: static analysis: locals not referenced [MISRA 2012 Rule 2.5, advisory]
2024-06-12 14:57:53 +02:00
temi54c1l8
cff7a3cf5a
static analysis: refactoring changed enum with define to be able to use bitwise operators on user space
2024-06-12 14:35:37 +02:00
temi54c1l8
686ab04ee9
static analysis: enumerator 'CO_CAN_ID_EMERGENCY' reuses the constant value '128' previously used by enumerator 'CO_CAN_ID_SYNC'
...
refactoring changed enum with define
2024-06-12 14:26:51 +02:00
temi54c1l8
691728f71a
static analysis: essential type of condition of 'if' statement is in not correct [MISRA 2012 Rule 14.4, required]
2024-06-12 13:57:42 +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
88e437b525
static analysis: minor fix
2024-06-11 09:14:58 +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
c8f161cb42
fix variable lowestState assignment
2024-06-03 10:27:09 +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
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
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
Tilen Majerle
9c146e8b91
Replace malloc/free with CO_ and add macro for complete allocation
2021-08-26 13:25:38 +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
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
Janez
e1b353f06c
Merge pull request #277 from JuPrgn/warning-fixes
...
Warning fixes
2021-03-22 21:52:42 +01:00
Janez
9824b740ca
Fixed invariant pointer in CO_Process #278
2021-03-22 21:13:11 +01:00
Julien PEYREGNE
b6f04d65f8
Fix null pointer dereference warnings
2021-03-19 09:54:17 +01:00
Janez
66d0e14ef4
301/CO_PDO.h/c updated to newOD.
2021-03-18 15:13:06 +01:00
Janez
fc81777097
Pass CO_CANmodule_t argument to all the CO_LOCK_...() and CO_UNLOCK_...() macros.
...
https://github.com/CANopenNode/CANopenNode/issues/162#issuecomment-777438875
2021-03-02 21:28:22 +01:00
Janez
9b3f329d52
301/CO_SYNC.h/c updated to newOD.
2021-03-01 17:16:04 +01:00
Janez
bc54b697f4
CO_Emergency fix: CANdevTx is not optional field. CO_EM_init() arguments changed.
2021-02-25 08:35:55 +01:00
Janez
88558203a0
Linux socketCAN driver, fix CANsend().
...
There was a problem with block transfer, when transmitting sequence of
data. If CANsend() failed (socket buffer full), message was dropped.
Now dropped message is marked with bufferFull flag and then it is
re-transmitted later by the driver, as is in the original behaviour of
CANopenNode. Same as commit acd719e27 in v2.0.
2021-02-08 17:01:55 +01:00
Janez
3ee8725036
Simplify Data Storage
...
- remove CO_storage from CANopen.h/c (revert)
- add target specific CO_storage_entry_t into CO_driver(_target).h
2021-02-01 15:24:37 +01:00
Janez
49f7c80114
Heartbeat consumer updated to newOD
2021-01-30 14:40:27 +01:00
Janez
464a856a3f
301/CO_time.c updated to newOD. Some principles changed.
2021-01-25 12:52:52 +01:00
Janez
9dce037ecb
Add data storage, common and Linux specific functions, tested in Linux.
2021-01-25 12:42:10 +01:00
Janez
5538b5e1f8
Remove CO_errinfo() from driver and put errInfo into CO_CANopenInit() as arg
2021-01-20 12:49:20 +01:00
Janez
51d64df860
OD interface simplified #162
...
OD_extension is now configurable by application only.
2021-01-07 08:34:53 +01:00
Janez
9e9fce74a9
Updates and testing of OD interface, SDO server, SDO client, gateway, etc.
...
- SDO server: Change behavior for string data type + fixes + test all
- SDO client: fixes + test all
- OD interface: Special behavior for string data type
- CO_driver.h: added default debug configuration macros + fix spelling
- Gateway + fifo: added base64 support + updates
- CO_CANopenInit() - added arguments.
- update some documentation
- CO_epoll_interface fixes.
- CO_main_basic.c updates
2020-12-24 14:15:10 +01:00
Janez
8e2de726a5
works also with globals
2020-10-27 13:13:13 +01:00
Janez
ace840fa6c
Fix ODinterface, basic tests passed.
2020-10-26 18:16:00 +01:00
Janez
cf9fb2a547
Some updates in OD interface.
...
It matches newly generated OD.h and OD.c files from libedssharp
2020-10-21 11:29:03 +02:00
Janez
f73025ef65
CANopenNode V2.0 pre-release
2020-10-07 17:50:25 +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
Carsten Frank
7b66b10dff
Fix lssAddress copy ( #221 )
2020-08-13 23:57:46 +02:00
gotocoffee
0f7b3e2d17
CANopen Safety (SRDO according to DIN EN 50325-5:2016) ( #196 )
...
* CANopen Safety (SRDO according to DIN EN 50325-5:2016)
* GFC code and docs
* clang-format on GFC
Co-authored-by: rg1 <r.gruening@miunske.com>
2020-06-22 10:14:14 +02:00