📄 pio.~h
字号:
#define NIM_RESET_PIN 1 // GPC 1#endif // #if (DECODER_SYSTEM == DVD956A_EVAL)///////////////////////////////////////////////////////////////////////////////// [8] S/W expand GPIO control pin -- LLY2.16#if (DECODER_SYSTEM == DVD909S_EVAL)#define KS_DATA_GRP GPIO_A#define GPIO_KS_DATA 18 // GPA 18#define KS_CLK_GRP GPIO_A#define GPIO_KS_CLK 16 // GPA 16#define KS_DET0_GRP GPIO_B#define GPIO_KS_DET0 10 // GPB 10#define KS_DET1_GRP GPIO_B#define GPIO_KS_DET1 11 // GPB 11#define KS_LATCH0_GRP GPIO_B#define GPIO_KS_LATCH0 1 // GPB 1#define KS_LATCH1_GRP GPIO_B#define GPIO_KS_LATCH1 14 // GPB 14#endif // #if (DECODER_SYSTEM == DVD909R_EVAL)#if (DECODER_SYSTEM == DVD909R_EVAL)#ifndef CT951_PLATFORM#define KS_DATA_GRP GPIO_A#define GPIO_KS_DATA 18 // GPA 18#define KS_CLK_GRP GPIO_A#define GPIO_KS_CLK 16 // GPA 16// LLY2.18, using original GPIO pin for key detect 0/1 while not support CCIR656#ifdef SUPPORT_CCIR656#define KS_DET0_GRP GPIO_A#define GPIO_KS_DET0 28 // GPA 28#define KS_DET1_GRP GPIO_A#define GPIO_KS_DET1 29 // GPA 29#else // #ifdef SUPPORT_CCIR656#define KS_DET0_GRP GPIO_B#define GPIO_KS_DET0 10 // GPB 10#define KS_DET1_GRP GPIO_B#define GPIO_KS_DET1 11 // GPB 11#endif // #ifdef SUPPORT_CCIR656#define KS_LATCH0_GRP GPIO_B#define GPIO_KS_LATCH0 1 // GPB 1#define KS_LATCH1_GRP GPIO_B#define GPIO_KS_LATCH1 14 // GPB 14#else // #ifndef CT951_PLATFORM#define KS_DATA_GRP GPIO_A#define GPIO_KS_DATA 18 // Not used#define KS_CLK_GRP GPIO_A#define GPIO_KS_CLK 16 // Not used// LLY2.18, using original GPIO pin for key detect 0/1 while not support CCIR656#ifdef SUPPORT_CCIR656#define KS_DET0_GRP GPIO_B#define GPIO_KS_DET0 15 // Not used#define KS_DET1_GRP GPIO_B#define GPIO_KS_DET1 16 // Not used#else // #ifdef SUPPORT_CCIR656#define KS_DET0_GRP GPIO_B#define GPIO_KS_DET0 15 // Not used#define KS_DET1_GRP GPIO_B#define GPIO_KS_DET1 16 // Not used#endif // #ifdef SUPPORT_CCIR656#define KS_LATCH0_GRP GPIO_B#define GPIO_KS_LATCH0 17 // Not used#define KS_LATCH1_GRP GPIO_B#define GPIO_KS_LATCH1 18 // Not used#define USB_POWER_GRP GPIO_A#define PIN_USB_POWER 29 // GPA 12#define POWER_LED GPIO_A#define GPIO_PLED 28#endif // #ifndef CT951_PLATFORM#endif // #if (DECODER_SYSTEM == DVD909R_EVAL)// LLY2.16, add for HCN system board#if (DECODER_SYSTEM == STB219_HCN)#define KS_DATA_GRP GPIO_A#define GPIO_KS_DATA 18 // GPA 18#define KS_CLK_GRP GPIO_A#define GPIO_KS_CLK 16 // GPA 16#define KS_DET0_GRP GPIO_A#define GPIO_KS_DET0 28 // GPA 28#define KS_DET1_GRP GPIO_A#define GPIO_KS_DET1 29 // GPA 29#define KS_LATCH0_GRP GPIO_B#define GPIO_KS_LATCH0 1 // GPB 1#define KS_LATCH1_GRP GPIO_B#define GPIO_KS_LATCH1 14 // GPB 14#endif // #if (DECODER_SYSTEM == STB219_HCN)// LLY2.16, add for YHI system board#if (DECODER_SYSTEM == STB219_YHI)#define KS_DATA_GRP GPIO_A#define GPIO_KS_DATA 18 // GPA 18#define KS_CLK_GRP GPIO_A#define GPIO_KS_CLK 16 // GPA 16#define KS_DET0_GRP GPIO_A#define GPIO_KS_DET0 28 // GPA 28#define KS_DET1_GRP GPIO_A#define GPIO_KS_DET1 29 // GPA 29#define KS_LATCH0_GRP GPIO_B#define GPIO_KS_LATCH0 1 // GPB 1#define KS_LATCH1_GRP GPIO_B#define GPIO_KS_LATCH1 14 // GPB 14#endif // #if (DECODER_SYSTEM == STB219_YHI)// LLY2.60, add for CT909P-A 128 pin system board#if (DECODER_SYSTEM == DVD909P_A_EVAL)#define KS_DATA_GRP GPIO_C#define GPIO_KS_DATA 1 // GPC 1#define KS_CLK_GRP GPIO_C#define GPIO_KS_CLK 2 // GPC 2#define KS_DET0_GRP GPIO_C#define GPIO_KS_DET0 0 // GPC 0#define KS_DET1_GRP GPIO_C#define GPIO_KS_DET1 5 // GPC 5#define KS_LATCH0_GRP GPIO_C#define GPIO_KS_LATCH0 3 // GPC 3#define KS_LATCH1_GRP GPIO_C#define GPIO_KS_LATCH1 4 // GPC 4#endif // #if (DECODER_SYSTEM == DVD909P_A_EVAL)// LLY2.60, add for CT909P-B 128 pin system board#if (DECODER_SYSTEM == DVD909P_B_EVAL)#define KS_DATA_GRP GPIO_C#define GPIO_KS_DATA 1 // GPC 1#define KS_CLK_GRP GPIO_C#define GPIO_KS_CLK 2 // GPC 2#define KS_DET0_GRP GPIO_C#define GPIO_KS_DET0 0 // GPC 0#define KS_DET1_GRP GPIO_C#define GPIO_KS_DET1 5 // GPC 5#define KS_LATCH0_GRP GPIO_C#define GPIO_KS_LATCH0 3 // GPC 3#define KS_LATCH1_GRP GPIO_C#define GPIO_KS_LATCH1 4 // GPC 4#endif // #if (DECODER_SYSTEM == DVD909P_B_EVAL)////////////////////////////////////////////////////////////////////////////// [9] USB power control pin -- LLY2.16#if (DECODER_SYSTEM == STB219_YHI)#define USB_POWER_GRP GPIO_A#define PIN_USB_POWER 12 // GPA 12#endif // #if (DECODER_SYSTEM == STB219_YHI)// LLY2.55, porting CoCo's code to define USB power control pin for 952A (GPA 29)// LLY2.76, modify the pin as GPG 4 base on J100-HCC suggestion.#if (DECODER_SYSTEM == DMP952A_EVAL)#define USB_POWER_GRP GPIO_G#define PIN_USB_POWER 4 // GPG 4#endif // #if (DECODER_SYSTEM == DMP952A_EVAL)//SYuan 2.88: USB POWER pin is change from GPG 4 to GPE 1#if (DECODER_SYSTEM == DMP952B_EVAL)#define USB_POWER_GRP GPIO_E#define PIN_USB_POWER 1 // GPE 1#endif // #if (DECODER_SYSTEM == DMP952B_EVAL)// LLY2.60, add for CT909P-A 128 pin system board#if (DECODER_SYSTEM == DVD909P_A_EVAL)#define USB_POWER_GRP GPIO_EXP#define PIN_USB_POWER 4 // Expand GPIO 4#endif // #if (DECODER_SYSTEM == DVD909P_A_EVAL)// LLY2.60, add for CT909P-B 128 pin system board#if (DECODER_SYSTEM == DVD909P_B_EVAL)#define USB_POWER_GRP GPIO_EXP#define PIN_USB_POWER 4 // Expand GPIO 4#endif // #if (DECODER_SYSTEM == DVD909P_B_EVAL)// LLY2.60, add for CT956A system#if (DECODER_SYSTEM == DMP956A_EVAL)// 5-pin USB : GPE[1]; 4-pin USB: GPE[0]//wyc2.78-909P,#define USB_POWER_GRP GPIO_E//#define PIN_USB_POWER 1 // GPE 1#define PIN_USB_POWER 0 // GPE 0#endif // #if (DECODER_SYSTEM == DMP956A_EVAL)// LLY2.60, add for CT955A system#if (DECODER_SYSTEM == DMP955A_EVAL)#define USB_POWER_GRP GPIO_E//#define PIN_USB_POWER 1 // GPE 1#define PIN_USB_POWER 0 // GPE 0#endif // #if (DECODER_SYSTEM == DMP955A_EVAL)#if (DECODER_SYSTEM == DVD956A_DEV)#define USB_POWER_GRP GPIO_G#define PIN_USB_POWER 4 // GPE 4#endif // #if (DECODER_SYSTEM == DMP955A_EVAL)// LLY2.76, always enable USB power control by IO feature if define these pin.#if defined(PIN_USB_POWER) && defined(USB_POWER_GRP)#define SUPPORT_USB_POWER_BY_IO#endif // #if defined(PIN_USB_POWER) && defined(USB_POWER_GRP)////////////////////////////////////////////////////////////////////////// [10] NIM I2C data/sclk pin -- LLY2.16#if (DECODER_SYSTEM == DVD909S_EVAL)#define NIM_I2C_GRP GPIO_B#define NIM_I2C_SCLKPIN 15 // GPB 15#define NIM_I2C_DATPIN 16 // GPB 16#endif // #if (DECODER_SYSTEM == DVD909S_EVAL)#if (DECODER_SYSTEM == DVD909R_EVAL)#define NIM_I2C_GRP GPIO_B#define NIM_I2C_SCLKPIN 15 // GPB 15#define NIM_I2C_DATPIN 16 // GPB 16#endif // #if (DECODER_SYSTEM == DVD909R_EVAL)#if (DECODER_SYSTEM == STB219_HCN)#define NIM_I2C_GRP GPIO_B#define NIM_I2C_SCLKPIN 15 // GPB 15#define NIM_I2C_DATPIN 16 // GPB 16#endif // #if (DECODER_SYSTEM == STB219_HCN)#if (DECODER_SYSTEM == STB219_YHI)#define NIM_I2C_GRP GPIO_B#define NIM_I2C_SCLKPIN 15 // GPB 15#define NIM_I2C_DATPIN 16 // GPB 16#endif // #if (DECODER_SYSTEM == STB219_YHI)#if (DECODER_SYSTEM == DVD956A_DEV) // Aron2.52#define NIM_I2C_GRP GPIO_B#define NIM_I2C_SCLKPIN 1 // GPB 1#define NIM_I2C_DATPIN 3 // GPB 3#endif // #if (DECODER_SYSTEM == DVD956A_DEV)#if (DECODER_SYSTEM == DMP952A_EVAL) // LLY2.55#define NIM_I2C_GRP GPIO_B#define NIM_I2C_SCLKPIN 1 // GPB 1#define NIM_I2C_DATPIN 3 // GPB 3#endif // #if (DECODER_SYSTEM == DMP952A_EVAL)#if (DECODER_SYSTEM == DMP952B_EVAL) // SYuan 2.88#define NIM_I2C_GRP GPIO_B#define NIM_I2C_SCLKPIN 1 // GPB 1#define NIM_I2C_DATPIN 3 // GPB 3#endif // #if (DECODER_SYSTEM == DMP952B_EVAL)// LLY2.60, add for DVD909P-A 128 pin system board#if (DECODER_SYSTEM == DVD909P_A_EVAL)#define NIM_I2C_GRP GPIO_B#define NIM_I2C_SCLKPIN 1 // GPB 1#define NIM_I2C_DATPIN 3 // GPB 3#endif // #if (DECODER_SYSTEM == DVD909P_A_EVAL)// LLY2.60, add for DVD909P-B 128 pin system board#if (DECODER_SYSTEM == DVD909P_B_EVAL)#define NIM_I2C_GRP GPIO_B#define NIM_I2C_SCLKPIN 1 // GPB 1#define NIM_I2C_DATPIN 3 // GPB 3#endif // #if (DECODER_SYSTEM == DVD909P_B_EVAL)// LLY2.60, add for CT956A system#if (DECODER_SYSTEM == DMP956A_EVAL)#define NIM_I2C_GRP GPIO_B#define NIM_I2C_SCLKPIN 1 // GPB 1#define NIM_I2C_DATPIN 3 // GPB 3#endif // #if (DECODER_SYSTEM == DMP956A_EVAL)///////////////////////////////////////////////////////////////////////////////// [11] NIM power control pin#if (DECODER_SYSTEM == DMP956A_EVAL)#define NIM_POWER_GRP GPIO_E#define NIM_POWER_PIN 5 // GPE 5#endif#ifdef NIM_POWER_PIN#define SUPPORT_CTRL_NIM_POWER#endif////////////////////////////////////////////////////////////////// [12] Top/ OpenClose control pin -- LLY2.16#define TOP_OPENCLOSE_GRP GPIO_A#define PIN_TOP_OPENCLOSE 16 // GPA 16///////////////////////////////////////////////////////////////// [13] Slot-in control pin -- LLY2.16#define SLOT_IN_GRP GPIO_EXP // Expand GPIO 14#define PIN_SLOT_IN 14//////////////////////////////////////////////////////////////// [14] A/V control pin -- LLY2.32#define AV_IN_GRP GPIO_EXP#define AV_IN_PIN 12//Aron20060110// ********************************************************************* //// RTC Pin Usage Define Area// ********************************************************************* //#if (DECODER_SYSTEM == DVD909R_EVAL)#define GRP_RTCRST GPIO_A#define PIN_RTCRST 30#define GRP_RTCCLK GPIO_A#define PIN_RTCCLK 21#define GRP_RTCSDA GPIO_A#define PIN_RTCSDA 20#endif // #if (DECODER_SYSTEM == DVD909R_EVAL)#if (DECODER_SYSTEM == DMP952A_EVAL)#define GRP_RTCRST GPIO_E#define PIN_RTCRST 0#define GRP_RTCCLK GPIO_B#define PIN_RTCCLK 1#define GRP_RTCSDA GPIO_B#define PIN_RTCSDA 3#endif // #if (DECODER_SYSTEM == DMP952A_EVAL)#if (DECODER_SYSTEM == DMP952B_EVAL) //SYuan 2.88#define GRP_RTCRST GPIO_E#define PIN_RTCRST 0#define GRP_RTCCLK GPIO_B#define PIN_RTCCLK 1#define GRP_RTCSDA GPIO_B#define PIN_RTCSDA 3#endif // #if (DECODER_SYSTEM == DMP952B_EVAL)// LLY2.60, add for CT956A system#if (DECODER_SYSTEM == DMP956A_EVAL)#define GRP_RTCRST GPIO_A // GPA 20#define PIN_RTCRST 20#define GRP_RTCCLK GPIO_B // GPB 1#define PIN_RTCCLK 1#define GRP_RTCSDA GPIO_B // GPB 3#define PIN_RTCSDA 3#endif // #if (DECODER_SYSTEM == DMP956A_EVAL)// LLY2.60, add for CT955A system#if (DECODER_SYSTEM == DMP955A_EVAL)#define GRP_RTCRST GPIO_A // GPA 20#define PIN_RTCRST 20#define GRP_RTCCLK GPIO_B // GPB 1#define PIN_RTCCLK 1#define GRP_RTCSDA GPIO_B // GPB 3#define PIN_RTCSDA 3#endif // #if (DECODER_SYSTEM == DMP955A_EVAL)// LLY2.71, porting CoCo's code to add photo Rotate detection pin// *********************************************************************// Photo Rotate Detection Pin// *********************************************************************#if (DECODER_SYSTEM == DMP952A_EVAL)//++CoCo2.71, for Photo Rotate detection#define GRP_AUTOROTATE GPIO_E#define PIN_AUTOROTATE 0#endif // #if (DECODER_SYSTEM == DMP952A_EVAL)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -