回复 13# oyr520
com.h- /*${.::Com.h} ..............................................................*/
-
- #ifndef Com_h
- #define Com_h
-
- //=============macro for function config==============
-
- //=============macro for function config==============
-
- #include "custom_sig.h"
- #include "iop_scanner.h"
- #include "systemservice.h"
- #include "power.h"
- #include "user_def.h"
- #include "sdk_cfg.h"
- #include "user_standby.h"
- #include "Display_Srv.h"
-
- #define USERAPP_VOL_MAX (100)
- #define USERAPP_VOL_MIN (0)
-
- #define USERAPP_SUB_VOL_MAX (7)//(40)
- #define USERAPP_SUB_VOL_MIN (1)
-
- #define CEC_VOL_MAX (100)
-
- //#define DEFAULT_SETTING_APP 0 //usb
- #define DEFAULT_SETTING_APP 2 //ARC
- //#define DEFAULT_SETTING_APP 4 //aux
- #define DEFAULT_SETTING_VOL 34//20
- #define DEFAULT_SETTING_EQ eApUserEQ_Mode_FLAT
- #define DEFAULT_SETTING_SURROUND eApUserSurround_Mode_OFF
- #define DEFAULT_SETTING_DIMMER 2
- #define DEFAULT_SETTING_BASS_TRIM 5
- #define DEFAULT_SETTING_TREBLE_TRIM 5
- #define DEFAULT_SETTING_SURROUND_TRIM 5
-
- //#define AP_DBG
- #define ap_printf0(f, a...) LOGX(f, ##a)
- #define ap_printf(f, a...) LOGD(f, ##a)
- #define ap_printf2(f, a...) LOGDT(f, ##a)
- #define ap_printf_E(f, a...) LOGE(f, ##a)
- #define printf(f, a...) LOGD(f, ##a)
-
-
- typedef enum
- {
- eUser_TV_UNKNOW = 0,
- eUser_TV_ON,
- eUser_TV_STANDBY,
- eUser_TV_TO_ON,
- eUser_TV_TO_STANDBY
- }eUser_TV_Power_t;
-
- typedef enum
- {
- UsrHisenseTvSymphonyControl = 0, //TvSymphonyControl
- UsrHisenseTvSymphonySoundmode = 1, //Soundmode
- UsrHisenseTvSymphonySurroundmode = 2, //Surroundmode
- UsrHisenseTvSymphonyBasslevel = 3, //Dimmer Level
- UsrHisenseTvSymphonyTreblelevel = 4, //Bass Level
- UsrHisenseTvSymphonyDimmer = 5, //Treble Level
- UsrHisenseTvSymphony_max = UsrHisenseTvSymphonyDimmer,
- }eUserAppHisenseTvSymphony;
-
- /*${Events::UserAppEvt} ......................................................*/
- typedef struct
- {
- /* protected: */
- QEvt super;
-
- /* public: */
- //uint8_t scan;
- } UserAppEvt;
-
- typedef struct
- {
- QEvt super;
- QActive *pstSender;
- UPGRETURN_T *pUPGRETURN_T;
- } UserAppUpgradeEvt;
-
-
- typedef struct
- {
- QEvt super;
- UINT8 User_KeyCode;
- UINT8 User_KeyCodeSrc;
- stKeyInfo_t *pstKeyInfo_t;
- } UserAppKeyEvt;
-
-
-
- /*${User Key structure} ......................................................*/
- typedef struct
- {
- UINT8 UserKeyCode;
- UINT8 UserKeyCodeSrc;
- stKeyInfo_t stKeyInfo;
- } stUserKeyInfo_t;
-
- typedef struct
- {
- int switch_src_time;
- int power_off_time;
- int power_on_time;
- int burn_log_enable;
- } AutoSrcTest_t;
-
-
- typedef struct
- {
- int private_signal_number;
- int private_signal_repeat_time;
- } AutoRepeatSignalTest_t;
-
- enum mutestate
- {
- eMute_off = 0,
- eMute_on,
-
- };
-
- typedef enum
- {
- BT_CONNECT_READY,
- BT_CONNECT_SUCCESS,
- } BtHintType_e;
-
- typedef enum
- {
- VA_OFF = 0,
- VA_ON,
- } eVAStatus_t;
-
- enum channel_src //vic channel detect 0414
- {
- channel_RL = 0,
- channel_RL_Sub,
- channel_RL_RLs,
- channel_RL_RLs_Sub,
- channel_default
-
- };
-
- enum surround_sync //vic channel detect 0414
- {
- surr_L = 0,
- surr_R,
- surr_LR,
- surr_default
-
- };
-
- /*${AOs::UserApp_ctor} .......................................................*/
- void UserApp_ctor(void);
- int SendDataBySerial(UINT8 *data ,UINT8 cmd,UINT16 datalength);
- int Userapp_Get_System_Memory_Source(void);
-
-
-
- /*${AOs::MediaScanner_ctor} .......................................................*/
- //void IopScanner_ctor(void);
-
-
- QActive *UserApp_get(void);
-
- //===== daniel For Trace=====
- int UserApp_GetEQStatus(void);
- int UserApp_GetSoundModeStatus(void);
-
-
- /******************************************************************Customer define in here*********************************************************/
- #define CUSTOMER_SUN_SP10 0
- #define CUSTOMER_SUN_SP30 1
- #define CUSTOMER_ZY_SP10 2
-
-
- #define CUSTOMER_BOARD_TYPE CUSTOMER_ZY_SP10
-
- #define MODEL0 "Demo"
- #define MODEL1 "Pre-ES"
- #define MODEL2 "ES"
- #define MODEL3 "EVT"
- #define MODEL4 "DVT"
- #define MODEL5 "PVT"
- #define MODEL6 "MP"
-
- /********************************SUN SP10****************************************/
- #if (CUSTOMER_BOARD_TYPE == CUSTOMER_SUNP_SP10)
- #define MODE_NAME "Demo Sun_SP10"
- #define MODEL MODEL0
- #define VERSION_NUMBER "21102101"
-
- /********************************SUN SP30****************************************/
- #elif (CUSTOMER_BOARD_TYPE == CUSTOMER_SUN_SP30)
- #define MODE_NAME "Demo Sun_SP30"
- #define MODEL MODEL0
- #define VERSION_NUMBER "21102101"
-
- //=============GPIO pin function config ==============
- #define POWERON_GPIO_PIN (33)
- #define POWERON_3V3_GPIO_PIN (31) //gpio31不能使用
- #define EXT_BT_RESET_GPIO_PIN (51)
- #define POWERON_HDMI_1V3_GPIO_PIN (42)
- #define POWERON_WIRELESS_3V3_GPIO_PIN (43)
-
- /********************************SUN SP30****************************************/
- #elif (CUSTOMER_BOARD_TYPE == CUSTOMER_ZY_SP10)
- #define MODE_NAME "ZY_SP10"
- #define MODEL MODEL0
- #define VERSION_NUMBER "S V1.01"
- #define SDKVERSION "v1.3"
-
- //#define SUPPORT_XEFFECT
- #define SUPPORT_EXT_RF //RF_IA9QH5
-
- #ifdef SUPPORT_EXT_RF
- #define SYNC_UPGRADE
- //#define SUPPORT_TXRX_VER_CHECK
- #endif
-
- #define EXT_MCU_IF_CUSTOMER // for extern mcu solution use
- #define EXT_BT_UART
- #define SUPPORT_UART_MASTER //uart master mode
-
- #ifdef SUPPORT_UART_MASTER
- #define SUPPORT_UART_RINGBUFFER
- #endif
-
- #define UART_HY_PROTOCOL 0
- #define UART_POLK_DISH_PROTOCOL 1
-
- #define UART_PROTOCOL_TYPE UART_POLK_DISH_PROTOCOL
-
- //=============GPIO pin function config ==============
- #define POWERON_GPIO_PIN (44)
- #define POWERON_3V3_GPIO_PIN (31) //gpio31不能使用
- #define USB_VBUS_GPIO_PIN (21)
- #define EXT_BT_RESET_GPIO_PIN (51)
- #define EXT_BT_ENABLE_GPIO_PIN (54) //unused
- #define POWERON_HDMI_1V3_GPIO_PIN (42) //unused
- #define POWERON_WIRELESS_3V3_GPIO_PIN (43) //unused
- #define POWERON_LED_GPIO_PIN (14)
- #define DEBUG_CTL_GPIO (34)
-
- #else
- #define NAME "HY_MAIN/SP30N"
- #define MODEL MODEL0
- #define VERSION_NUMBER "21102101"
- #endif
-
- #endif /* UserApp_h */
复制代码
|