1.蓝牙硬件上电控制
2.修复关机时logo可能宕机问题 3.调整RAMFS
This commit is contained in:
parent
2b70e194a7
commit
3e94aa8dd5
|
@ -345,6 +345,7 @@ extern BOOL GPIOMap_DetPoweroff(void);
|
||||||
#define SF_ADC_MUXA DSI_GPIO_0
|
#define SF_ADC_MUXA DSI_GPIO_0
|
||||||
#define SF_ADC_MUXB DSI_GPIO_1
|
#define SF_ADC_MUXB DSI_GPIO_1
|
||||||
#define SF_WIFI_EN P_GPIO_11
|
#define SF_WIFI_EN P_GPIO_11
|
||||||
|
#define SF_BT_EN L_GPIO_2
|
||||||
|
|
||||||
#define LED_FOCUS_CTRL LED_RED_DUMMY
|
#define LED_FOCUS_CTRL LED_RED_DUMMY
|
||||||
#define GPIO_FOCUS_LED x_GPIO_x //FPGA
|
#define GPIO_FOCUS_LED x_GPIO_x //FPGA
|
||||||
|
|
|
@ -466,11 +466,16 @@ INT32 System_OnShutdown(VControl *pCtrl, UINT32 paramNum, UINT32 *paramArray)
|
||||||
DBG_ERR("lens error **********\r\n");
|
DBG_ERR("lens error **********\r\n");
|
||||||
} else {
|
} else {
|
||||||
#if (POWEROFFLOGO_FUNCTION == ENABLE)
|
#if (POWEROFFLOGO_FUNCTION == ENABLE)
|
||||||
|
#if HUNTING_CAMERA_MCU == ENABLE
|
||||||
|
if(sf_get_mode_flag())
|
||||||
|
#endif
|
||||||
|
{
|
||||||
GxDisplay_Set(LAYER_OSD1, LAYER_STATE_ENABLE, 0); //turn off OSD1
|
GxDisplay_Set(LAYER_OSD1, LAYER_STATE_ENABLE, 0); //turn off OSD1
|
||||||
GxDisplay_Flush(LAYER_OSD1);
|
GxDisplay_Flush(LAYER_OSD1);
|
||||||
|
|
||||||
Display_ShowSplash(SPLASH_POWEROFF);
|
Display_ShowSplash(SPLASH_POWEROFF);
|
||||||
SwTimer_DelayMs(500);
|
SwTimer_DelayMs(500);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#if HUNTING_CAMERA_MCU == ENABLE
|
#if HUNTING_CAMERA_MCU == ENABLE
|
||||||
|
|
BIN
code/application/source/sf_app/build/rtk_hciattach
Executable file
BIN
code/application/source/sf_app/build/rtk_hciattach
Executable file
Binary file not shown.
BIN
code/application/source/sf_app/build/rtl8723d_config
Executable file
BIN
code/application/source/sf_app/build/rtl8723d_config
Executable file
Binary file not shown.
BIN
code/application/source/sf_app/build/rtl8723d_fw
Executable file
BIN
code/application/source/sf_app/build/rtl8723d_fw
Executable file
Binary file not shown.
|
@ -55,6 +55,8 @@ void sf_set_pir_statu_flag(SINT32 flag);
|
||||||
|
|
||||||
BOOL sf_load_ko(void);
|
BOOL sf_load_ko(void);
|
||||||
|
|
||||||
|
BOOL sf_load_bt_ko(void);
|
||||||
|
|
||||||
SINT32 sf_in_update(void);
|
SINT32 sf_in_update(void);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
@ -29,6 +29,7 @@ int sf_app_pir_statu_read(void);
|
||||||
UINT32 sf_app_data_ready_read(void);
|
UINT32 sf_app_data_ready_read(void);
|
||||||
|
|
||||||
void sf_set_wifi_en(UINT32 cnt);
|
void sf_set_wifi_en(UINT32 cnt);
|
||||||
|
void sf_set_bt_en(UINT32 cnt);
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
#if __cplusplus
|
#if __cplusplus
|
||||||
}
|
}
|
||||||
|
|
|
@ -155,9 +155,13 @@ int main(int argc, char *argv[])
|
||||||
if((!isUsb) && (SF_MCU_STARTUP_NORMAL != startup) && (SF_MCU_STARTUP_OFF != startup)/*&& (0 == isUpdate)*/)
|
if((!isUsb) && (SF_MCU_STARTUP_NORMAL != startup) && (SF_MCU_STARTUP_OFF != startup)/*&& (0 == isUpdate)*/)
|
||||||
{
|
{
|
||||||
#if SF_IQ_TEST != ENABLE
|
#if SF_IQ_TEST != ENABLE
|
||||||
if((0 == isUpdate) && (puiPara->GprsSwitch))
|
if(SF_MCU_STARTUP_ONKEY == startup)
|
||||||
{
|
{
|
||||||
sf_set_wifi_en(1);
|
sf_set_wifi_en(1);
|
||||||
|
sf_set_bt_en(1);
|
||||||
|
}
|
||||||
|
if((0 == isUpdate) && (puiPara->GprsSwitch))
|
||||||
|
{
|
||||||
sf_4G_usb_init();
|
sf_4G_usb_init();
|
||||||
app_RegisterNet_start();
|
app_RegisterNet_start();
|
||||||
}
|
}
|
||||||
|
|
|
@ -617,6 +617,18 @@ BOOL sf_load_ko(void)
|
||||||
return ret2;
|
return ret2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BOOL sf_load_bt_ko(void)
|
||||||
|
{
|
||||||
|
BOOL ret2 = TRUE;
|
||||||
|
int ret = 0;
|
||||||
|
ret = system("modprobe hci_uart");
|
||||||
|
if(0 != ret)
|
||||||
|
{
|
||||||
|
ret2 = FALSE;
|
||||||
|
}
|
||||||
|
//MLOGI("finsihed.\n");
|
||||||
|
return ret2;
|
||||||
|
}
|
||||||
SINT32 sf_in_update(void)
|
SINT32 sf_in_update(void)
|
||||||
{
|
{
|
||||||
SINT8 regValue = 0;
|
SINT8 regValue = 0;
|
||||||
|
|
|
@ -1327,6 +1327,7 @@ void* sf_app_load_ko_thread(void *arg)
|
||||||
|
|
||||||
sf_load_ko();
|
sf_load_ko();
|
||||||
|
|
||||||
|
sf_load_bt_ko();
|
||||||
/*if((SF_MCU_STARTUP_NORMAL != sf_poweron_type_get()) && (0 == sf_get_fw_update()))
|
/*if((SF_MCU_STARTUP_NORMAL != sf_poweron_type_get()) && (0 == sf_get_fw_update()))
|
||||||
{
|
{
|
||||||
#if SF_IQ_TEST != ENABLE
|
#if SF_IQ_TEST != ENABLE
|
||||||
|
|
|
@ -194,6 +194,17 @@ void sf_set_wifi_en(UINT32 cnt)
|
||||||
gpio_set_value(SF_WIFI_EN, cnt);
|
gpio_set_value(SF_WIFI_EN, cnt);
|
||||||
printf("[%s:%d] e cnt:%d\n", __FUNCTION__, __LINE__,cnt);
|
printf("[%s:%d] e cnt:%d\n", __FUNCTION__, __LINE__,cnt);
|
||||||
}
|
}
|
||||||
|
void sf_set_bt_en(UINT32 cnt)
|
||||||
|
{
|
||||||
|
static UINT8 state = 0;
|
||||||
|
if(0 == state)
|
||||||
|
{
|
||||||
|
state = 1;
|
||||||
|
gpio_direction_output(SF_BT_EN, 1);
|
||||||
|
}
|
||||||
|
gpio_set_value(SF_BT_EN, cnt);
|
||||||
|
printf("[%s:%d] e cnt:%d\n", __FUNCTION__, __LINE__,cnt);
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
#if __cplusplus
|
#if __cplusplus
|
||||||
|
|
|
@ -16,7 +16,9 @@
|
||||||
#include "Utility/SwTimer.h"
|
#include "Utility/SwTimer.h"
|
||||||
#include "vendor_common.h"
|
#include "vendor_common.h"
|
||||||
#include "UIApp/Network/EthCamAppNetwork.h"
|
#include "UIApp/Network/EthCamAppNetwork.h"
|
||||||
|
#if HUNTING_CAMERA_MCU == ENABLE
|
||||||
|
#include "sf_mcu.h"
|
||||||
|
#endif
|
||||||
#define THIS_DBGLVL 2 // 0=FATAL, 1=ERR, 2=WRN, 3=UNIT, 4=FUNC, 5=IND, 6=MSG, 7=VALUE, 8=USER
|
#define THIS_DBGLVL 2 // 0=FATAL, 1=ERR, 2=WRN, 3=UNIT, 4=FUNC, 5=IND, 6=MSG, 7=VALUE, 8=USER
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
#define __MODULE__ SysMainExe
|
#define __MODULE__ SysMainExe
|
||||||
|
@ -393,11 +395,16 @@ INT32 System_OnShutdown(VControl *pCtrl, UINT32 paramNum, UINT32 *paramArray)
|
||||||
DBG_ERR("lens error **********\r\n");
|
DBG_ERR("lens error **********\r\n");
|
||||||
} else {
|
} else {
|
||||||
#if (POWEROFFLOGO_FUNCTION == ENABLE)
|
#if (POWEROFFLOGO_FUNCTION == ENABLE)
|
||||||
|
#if HUNTING_CAMERA_MCU == ENABLE
|
||||||
|
if(sf_get_mode_flag())
|
||||||
|
#endif
|
||||||
|
{
|
||||||
GxDisplay_Set(LAYER_OSD1, LAYER_STATE_ENABLE, 0); //turn off OSD1
|
GxDisplay_Set(LAYER_OSD1, LAYER_STATE_ENABLE, 0); //turn off OSD1
|
||||||
GxDisplay_Flush(LAYER_OSD1);
|
GxDisplay_Flush(LAYER_OSD1);
|
||||||
|
|
||||||
Display_ShowSplash(SPLASH_POWEROFF);
|
Display_ShowSplash(SPLASH_POWEROFF);
|
||||||
SwTimer_DelayMs(500);
|
SwTimer_DelayMs(500);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//#define CFG_LINUX_COMP_MAX_SIZE 0xA00000 //max uImage size
|
//#define CFG_LINUX_COMP_MAX_SIZE 0xA00000 //max uImage size
|
||||||
//#define CFG_RAMFS_COMP_MAX_SIZE 0x500000 //max ramdisk size
|
//#define CFG_RAMFS_COMP_MAX_SIZE 0x500000 //max ramdisk size
|
||||||
#define CFG_LINUX_COMP_MAX_SIZE 0x300000 //max uImage size
|
#define CFG_LINUX_COMP_MAX_SIZE 0x300000 //max uImage size
|
||||||
#define CFG_RAMFS_COMP_MAX_SIZE 0x320000 //max ramdisk size
|
#define CFG_RAMFS_COMP_MAX_SIZE 0x330000 //max ramdisk size
|
||||||
|
|
||||||
#define CFG_MULTI_MKIMAGE_LEN 0x8 //mkimage's multi image always comes 8 bytes for sub-image size
|
#define CFG_MULTI_MKIMAGE_LEN 0x8 //mkimage's multi image always comes 8 bytes for sub-image size
|
||||||
#define CFG_GZ_WORK_SIZE 0x10000 //64KB are enough
|
#define CFG_GZ_WORK_SIZE 0x10000 //64KB are enough
|
||||||
|
|
Loading…
Reference in New Issue
Block a user