#ifndef _OTHER_FUN_H_ #define _OTHER_FUN_H_ #include "define_all.h" /****ÆäËûÁãÉ¢¹¦ÄÜ·ÅÔÚÕâÀï´¦Àí****/ //LEDµÆ #define LED_ON GPIO_ResetBits(GPIOD,GPIO_Pin_8) #define LED_OFF GPIO_SetBits(GPIOD,GPIO_Pin_8) #define LED_TOG GPIO_ToggleBits(GPIOD,GPIO_Pin_8) //¿ª¸Ç¼ì²â #define UNCAP_PORT GPIOD #define UNCAP_PIN GPIO_Pin_1 #define UNCAP_IO_READ GPIO_ReadInputDataBit(UNCAP_PORT, UNCAP_PIN) //´Å¸ÉÈżì²â #define MAGNETIC_INTERFERENCE_PORT GPIOG #define MAGNETIC_INTERFERENCE_PIN GPIO_Pin_7 #define MAGNETIC_INTERFERENCE_IO_READ GPIO_ReadInputDataBit(MAGNETIC_INTERFERENCE_PORT, MAGNETIC_INTERFERENCE_PIN) void led_init(void); void OtherFunPro(void); #endif