Use __ALIGNED instead of __DMA which is identical to __DMA without the section on Hours

This commit is contained in:
Arne Schwabe
2016-06-08 22:04:40 +02:00
parent 010d9d9629
commit 540faa51bf
+4 -5
View File
@@ -93,7 +93,6 @@ PACK(struct Dsm2TimerPulsesData {
pulse_duration_t * ptr; pulse_duration_t * ptr;
uint16_t rest; uint16_t rest;
uint8_t index; uint8_t index;
uint8_t _alignment;
}); });
#endif #endif
@@ -118,12 +117,12 @@ union ModulePulsesData {
#endif #endif
PpmPulsesData<pulse_duration_t> ppm; PpmPulsesData<pulse_duration_t> ppm;
CrossfirePulsesData crossfire; CrossfirePulsesData crossfire;
}; } __ALIGNED;
/* The __DMA keyword is required to align the struct inside the modulePulsesData below, /* The __ALIGNED keyword is required to align the struct inside the modulePulsesData below,
* which is also defined to be __DMA aligned. * which is also defined to be __DMA (which includes __ALIGNED) aligned.
* Arrays in C/C++ are always defined to be *contiguously*. The first byte of the second element is therefore always * Arrays in C/C++ are always defined to be *contiguously*. The first byte of the second element is therefore always
* sizeof(ModulePulsesData). __DMA is required for sizeof(ModulePulsesData) to be a multiple of the alignment. * sizeof(ModulePulsesData). __ALIGNED is required for sizeof(ModulePulsesData) to be a multiple of the alignment.
*/ */
extern ModulePulsesData modulePulsesData[NUM_MODULES]; extern ModulePulsesData modulePulsesData[NUM_MODULES];