7a7daad23a
Signed-off-by: lidun <1084178170@qq.com>
17 lines
538 B
C
17 lines
538 B
C
#ifndef __LED_H
|
|
#define __LED_H
|
|
|
|
#include "sys.h"
|
|
|
|
#define MCU_LED(x) x? GPIO_SetBits(GPIOA,GPIO_Pin_9):GPIO_ResetBits(GPIOA,GPIO_Pin_9)
|
|
|
|
#define SW_PWR_4G_PORT GPIOC
|
|
#define SW_PWR_4G_PIN GPIO_Pin_6
|
|
|
|
#define SW_PWR_4G_ON do{GPIO_SetBits(SW_PWR_4G_PORT,SW_PWR_4G_PIN);}while(0)
|
|
#define SW_PWR_4G_OFF do{GPIO_ResetBits(SW_PWR_4G_PORT,SW_PWR_4G_PIN);}while(0)
|
|
#define KEY_PWR_4G_ON do{GPIO_SetBits(GPIOA,GPIO_Pin_1);}while(0)
|
|
#define KEY_PWR_4G_OFF do{GPIO_ResetBits(GPIOA,GPIO_Pin_1);}while(0)
|
|
|
|
#endif
|