DMA filterblock to Control reg issue | Cypress Semiconductor
DMA filterblock to Control reg issue
Im attempting to transfer with the dma filter results from the holding register directly to a 8 bit control register. I have been using the dma wizard to produce the needed code for configuring the dma. When compiling Im getting a error Im not sure what to do with.
Here is what the wizard is producing.
/* Variable declarations for FILT_DONE_DMA_LO */
/* Move these variable declarations to the top of the function */
/* DMA Configuration for FILT_DONE_DMA_LO */
#define FILT_DONE_DMA_LO_BYTES_PER_BURST 1
#define FILT_DONE_DMA_LO_REQUEST_PER_BURST 1
#define FILT_DONE_DMA_LO_SRC_BASE (CYDEV_PERIPH_BASE)
#define FILT_DONE_DMA_LO_DST_BASE (CYDEV_PERIPH_BASE)
FILT_DONE_DMA_LO_Chan = FILT_DONE_DMA_LO_DmaInitialize( FILT_DONE_DMA_LO_BYTES_PER_BURST,
FILT_DONE_DMA_LO_TD = CyDmaTdAllocate();
The error message is
prj.M0120:'CTRL_REG_FILT_LO_Sync_ctrl_reg__CONTROL_REG' undeclared (first use in this function)
The other dmas I have done I have not had a issue like this where the var is undeclared.
#define CTRL_REG_SET_CURRENT_LO_Control_PTR ( (reg8 *) CTRL_REG_SET_CURRENT_LO_Sync_ctrl_reg__CONTROL_REG )
Creator 220.127.116.113 and running cy8ckit-050 with a psoc5lp part.
Thanks for the help.