CAN HW filters are added using map container

This commit is contained in:
ilia-sheremet
2015-06-26 14:35:53 +02:00
parent bad7123b7d
commit 573b268457
43 changed files with 953 additions and 782 deletions
@@ -601,11 +601,6 @@ public:
{
return (iface_index >= num_ifaces_) ? nullptr : static_cast<SocketCanIface*>(ifaces_[iface_index]);
}
const SocketCanIface* getIface(std::uint8_t iface_index) const override
{
return (iface_index >= num_ifaces_) ? nullptr : static_cast<const SocketCanIface*>(ifaces_[iface_index]);
}
std::uint8_t getNumIfaces() const override { return num_ifaces_; }
@@ -61,8 +61,6 @@ public:
virtual uavcan::ICanIface* getIface(uavcan::uint8_t iface_index);
virtual const uavcan::ICanIface* getIface(uavcan::uint8_t iface_index) const;
virtual uavcan::uint8_t getNumIfaces() const;
};
@@ -114,7 +114,7 @@ $(CPPOBJ): $(OBJDIR)/%.o: %.cpp
$(CPPC) -c $(DEF) $(INC) $(CPPFLAGS) $< -o $@
clean:
rm -rf $(BUILDDIR)
rm -rf $(BUILDDIR) dsdlc_generated
size: $(ELF)
@if [ -f $(ELF) ]; then echo; $(SIZE) $(ELF); echo; fi;
@@ -17,7 +17,8 @@ CPPSRC = src/main.cpp src/dummy.cpp
UDEFS = -DUAVCAN_STM32_CHIBIOS=1 \
-DUAVCAN_STM32_TIMER_NUMBER=6 \
-DUAVCAN_TINY=1 \
-DUAVCAN_STM32_NUM_IFACES=2
-DUAVCAN_STM32_NUM_IFACES=2 \
-DUAVCAN_MEM_POOL_BLOCK_SIZE=48
include ../../../libuavcan/include.mk
CPPSRC += $(LIBUAVCAN_SRC)