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
c643683b24
Update CO_ODinterface.c: fix memcpy boundary verification
2024-06-26 12:15:30 +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
4cef8205c8
CO_ODinterface: static analysis: fix cast to correct address assignment and 'OD_IO_t::write' is potentially uninitialized [MISRA 2012 Rule 9.1, mandatory]
2024-06-14 08:43:01 +02:00
temi54c1l8
75909f4fa2
CO_ODinterface: static analysis: implicit conversion of enum 'ODR_t' to integral type 'int'
2024-06-14 08:29:04 +02:00
temi54c1l8
808ad99b58
CO_ODinterface: static analysis: missing unconditional break from final switch case [MISRA 2012 Rule 16.1, required], [MISRA 2012 Rule 16.3, required]
2024-06-13 11:52:05 +02:00
temi54c1l8
d0a4b22963
CO_ODinterface: static analysis: argument 1 of type 'void *' is not compatible with argument 2 of type 'const uint8_t *' (aka 'const unsigned char *') in call to function 'memcpy'
2024-06-13 11:49:08 +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
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
Janez
1204042a1f
OD_extension, callback function: add information about the OD index.
2024-03-13 16:56:21 +01:00
Julien PEYREGNE
877edc50a8
Reduce variable scope
2021-03-19 09:54:17 +01:00
Janez
f8eb4bc0a1
CO_ODinterface: simplified API to read/write functions. Return variables changed.
2021-03-12 11:42:34 +01:00
Janez
5b8be4ef7e
CO_ODinterface: simplified API to read/write functions. subIndex moved to OD_stream_t.
2021-03-10 15:22:03 +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
db7940ffc4
OD_interface: simplify OD_getPtr() function and add additional check.
2021-02-25 08:12:10 +01:00
Janez
04ca686fd8
OD_interface, getter and setter helper functions simplified, #162
2021-01-07 08:36:45 +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
7b5de9f383
Replace type char with uint8_t, where appropriate.
...
Fix typos and clarify CO_ODinterface.
Remove unnecessary types from CO_driver.h.
2021-01-05 12:27:22 +01:00
Janez
09bf926856
CO_ODinterface - Change some API:
...
- Add OD_getPtr_vs(), OD_getPtr_os() and OD_getPtr_us().
- Move read/write from OD_subEntry_t into OD_IO_t structure.
- Change argument in OD_getSub(), use OD_IO_t instead OD_stream_t.
- OD_getSub(), argument subEntry is optional.
- Change return value of OD_extensionIO_init() to ODR_t.
2020-12-02 16:44:31 +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
6cdc70fb4e
Object dictionary interface, preview updated.
2020-09-19 09:58:49 +02:00
Janez
8783bfff05
use crc16-ccitt.h in CO_fifo.c
...
It was duplicated.
Commited also some small changes + ODinterface
2020-08-04 23:39:25 +02:00
Janez
2d07d7af17
OD interface: remove "lowLimit" and "highLimit"
...
Too complicated to implement and litmited usefulness. IO extension is better.
2020-07-25 13:17:01 +02:00
Janez
756c76d08a
Added information about XML device description
2020-07-23 07:34:28 +02:00
Janez
d98fb635f5
Added CO_ODinterface
2020-07-13 14:08:16 +02:00