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
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
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
gotocoffee1
591a91be29
fixed some warnings
...
fixed some small bugs
2021-04-27 16:24:00 +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
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
0d33cbb8bd
Fix in CO_RPDO_process(), #283
2021-03-22 22:59:49 +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
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
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
Koen Dergent
a3606672d1
only use time producer fields when enabled
2021-02-18 10:32:35 +01:00
Koen Dergent
d00ddf5a59
only use optional emergency fields when enabled
2021-02-18 10:32:18 +01:00
Koen Dergent
9f88191767
only use SDO segmented fields when enabled
2021-02-18 10:29:39 +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
8cff68f196
CO_config.h: use global macros for common definitions
2021-01-25 21:32:51 +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
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
267a2dafb2
Replace type char with uint8_t or int8_t, where appropriate
...
305/CO_LSS.h now passing -Wextra warnings
2021-01-05 09:22:19 +01:00
Janez
d62de8dc64
Minor updates
2020-12-28 13:23:57 +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
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
a6ce313387
New Object Dictionary project file, etc. Remove old OD. Update doc.
2020-11-28 12:17:48 +01:00
Janez
5a14e91834
Set CANopenNode version V4.0
...
Skip V3.0, because there exists some old version numbering from SouceForge.
V3.00 exists also in old CO_OD.c. Use 4.0 to avoid confusion.
2020-10-29 09:58:26 +01:00
Janez
da850252bd
Set CANopenNode version V3.0
...
Added macros CO_VERSION_MAJOR and CO_VERSION_MINOR into driver.h
2020-10-29 09:38:21 +01:00
Janez
ee1d8d0c81
Restore CO_CONFIG_HB_CONS_CALLBACK_CHANGE option, same as #241
2020-10-26 19:05:26 +01:00
Janez
ace840fa6c
Fix ODinterface, basic tests passed.
2020-10-26 18:16:00 +01:00