52 lines
1.2 KiB
C
52 lines
1.2 KiB
C
|
|
/*
|
|||
|
|
*********************************************************************************************************
|
|||
|
|
* IAR Development Kits
|
|||
|
|
* on the
|
|||
|
|
*
|
|||
|
|
* M451
|
|||
|
|
*
|
|||
|
|
* Filename : gpio_vcc.h
|
|||
|
|
* Version : V1.00
|
|||
|
|
* Programmer(s) : Qian Xianghong
|
|||
|
|
*********************************************************************************************************
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#ifndef USER_GPIO_VCC_PRESENT
|
|||
|
|
#define USER_GPIO_VCC_PRESENT
|
|||
|
|
|
|||
|
|
#define VCC_GSM_ON() PE5 = 1
|
|||
|
|
#define VCC_GSM_OFF() PE5 = 0
|
|||
|
|
|
|||
|
|
#define VCC_GPS_ON() PE6 = 0 // <20>͵<EFBFBD>ƽ<EFBFBD><C6BD><EFBFBD><EFBFBD>
|
|||
|
|
#define VCC_GPS_OFF() PE6 = 1
|
|||
|
|
#define IS_VCC_GPS_ON() (PE6 == 0)
|
|||
|
|
|
|||
|
|
// RFģ<46>鿪<EFBFBD><E9BFAA>
|
|||
|
|
#define VCC_RF_ON() PC13 = 1
|
|||
|
|
#define VCC_RF_OFF() PC13 = 0
|
|||
|
|
|
|||
|
|
// BDģ<44>鿪<EFBFBD><E9BFAA>
|
|||
|
|
#define VCC_BD_ON() // PB9 = 1 // <20><>ѹ<EFBFBD><D1B9><EFBFBD>汾<EFBFBD><E6B1BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ű<EFBFBD><C5B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
#define VCC_BD_OFF() // PB9 = 0
|
|||
|
|
|
|||
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>5V<35><56><EFBFBD><EFBFBD>
|
|||
|
|
#define VCC_SENSOR_5V_ON() PA7 = 1
|
|||
|
|
#define VCC_SENSOR_5V_OFF() PA7 = 0
|
|||
|
|
|
|||
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⼰<EFBFBD><E2BCB0><EFBFBD>ѽ<EFBFBD>
|
|||
|
|
#define VCC_POWER_STATUS() (PC6)
|
|||
|
|
|
|||
|
|
// SFlash<73><68>FRAM<41><4D><EFBFBD><EFBFBD>
|
|||
|
|
#define VCC_SFLASH_FRAM_ON() PC12 = 0 // <20>͵<EFBFBD>ƽ<EFBFBD><C6BD><EFBFBD><EFBFBD>
|
|||
|
|
#define VCC_SFLASH_FRAM_OFF() PC12 = 1
|
|||
|
|
|
|||
|
|
void Vcc_Init();
|
|||
|
|
void Vcc_Disable();
|
|||
|
|
|
|||
|
|
// <20>ָ<EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
void Vcc_Enable();
|
|||
|
|
|
|||
|
|
extern volatile uint8_t LCD_Disabled;
|
|||
|
|
|
|||
|
|
#endif
|