1234567891011121314151617181920212223242526272829303132 |
- /********************************************************************************
- * File Name: LedTask.h
- * Function Describe: Header file for LedTask.c
- * Explain:
- * Writer: ShiLiangWen
- * Date: 2015-1-30
- *******************************************************************************/
- #ifndef __LEDTEST_H
- #define __LEDTEST_H
- /***********************************************************************************/
- #define LED_SEL_RED 0
- #define LED_SEL_BLUE 1
- #define MODEM_LED1_PIN GPIO_Pin_4
- #define MODEM_LED2_PIN GPIO_Pin_3
- #define MODEM_LED1_PORT GPIOB
- #define MODEM_LED2_PORT GPIOB
- #define MODEM_LED1_HIGH (MODEM_LED1_PORT->BSRR = MODEM_LED1_PIN)
- #define MODEM_LED1_LOW (MODEM_LED1_PORT->BRR = MODEM_LED1_PIN)
- #define MODEM_LED2_HIGH (MODEM_LED2_PORT->BSRR = MODEM_LED2_PIN)
- #define MODEM_LED2_LOW (MODEM_LED2_PORT->BRR = MODEM_LED2_PIN)
- extern void LedInit(void);
- extern void LedTickMsg(void);
- extern void SetLedFlash(unsigned char flash,unsigned char sleep);
- extern void LedSlecet(unsigned char sel);
- #endif
- /***********************************************************************************/
|