Pavel Kirienko
|
08cea4aacd
|
<limits> from STL is not required
|
2014-05-05 15:51:49 +04:00 |
|
Pavel Kirienko
|
ad3c0af324
|
Some headers moved to util/ (map, bitset, linked_list); compile_time.hpp renamed to templates.hpp
|
2014-05-05 14:17:04 +04:00 |
|
Pavel Kirienko
|
74a7ff6a82
|
Fixed possible ADL issue in the Array template
|
2014-05-04 23:15:14 +04:00 |
|
Pavel Kirienko
|
7608e4ca08
|
Functions from <algorithm> reimplemented in libuavcan
|
2014-05-04 23:13:38 +04:00 |
|
Pavel Kirienko
|
cf3d6e2c08
|
UAVCAN_EXPORT for BitSet<>
|
2014-05-04 21:28:27 +04:00 |
|
Pavel Kirienko
|
0db43b6489
|
Partially removed all references to STL's algorithm. <algorithm> is not included anywhere, though still used in several places which still alows the code to compile as <algorithm> is being pulled in from some other standard headers.
|
2014-05-04 21:22:18 +04:00 |
|
Pavel Kirienko
|
d0c2898def
|
std::bitset<> replaced with BitSet<>; stdexcept is not included unless exceptions are enabled
|
2014-05-04 20:49:58 +04:00 |
|
Pavel Kirienko
|
4defcde10b
|
ComponentStatusManager<>
|
2014-04-23 13:38:56 +04:00 |
|
Pavel Kirienko
|
f155702008
|
Data type registrator went the same way - using plain statics instead of in-place allocation at first call. For code size critical applications, GCC flag -fno-threadsafe-statics should be used
|
2014-04-20 23:40:32 +04:00 |
|
Pavel Kirienko
|
7a02960401
|
Good old GDTR singleton re-implemented via static local again, because previous implementation could cause undefined behavior as GDTR could be initialized after static type registrators that use it
|
2014-04-20 23:14:02 +04:00 |
|
Pavel Kirienko
|
0fd24fd6b0
|
Braces in complex boolean condition to suppress false positive from the static analyzer
|
2014-04-19 22:55:57 +04:00 |
|
Pavel Kirienko
|
5fcfd7726b
|
Removed unused constant ErrOk
|
2014-04-19 22:29:40 +04:00 |
|
Pavel Kirienko
|
c1be9f1fef
|
Explicit virtual keyword
|
2014-04-19 18:51:36 +04:00 |
|
Pavel Kirienko
|
f31d46ea6c
|
Explicit void cast for unused return values
|
2014-04-19 17:45:03 +04:00 |
|
Pavel Kirienko
|
4e39fc61d9
|
LinkedListRoot<>::remove() does not return anything, as it was not used anyway
|
2014-04-19 17:13:44 +04:00 |
|
Pavel Kirienko
|
acff3d274c
|
Null pointer checks
|
2014-04-19 16:47:14 +04:00 |
|
Pavel Kirienko
|
efb2251ef8
|
strcmp() --> strncmp()
|
2014-04-19 16:42:39 +04:00 |
|
Pavel Kirienko
|
799846de02
|
Scope hiding fixes
|
2014-04-19 16:32:42 +04:00 |
|
Pavel Kirienko
|
c4c77ea321
|
Fixed typedef reuse
|
2014-04-19 15:52:17 +04:00 |
|
Pavel Kirienko
|
2eb15268f7
|
Stupid condition swap to eliminate a false positive from static analyzer
|
2014-04-19 15:30:30 +04:00 |
|
Pavel Kirienko
|
dfe3b4511e
|
Most enums were replaced with constants, according to MISRA
|
2014-04-19 15:16:10 +04:00 |
|
Pavel Kirienko
|
ace2cf9d0e
|
Error codes are constants, not enum. That fixes another MISRA violation.
|
2014-04-19 14:13:55 +04:00 |
|
Pavel Kirienko
|
519532da14
|
Fixed undefined behavior
|
2014-04-19 13:57:10 +04:00 |
|
Pavel Kirienko
|
dfc69b4b5f
|
Destructor fixes
|
2014-04-18 23:44:31 +04:00 |
|
Pavel Kirienko
|
b3769c9cb3
|
Removed forward declarations (not compatible with MISRA)
|
2014-04-18 21:14:17 +04:00 |
|
Pavel Kirienko
|
fd71f55933
|
Control flow/braces fixes
|
2014-04-18 19:55:51 +04:00 |
|
Pavel Kirienko
|
1853f5c73c
|
Explicit constructors
|
2014-04-18 19:37:08 +04:00 |
|
Pavel Kirienko
|
febc3ed870
|
Virtual call screwup fix
|
2014-04-18 18:57:54 +04:00 |
|
Pavel Kirienko
|
bfe1447426
|
Fixes suggested by static analyzer
|
2014-04-18 18:46:47 +04:00 |
|
Pavel Kirienko
|
9a04bc6dbc
|
SciTools Understand warning fixes
|
2014-04-18 16:32:20 +04:00 |
|
Pavel Kirienko
|
b7cf443418
|
Coverity annotation fixes
|
2014-04-18 15:56:22 +04:00 |
|
Pavel Kirienko
|
b5f67403dd
|
Coverity scan code annotations and modeling file
|
2014-04-18 15:16:22 +04:00 |
|
Pavel Kirienko
|
03ff492bc4
|
More compliance fixes
|
2014-04-17 12:23:31 +04:00 |
|
Pavel Kirienko
|
cff3a24883
|
C++ compliance fixes
|
2014-04-17 12:05:02 +04:00 |
|
Pavel Kirienko
|
87e89fc042
|
Heavy optimizations for ROM/RAM usage in UAVCAN_TINY mode
|
2014-04-16 21:11:42 +04:00 |
|
Pavel Kirienko
|
4085613d00
|
Support for zero static buffers
|
2014-04-16 20:25:37 +04:00 |
|
Pavel Kirienko
|
a298ad9ba2
|
Transport CRC will not use table in UAVCAN_TINY builds
|
2014-04-16 17:19:05 +04:00 |
|
Pavel Kirienko
|
f8b10ab003
|
Shorter error strings - saves ~200 bytes
|
2014-04-16 16:59:58 +04:00 |
|
Pavel Kirienko
|
c2b878965e
|
DataTypeSignatureCRC - methods moved to .cpp
|
2014-04-13 00:02:48 +04:00 |
|
Pavel Kirienko
|
627dc5f2d9
|
UAVCAN_TINY preprocessor option - STM32 test compiles into 41kB in release mode (-Os, LTO)
|
2014-04-12 23:28:32 +04:00 |
|
Pavel Kirienko
|
e476a957a8
|
NetworkCompatibilityChecker will not be executed at each Node<>::start(), there's special method for that - Node<>::checkNetworkCompatibility()
|
2014-04-12 22:10:26 +04:00 |
|
Pavel Kirienko
|
dd5908dad8
|
Renaming: NodeInitializer --> NetworkCompatibilityChecker
|
2014-04-12 21:40:30 +04:00 |
|
Pavel Kirienko
|
d801f4a7f3
|
CAN TX queue quota - limiting max number of memory blocks per TX queue to avoid memory congestion if one iface is down
|
2014-04-12 18:11:30 +04:00 |
|
Pavel Kirienko
|
95d2328a8c
|
Removed debug memset() in pool allocator
|
2014-04-12 17:18:08 +04:00 |
|
Pavel Kirienko
|
4e7287358a
|
Dynamic memory refactoring: Entire library now uses IPoolAllocator instead of IAllocator, which was removed completely. This change was needed to enable TX queue constraints, see the next commits.
|
2014-04-12 17:17:06 +04:00 |
|
Pavel Kirienko
|
5808bfc0c9
|
LimitedPoolAllocator (for TX queue)
|
2014-04-12 13:40:15 +04:00 |
|
Pavel Kirienko
|
bba89bdd3d
|
Node<>::getAllocator() preserves full allocator type
|
2014-04-11 19:23:05 +04:00 |
|
Pavel Kirienko
|
d2eb0a03ee
|
Properly implemented registerInternalFailure(); some logging in STM32 test app
|
2014-04-11 14:18:36 +04:00 |
|
Pavel Kirienko
|
e567c16fd0
|
Compact Entry constructor for GlobalDataTypeRegistry::regist<>()
|
2014-04-10 22:51:37 +04:00 |
|
Pavel Kirienko
|
c26c320dd9
|
Fixed GDTR singleton (http://stackoverflow.com/questions/22985570)
|
2014-04-10 15:05:55 +04:00 |
|