Janez
c1a30b8a03
Some style corrections
...
- add CO_fifo_st enumerator for use in CO_fifo_cpyTok2xx functions.
- 309/CO_gateway_ascii: add x8 to x64 nonstandard data types
- example compiles now
- Fix "unused argument" warnings in socketCAN
2020-05-15 15:52:22 +02:00
Freddie Chopin
466bf0ffb7
Fix "comparison of integer expressions of different signedness" warning
...
With -Wextra GCC gives:
socketCAN/CO_driver.c: In function ‘setRxFilters’:
socketCAN/CO_driver.c:159:19: warning: comparison of integer expressions
of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’}
[-Wsign-compare]
159 | for (i = 0; i < CANmodule->CANinterfaceCount; i ++) {
| ^
2020-05-06 16:31:36 +02:00
Janez
9f8e726e7e
SocketCAN, CO_driver.c: replace CO_notifyPype with simpler eventfd().
2020-03-17 17:39:22 +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
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
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
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
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