UAVCAN driver transformed to use global memory pool

This commit is contained in:
Pavel Kirienko
2015-10-16 19:37:18 +03:00
committed by Lorenz Meier
parent 7373d99d72
commit 407191d4ab
5 changed files with 31 additions and 40 deletions

View File

@@ -77,7 +77,8 @@
UavcanNode *UavcanNode::_instance;
UavcanNode::UavcanNode(uavcan::ICanDriver &can_driver, uavcan::ISystemClock &system_clock) :
CDev("uavcan", UAVCAN_DEVICE_PATH),
_node(can_driver, system_clock),
_pool_allocator(MemoryPoolBlockCapacitySoftLimit, MemoryPoolBlockCapacityHardLimit),
_node(can_driver, system_clock, _pool_allocator),
_node_mutex(),
_esc_controller(_node),
_time_sync_master(_node),