[mw_shl_code=c,true]FIFO_CS_L(); /*??????FIFO????????*/
FIFO_WE_H(); /*??????FIFO?????í*/[/mw_shl_code]
“
no member named "BRR" in "GPIO_TypeDef"”
[mw_shl_code=c,true]#define FIFO_CS_H() GPIOA->BSRR =GPIO_Pin_3
#define FIFO_CS_L() GPIOA->BRR =GPIO_Pin_3 /*??????FIFO????????*/
#define FIFO_WRST_H() GPIOB->BSRR =GPIO_Pin_5 /*???????íFIFO??(????from?????·)???????? */
#define FIFO_WRST_L() GPIOB->BRR =GPIO_Pin_5 /*??????FIFO??(????from?????·)????????*/
#define FIFO_RRST_H() GPIOA->BSRR =GPIO_Pin_2 /*???????íFIFO??(??????FIFO????)???????? */
#define FIFO_RRST_L() GPIOA->BRR =GPIO_Pin_2 /*??????FIFO??(??????FIFO????)???????? */
#define FIFO_RCLK_H() GPIOC->BSRR =GPIO_Pin_5
#define FIFO_RCLK_L() GPIOC->BRR =GPIO_Pin_5 /*FIFO?????????±??*/
#define FIFO_WE_H() GPIOD->BSRR =GPIO_Pin_3 /*??????FIFO?????í*/
#define FIFO_WE_L() GPIOD->BRR =GPIO_Pin_3
#define READ_FIFO_PIXEL(RGB565) do{
RGB565=0;
FIFO_RCLK_L();
RGB565 = (GPIOB->IDR) & 0xff00;
FIFO_RCLK_H();
FIFO_RCLK_L();
RGB565 |= (GPIOB->IDR >>8) & 0x00ff;
FIFO_RCLK_H();
}while(0)
#define FIFO_PREPARE do{
FIFO_RRST_L();
FIFO_RCLK_L();
FIFO_RCLK_H();
FIFO_RRST_H();
FIFO_RCLK_L();
FIFO_RCLK_H();
}while(0)
[/mw_shl_code]
这是头文件里对其的定义
一周热门 更多>