From 3ba1fad9ac0535a5e49268a2850d0ee59631ad0b Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Thu, 18 Jun 2015 18:34:56 +0300 Subject: [PATCH] Using packed structs in STM32 test --- libuavcan_drivers/stm32/test_stm32f107/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libuavcan_drivers/stm32/test_stm32f107/Makefile b/libuavcan_drivers/stm32/test_stm32f107/Makefile index 6695c37092..fe60c32483 100644 --- a/libuavcan_drivers/stm32/test_stm32f107/Makefile +++ b/libuavcan_drivers/stm32/test_stm32f107/Makefile @@ -17,7 +17,10 @@ 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 \ + -DUAVCAN_PACKED_BEGIN='_Pragma("pack(1)")' \ + -DUAVCAN_PACKED_END='_Pragma("pack()")' include ../../../libuavcan/include.mk CPPSRC += $(LIBUAVCAN_SRC)