void GPIO_WriteHigh(GPIO_TypeDef* GPIOx, GPIO_Pin_TypeDef PortPins);
GPIO_WriteHigh是STM8单片机的官方库函数,我想定义一个指针指向它
但在编译时报错 Error[Pe145]: function "p" may not be initialized
void LED_Control(uint8_t LED_MAP)
{
void *(p)(GPIO_TypeDef*, GPIO_Pin_TypeDef)=&GPIO_WriteHigh; //报错:Error[Pe145]: function "p" may not be initialized
p(LED1_GPIO, LED1_GPIO_PIN);
}