New alignment macros used.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14492 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
6d8b77bde9
commit
ce910a52fc
|
@ -30,12 +30,12 @@
|
|||
/* Buffers are allocated with size and address aligned to the cache
|
||||
line size.*/
|
||||
#if CACHE_LINE_SIZE > 0
|
||||
CC_ALIGN(CACHE_LINE_SIZE)
|
||||
CC_ALIGN_DATA(CACHE_LINE_SIZE)
|
||||
#endif
|
||||
adcsample_t samples1[CACHE_SIZE_ALIGN(adcsample_t, ADC_GRP1_NUM_CHANNELS * ADC_GRP1_BUF_DEPTH)];
|
||||
|
||||
#if CACHE_LINE_SIZE > 0
|
||||
CC_ALIGN(CACHE_LINE_SIZE)
|
||||
CC_ALIGN_DATA(CACHE_LINE_SIZE)
|
||||
#endif
|
||||
adcsample_t samples2[CACHE_SIZE_ALIGN(adcsample_t, ADC_GRP2_NUM_CHANNELS * ADC_GRP2_BUF_DEPTH)];
|
||||
|
||||
|
|
Loading…
Reference in New Issue