1
0
Fork 0
Commit graph

33 commits

Author SHA1 Message Date
Janez
c2d0290ac1 Merge branch 'master' into split-driver
update the split-driver with current master
2020-01-19 02:12:14 +01:00
Janez
12fa8e5173 Extract target specific code from CO_driver.h into /example/CO_driver_target.h
- Keep example code CO_driver_target.h also in CO_driver.h (for doxygen).
- Add extra members into enum CO_ReturnError_t
- Move enum CO_Default_CAN_ID_t from CANopen.h into CO_driver.h
- Make files in 'stack' directory independent form CANopen.h.
  CANopen.h file is more part of the application example than the stack.
- Second argument to receive callback function is 'void*' instead of
  'const CO_CANrxMsg_t*'. New (macros) are introduced:
  CO_CANrxMsg_readIdent(), CO_CANrxMsg_readDLC() and CO_CANrxMsg_readData()
  CAN receive functions in all source files are updated.
- IS_CANrxNew, SET_CANrxNew and CLEAR_CANrxNew renamed to CO_CANrxNew_READ,
  CO_CANrxNew_SET and CO_CANrxNew_CLEAR. Replace broken link in doc.
- Doxyfile: parameter change 'INPUT = README.md stack'. CANopen.h is
  excluded and updated. Doxywizard saved file to newer version of doxygen.
- Documentation in CO_driver.h is updated.
- Full documentation for CO_driver_target.h file is added to CO_driver.h.
- used clang-format on the CO_driver.h
2020-01-19 02:06:46 +01:00
Oleg
f2283e3ca9 Warnings omitted (#144)
* All Warnings omitted
Now all warnings that came up in previous versions are fixed in a clean way directly in the code.
Inlcudes:
Shadowing
Missing default cases
Missing cases in switch statements
unused variables
Pointer problems
Function declarations' visibility

* Default case for NMTsendCommand
Default case was not catched before and could led to errors.

* fix typo when omitting warnings

* Omitting more warnings, and fix TIME->CANrxNew nulling

Inlcudes:
large integer implicitly truncated to unsigned type
this statement may fall through

* rename CO_this to co

* fix CO_process_SYNC name (CANopenNode master merging issue)

Co-authored-by: Michele B. <MicheleBlank@gmx-topmail.de>

----
Verified before merge. It is cleanup, no deep changes.
2020-01-15 13:40:30 +01:00
Janez
9c2f0a1c64 License changed to Apache 2.0 - main part 2020-01-08 14:52:56 +01:00
Olivier Desenfans
eb4293c4e5 Fix inverted 1003 condition 2019-11-12 08:41:08 +01:00
Olivier Desenfans
c36d73b590 Fix bool equality checks
Removed comparisons of boolean values to `false` and `true`. Evaluating
them is enough.
2019-11-11 16:36:55 +01:00
Martin Wagner
cf8d0978c9 sdo: added out-of-bound check to getDataPointer 2018-10-01 15:13:05 +02:00
Martin Wagner
2eac9dd10c Merge branch 'memory-sync' into neuberger-master 2018-09-05 08:33:11 +02:00
Martin Wagner
2439d1abf3 Added memory barrier to all objects 2017-09-01 13:45:34 +02:00
Martin Wagner
e3bed95204 Fixed SDO read/write callback race condition...
with multithreading applications it was possible to modify entries in between calling OD function and copying to/from sdo buffer
2017-09-01 10:34:01 +02:00
Janez
dee8503da0 SDO block transfer issue #39 2017-07-04 15:07:38 +02:00
Janez
ba07ad763d Merge branch 'fix-testcase-sdo26_2' of https://github.com/martinwag/CANopenNode into martinwag-fix-testcase-sdo26_2 2017-07-04 13:00:36 +02:00
Janez
6acf18da5b Merge branch 'fix-testcase-sdo27' of https://github.com/martinwag/CANopenNode into martinwag-fix-testcase-sdo27 2017-07-04 12:53:49 +02:00
Martin Wagner
03982ad8e3 First try on LSS slave addon...
- needs #define CO_NO_LSS_SERVER 1 in CO_OD.h. This will need a change in the OD editor.
- no Fastscan support yet
- bitrate setting API untested
- https://github.com/CANopenNode/CANopenNode/issues/46 (driver stuff)
- changed some of the other stack files, tried my best to remain compatible with standard non LSS CANopenNode
2017-06-26 13:04:02 +02:00
Martin Wagner
33e2c91850 SDO upload block initiate invalid block size created abort message...
instead of invalid block size error. Fixes CANopen conformance test tool test case SDO 26
2017-05-23 10:51:10 +02:00
Martin Wagner
a07726fa31 SDO upload block invalid sequence generated block size error...
instead of invalid sequence error. Fixes CANopen conformance test tool test case SDO 27
2017-05-23 10:15:01 +02:00
Martin Wagner
467ad78047 OD 1003-0 now clears errors 2017-05-22 08:49:38 +02:00
Janez
83b6a7abb4 Make it possible to write to 0x1003 - Pre-Defined Error Field #15 2017-02-03 10:51:23 +01:00
Janez
41b8d903b7 License changed to the GNU General Public License version 2 with the classpath exception. 2016-01-10 00:15:50 +01:00
Janez
0bd31f0dc4 Domain data type.
http://sourceforge.net/p/canopennode/discussion/387151/thread/603deb63/
2016-01-06 13:11:48 +01:00
Janez
3bf4b812ed Merge branch 'master' of https://github.com/CANopenNode/CANopenNode 2015-12-13 22:50:57 +01:00
Janez
a5224176d2 Some updates to CO_memcpySwap and in SDO master. 2015-12-11 13:47:06 +01:00
Jens Nielsen
13be332db3 Allow multiple SDO objects 2015-12-07 18:37:01 +01:00
Janez_dw
c011452ed8 Issue #2 2015-10-16 11:53:35 +02:00
JanezXD
eb54492132 Callbacks for task control added. 2015-09-09 00:54:25 +02:00
JanezXD
b716643845 timerNext_ms returned from CO_process() and others. 2015-09-04 18:31:21 +02:00
Janez_dw
345b37b573 Some cleanup. 2015-08-27 18:57:34 +02:00
Janez_dw
ea47ca89fb Macros "Disabling interrupts" replaced with "Critical sections" in all drivers. 2015-08-27 14:36:07 +02:00
Janez_DW
8427cbcc90 Added testing against null pointers in _init functions.
Updated CO_process_SYNC_RPDO and CO_process_TPDO in CANopen.c.
2015-08-26 15:41:21 +02:00
Janez_DW
730bc57a42 Revision of the CANopen SYNC message. Received synchronous PDOs are now processed after the SYNC. 2015-08-25 19:17:18 +02:00
Janez_D
ddbabdae42 Specifiers CO_bool_t, CO_true and CO_false replaced with bool_t, true and false. 2015-07-26 19:15:21 +02:00
Janez_D
b50cb5e8b3 Cleanup in comments (no code changed).
Add and update multiple readme.txt
Remove SVN IDs.
2015-07-25 17:36:46 +02:00
Janez_D
d270c2d09a Move and rename files. No file change. 2015-07-25 14:03:15 +02:00
Renamed from CANopen_stack/CO_SDO.c (Browse further)