1
0
Fork 0
Commit graph

113 commits

Author SHA1 Message Date
aineoae86-sys
bc79a5c87d docs: clarify blank CAN pointer placeholder
Generated-by: OpenAI Codex
Signed-off-by: aineoae86-sys <ai.neo.ae86@gmail.com>
2026-07-08 08:00:49 +02:00
Janez
8c09a433ef Fix CANopen terminology: “CAN messages” are actually “CAN frames”
Fix all documentation and comments according to CiA proposals:
https://www.can-cia.org/services/publications/can-community-news/05-2025

CANopenNode was using "CAN message" in many places, but actually such
term is incorrect. No code or variable names was changed.
2026-06-26 10:23:01 +02:00
Janez
542b0ca20f Example: CO_CANsend should not increase CANtxCount if buffer is full already
See https://github.com/CANopenNode/CanOpenSTM32/pull/85
2026-06-24 15:44:15 +02:00
Janez
c804f7de47
Update example/main_blank.c, fix problems with LSS.
Other microcontrollers should fix this too, see https://github.com/CANopenNode/CanOpenSTM32/pull/67
2025-07-27 01:00:04 +02:00
Janez
29c5b64131 Fix example/CO_storageBlank.c.
CO_LOCK_OD(CANmodule) must not be used, because lock is already
applied by SDO server.
2024-10-10 16:08:54 +02:00
Janez
f41bfdcb5d Format comments in the .h files. 2024-07-09 00:17:15 +02:00
Janez
b87fad2195 Format the .h files using clang-format v15. 2024-07-06 21:54:59 +02:00
Janez
82c95a2bc9 Format comments in the .c files. 2024-07-06 21:48:21 +02:00
Janez
95c1705e76 Format the .c files using clang-format v15. 2024-07-06 19:57:06 +02:00
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
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
f407bc6d05 Fixed txErrors variable name 2024-06-04 19:28:42 +02:00
Oleksii Slabchenko
32274bef99 Fix bit shifting in CO_CANtxBufferInit
Shifting by 12 overlaps RTR bit if DLC is 8 bytes.
2024-03-11 14:27:13 +01:00
Janez
b0b0724c6f Node guarding added 2023-09-07 16:58:04 +02:00
Janez
fcd552ef96 example: update files with the latest CANopenEditor (v4.1-1)
DS301_profile.xpd/.eds: "$NODEID" now appears at the beginning of the expression.
OD.h/.c: difference in C variable names generator.
2023-03-17 13:15:10 +01:00
Yaroslaff Fedin
309024f312
Fix typo (co -> CO) in main_blank.c 2021-08-23 14:06:10 +08:00
Janez
3d50dd4bf9 Fixed Object dictionary mapping direction 2021-08-09 18:45:38 +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
db6462cfc1 Add CO_CANopenInitPDO() call to example's main() 2021-07-05 12:33:58 +02:00
Janez
bdcca85d07 Add example for CO_MULTIPLE_OD configuration. 2021-06-29 11:16:50 +02:00
Janez
01887f268d Update example Object dictionary 2021-06-26 13:37:30 +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
5e089ea025 Add missing NULL protection. 2021-05-04 11:26:40 +02:00
Janez
90ec8819be Example update 2021-04-07 16:19:09 +02: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
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
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
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
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
a6ce313387 New Object Dictionary project file, etc. Remove old OD. Update doc. 2020-11-28 12:17:48 +01:00
Janez
ee1d8d0c81 Restore CO_CONFIG_HB_CONS_CALLBACK_CHANGE option, same as #241 2020-10-26 19:05:26 +01:00
Janez
0e317dddf3 Add CO_errinfo() into CO_driver.h and driver_targets.
Add additional error info for 'CO_ERROR_OD_PARAMETERS'.
2020-10-26 18:05:47 +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
7a43f98f24 Configuration macros updated 2020-10-07 13:47:07 +02:00
Janez
ac4ca2893a Remove duplicated CANopenConfiguredOK from main functions. Use CO->nodeIdUnconfigured instead. 2020-09-23 09:06:57 +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
Janez
d98fb635f5 Added CO_ODinterface 2020-07-13 14:08:16 +02:00