MDK4的查看IO状态是很直观的,一看就懂,这个MDK5的怎么看啊,GPIOE和MDK4不一样,而且好像还看不到IO口的状态,如图
[mw_shl_code=c,true]#include"stm32f10x_lib.h"
#include<stdio.h>
void GPIO_Configuration(void)
{
GPIO_InitTypeDef GPIO_InitStructure;
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOE,ENABLE);
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_All;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
GPIO_Init(GPIOE, &GPIO_InitStructure);
}
//----------------?÷????----------------------
int main(void)
{
GPIO_Configuration();
GPIO_ResetBits(GPIOE, GPIO_Pin_All);
}[/mw_shl_code]
如图所示,这IO状态在哪呢 |