1
0
Fork 0
Commit graph

460 commits

Author SHA1 Message Date
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
db6462cfc1 Add CO_CANopenInitPDO() call to example's main() 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
1ee6a9abc2 Move some macros from CO_LSS.h into CO_LSSslave.c, issue #301 2021-07-01 09:23:39 +02:00
Janez
bdcca85d07 Add example for CO_MULTIPLE_OD configuration. 2021-06-29 11:16:50 +02:00
Janez
598a2bb25f Update documentation and Doxyfile 2021-06-28 14:51:51 +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
01887f268d Update example Object dictionary 2021-06-26 13:37:30 +02:00
Janez
cdad71beee Fix reading OD entry 1003,0, etc. 2021-06-26 13:35:43 +02:00
Janez
3749297b39
Merge pull request #300 from geoffrey-vl/patch-1
fix dead link in README
2021-05-24 13:55:25 +02:00
Geoffrey Van Landeghem
2957b886e0
fix dead link in README 2021-05-21 09:06:00 +02:00
Janez
c10043a110
Create FUNDING.yml 2021-05-17 18:44:08 +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
f56c96db3c Documentation arrangement according to doxygen.
- Minor changes in most files
- add CANopenNode.png
- update doxyfile
- move doc/LSSusage.md and doc/gettingStarted.md into CANopenDemo repository
- update README.md
2021-05-17 13:29:13 +02:00
Janez
d9af9b04d0 Driver for Linux (socketCAN directory) moved to own repository.
New repository is https://github.com/CANopenNode/CANopenLinux.
2021-05-07 23:00:14 +02:00
Janez
76b43c88ef Create 'storage' directory, move CO_storage.h/c, add CO_storageEeeprom.h/c 2021-05-05 10:28:05 +02:00
Janez
67a1ed7512 Storage update 2021-05-04 11:34:11 +02:00
Janez
5e089ea025 Add missing NULL protection. 2021-05-04 11:26:40 +02:00
Janez
38b1eddae8
Merge pull request #295 from gotocoffee1/newOD
fixed some warnings & potential bugs
2021-04-29 14:57:27 +02:00
gotocoffee1
591a91be29 fixed some warnings
fixed some small bugs
2021-04-27 16:24:00 +02:00
Janez
b76002ae2a
Merge pull request #290 from gotocoffee1/patch-2
remove VLA from SDOclient in newOD branch
2021-04-08 11:53:08 +02:00
gotocoffee
5c4b498b2a
remove VLA from SDOclient in newOD branch
see issue #288
2021-04-08 11:00:38 +02:00
Janez
90ec8819be Example update 2021-04-07 16:19:09 +02:00
Janez
fc99553c8f
Merge pull request #286 from JuPrgn/FixHBCons
Fix HBcons entries count
2021-04-07 13:10:18 +02:00
Julien PEYREGNE
ba0b0bcdb5 Fix HBcons entries count
HB Consumer sub index 0 is Highest sub-index supported and should not
be counted on number of HB consumers.
Without this, CO_CANopenInit fails with error code -12 :
CO_ERROR_OD_PARAMETERS
2021-03-24 17:30:55 +01:00
Janez
72e8404297 Remove unnecessary #include <bits/getopt_core.h> in Linux driver
https://github.com/CANopenNode/CANopenSocket/issues/26
2021-03-22 23:03:37 +01:00
Janez
0d33cbb8bd Fix in CO_RPDO_process(), #283 2021-03-22 22:59:49 +01: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
b7aaaa167b Fix snprintf float to double warning 2021-03-22 16:23:03 +01:00
Julien PEYREGNE
7d85e12f2a Fix overflow on 16 bit platform 2021-03-22 16:22:50 +01:00
Julien PEYREGNE
877edc50a8 Reduce variable scope 2021-03-19 09:54:17 +01:00
Julien PEYREGNE
9554c2c8df Fix printf argument signedness 2021-03-19 09:54:17 +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
926b59f3fd Fix missing CO_CONFIG_EM_PROD_INHIBIT switches 2021-03-15 11:58:20 +01:00
Janez
f6d33cdf29 OD getters/setters fix previous commit, issue #273 2021-03-12 21:01:44 +01:00
Janez
86d467a192 Change OD getters/setters from macros to static inline functions, issue #273 2021-03-12 13:18:14 +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
78d5f2569b Merge branch 'dergentk-newOD_fixes' into newOD 2021-02-25 08:36:16 +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
bb37962d74 Merge branch 'newOD_fixes' of https://github.com/dergentk/CANopenNode into dergentk-newOD_fixes 2021-02-25 08:20:06 +01:00
Janez
db7940ffc4 OD_interface: simplify OD_getPtr() function and add additional check. 2021-02-25 08:12:10 +01:00
Janez
c3ec5dfb68 Replace CO_NMT_setInternalState() with CO_NMT_sendInternalCommand(). 2021-02-25 07:37:16 +01:00