Janez
41c075a182
SocketCAN main.c: Add NMT changes of current and remote nodes into log.
2020-03-13 16:14:50 +01:00
Janez
18bc8d4313
HBconsumer: add CO_HBconsumer_initCallbackNmtChanged(), callbaks optional
...
- Make HBconsumer callbacks optional via CO_CONFIG_HB_CONS_CALLBACKS
definition.
- Add additional callback CO_HBconsumer_initCallbackNmtChanged()
2020-03-13 16:05:27 +01:00
Janez
1ce3732e60
SocketCAN: change CO_DRIVER_MULTI_INTERFACE and CO_DRIVER_ERROR_REPORTING
...
- Replace macro USE_EMERGENCY_OBJECT with CO_DRIVER_USE_EMERGENCY 1
- Now define sets macro to 0 or 1. It is easier to set custom value.
2020-03-12 16:20:40 +01:00
Janez
e6b4c1f5b1
socketCAN now compiles and runs.
2020-03-12 08:38:58 +01:00
Janez
fb2274fc9f
socketCAN driver, CO_CANrxBufferInit(): remove check COB ID already used.
...
If two or more CANrx buffers have the same _ident_, then buffer with
lowest _index_ has precedence and other CANrx buffers will be ignored.
2020-03-11 17:48:48 +01:00
Janez
02e2cc5860
Stack configuration added do CO_driver.h
...
Change macro CO_USE_LEDS -> CO_CONFIG_NMT_LEDS 1
Change macro CO_SDO_BUFFER_SIZE -> CO_CONFIG_SDO_BUFFER_SIZE
2020-03-07 16:26:52 +01:00
Janez
02a734a832
Move socketCAN/Makefile into base directory
...
Partially update sockeCAN/main.c and rename to sockeCAN/CO_main_basic.c.
Fix some warnings in socketCAN.
2020-03-02 09:17:52 +01:00
Janez
9d17b0d671
socketCAN driver:
...
- Always enable CANptr and timestamp info in CO_CANrx_t.
- Update documentation
2020-02-29 22:34:48 +01:00
Janez
f21cde9ab0
doxygen socketCAN + some simplifications.
2020-02-28 16:37:41 +01:00
Janez
d40c1e1c96
Manual merge from updates in master branch - socketCAN
2020-02-28 10:08:11 +01:00
Janez
3fc564b72f
Remove CO_CANopenInitCallback() from CANopen.h/.c (revert)
2020-02-27 15:25:59 +01:00
Janez
22e66b7bb4
socketCAN/CO_Linux_threads
...
- CANrx_threadTmr_init(uint16_t interval_in_milliseconds
(changed to) uint32_t interval_in_microseconds)
- other timing updated
2020-02-27 13:28:23 +01:00
Janez
8fb48173c6
Add CO_CANopenInitCallback() into CANopen.h/.c.
...
Change CO_*_initCallback() functions - add 'void *object' argument.
2020-02-27 13:09:48 +01:00
Janez
c40130b70e
socketCAN: add Makefile and do basic changes
2020-02-26 13:04:25 +01:00
Janez
a513d84e45
Move Makefile into example/
...
Renamed to example/CO_driver_blank.c and example/main_blank.c
Copied socketCAN/main.c from CANopenSocket project.
2020-02-26 13:01:53 +01:00
Janez
62ffc7c9f5
Drivers removed from stack, directory structure rearranged.
...
- Change log added to README.
- Doxygen documentation updated.
2020-02-05 10:52:56 +01:00
Janez
4495e32fe8
Rename macros CO_CANrxNew_* into CO_FLAG_*
2020-02-04 20:39:10 +01:00
Janez
c19879b659
Time base CHANGED TO MICROSECONDS in all objects. FIX OS!
...
- Necessary to update Time base in OS too - call to CO_process() function.
- timerNext_us info to OS implemented in in all objects.
- CO_NMT_blinkingProcess50ms() moved inside CO_NMT_process().
- CO_HBconsumer_process() function optimized and revised.
- Bugfix "timeDifference_us = 0;" inside the for loop.
2020-02-04 20:28:33 +01:00
Janez
d50e50e2c6
socketCAN related updates
...
- move stack/socketCAN/CO_OD_storage.* in socketCAN/CO_OD_storage.*
- CO_CANrxNew_ macros updated
- some corrections
2020-01-25 12:57:17 +01:00
Janez
23a37f0d92
New socketCAN/CO_driver_target.h
...
- Reduce CO_driver.h and CO_driver_base.h into CO_driver_target.h
- New functions: CO_CANrxMsg_readIdent, _DLC, _data
- rxArray[i].pFunct changed to -> rxArray[i].CANrx_callback
- (*pFunct)(void *object, const CO_CANrxMsg_t *message)) changed to
(*CANrx_callback)(void *object, void *message))
- change to '#define CO_CANrxNew_READ(rxNew) ((bool_t)rxNew)'
2020-01-24 14:59:45 +01:00
Janez
fdda4c8340
move stack/neuberger-socketCAN/ socketCAN
...
Compare with initial commit of neuberger-socketCAN.
Try to use original code.
2020-01-24 12:22:54 +01:00