[H7] Remove excess member from timerHardware_s (#8368)

[H7] Remove excess member from timerHardware_s
This commit is contained in:
Michael Keller 2019-06-04 21:14:54 +12:00 committed by GitHub
commit c28e7cf8e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 5 deletions

View File

@ -402,8 +402,9 @@ P - High - High -
} else
#endif
{
dmaInit(timerHardware->dmaIrqHandler, OWNER_MOTOR, RESOURCE_INDEX(motorIndex));
dmaSetHandler(timerHardware->dmaIrqHandler, motor_DMA_IRQHandler, NVIC_BUILD_PRIORITY(1, 2), motorIndex);
dmaIdentifier_e identifier = dmaGetIdentifier(timerHardware->dmaRef);
dmaInit(identifier, OWNER_MOTOR, RESOURCE_INDEX(motorIndex));
dmaSetHandler(identifier, motor_DMA_IRQHandler, NVIC_BUILD_PRIORITY(1, 2), motorIndex);
}
// Start the timer channel now.

View File

@ -127,7 +127,6 @@ typedef struct timerHardware_s {
#elif defined(STM32H7)
DMA_Stream_TypeDef *dmaRef;
uint8_t dmaRequest;
uint8_t dmaIrqHandler; // XXX Should be gone (can be substituted by dmaGetIdentifier)
#else
DMA_Channel_TypeDef *dmaRef;
#endif

View File

@ -723,8 +723,7 @@
DEF_TIM_AF(TCH_## tim ## _ ## chan, pin) \
DEF_TIM_DMA_COND(/* add comma */ , \
DEF_TIM_DMA_STREAM(dmaopt, TCH_## tim ## _ ## chan), \
DEF_TIM_DMA_REQUEST(TCH_## tim ## _ ## chan), \
DEF_TIM_DMA_HANDLER(dmaopt, TCH_## tim ## _ ## chan) \
DEF_TIM_DMA_REQUEST(TCH_## tim ## _ ## chan) \
) \
DEF_TIM_DMA_COND(/* add comma */ , \
DEF_TIM_DMA_STREAM(upopt, TCH_## tim ## _UP), \