2024-01-30 03:31:27 +00:00
|
|
|
#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
|