Led.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. /********************************************************************************
  2. * File Name: LedTask.h
  3. * Function Describe: Header file for LedTask.c
  4. * Explain:
  5. * Writer: ShiLiangWen
  6. * Date: 2015-1-30
  7. *******************************************************************************/
  8. #ifndef __LEDTEST_H
  9. #define __LEDTEST_H
  10. /***********************************************************************************/
  11. #define LED_SEL_RED 0
  12. #define LED_SEL_BLUE 1
  13. #define MODEM_LED1_PIN GPIO_Pin_4
  14. #define MODEM_LED2_PIN GPIO_Pin_3
  15. #define MODEM_LED1_PORT GPIOB
  16. #define MODEM_LED2_PORT GPIOB
  17. #define MODEM_LED1_HIGH (MODEM_LED1_PORT->BSRR = MODEM_LED1_PIN)
  18. #define MODEM_LED1_LOW (MODEM_LED1_PORT->BRR = MODEM_LED1_PIN)
  19. #define MODEM_LED2_HIGH (MODEM_LED2_PORT->BSRR = MODEM_LED2_PIN)
  20. #define MODEM_LED2_LOW (MODEM_LED2_PORT->BRR = MODEM_LED2_PIN)
  21. extern void LedInit(void);
  22. extern void LedTickMsg(void);
  23. extern void SetLedFlash(unsigned char flash,unsigned char sleep);
  24. extern void LedSlecet(unsigned char sel);
  25. #endif
  26. /***********************************************************************************/