GPS的GPIO配置文件html
客戶須要更改此變量C_GNSS_RF_ELNA_GPIO_NUM_DEFAULT才能覆蓋NAVRF驅動程序ELNA設置。 linux
modem_proc/gps/gnss/mgp/me/gen8/src/cgps_ext.capi
/* Customer needs to change this variable in order to override NAVRF driver ELNA setting */ide
gnss_ExternalGNSSConfigStruct gnssz_ExtElnaCfg = post
{ GNSS_RF_HAS_ELNA, 80, NULL, C_NAVRF_NPA_RESOURCE_NAME_DEFAULT, C_PMIC_NPA_MODE_ID_RF_MODE_DEFAULT};
或者,測試
modem_proc/gps/gnss/mgp/me/gen8/src/cgps_ext.cthis
/* Customer needs to change this variable in order to override NAVRF driver ELNA setting */
gnss_ExternalGNSSConfigStruct gnssz_ExtElnaCfg =
{ GNSS_RF_HAS_ELNA, C_GNSS_RF_ELNA_GPIO_NUM_DEFAULT, NULL, C_NAVRF_NPA_RESOURCE_NAME_DEFAULT, C_PMIC_NPA_MODE_ID_RF_MODE_DEFAULT};
modem_proc/gps/api/gnss_api.hspa
#define C_GNSS_RF_ELNA_GPIO_NUM_DEFAULT 98htm
linux系統中GPIO的設置blog
命令操做以下:(不一樣環境目錄可能會有不一樣)
cd /sys/class/gpio
echo "1">export (測試gpio1)
cd gpio1
cat direction(查看gpio1是否有對應的輸入輸出的字符)
【in:輸入,out:輸出】
echo "out">direction
echo "1">value (該操做把gpio1置爲1)
echo "0">value(該操做把gpio1置爲0)