初级会员

- 积分
- 92
- 金钱
- 92
- 注册时间
- 2012-2-7
- 在线时间
- 5 小时
|
GPIO_InitStructure.GPIO_Pin = LCD_GPIO_LED_PIN;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP; //推挽输出
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_Init(LCD_GPIO_LED_PORT, &GPIO_InitStructure);
GPIO_InitStructure.GPIO_Pin = LCD_GPIO_DATA_PIN;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP; //推挽输出
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_Init(LCD_GPIO_DATA_PORT, &GPIO_InitStructure);
GPIO_InitStructure.GPIO_Pin = LCD_GPIO_CS_PIN;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP; //推挽输出
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_Init(LCD_GPIO_CS_PORT, &GPIO_InitStructure);
GPIO_InitStructure.GPIO_Pin = LCD_GPIO_RS_PIN;
GPIO_Init(LCD_GPIO_RS_PORT, &GPIO_InitStructure);
GPIO_InitStructure.GPIO_Pin = LCD_GPIO_NWR_PIN;
GPIO_Init(LCD_GPIO_NWR_PORT, &GPIO_InitStructure);
GPIO_InitStructure.GPIO_Pin = LCD_GPIO_RD_PIN;
GPIO_Init(LCD_GPIO_RD_PORT, &GPIO_InitStructure);
请问原子哥程序中后面3个IO口这样写,也是和红色字体中一样设置那个3个IO口为推挽输出模式吗? |
|