LED.h 312 B

123456789101112131415161718
  1. #ifndef __LED_H
  2. #define __LED_H
  3. #include "sys.h"
  4. #include "delay.h"
  5. #define LED0 PCout(3)
  6. #define LED1 PCout(2)
  7. #define LED0_TOOGLE GPIOC->ODR ^= GPIO_Pin_3; //·¢ËÍ
  8. #define LED1_TOOGLE GPIOC->ODR ^= GPIO_Pin_2; //½ÓÊÕ
  9. void LEDGPIO_Init(void);
  10. void LED_Toogle( uint8_t cnt);
  11. #endif