本文整理汇总了C++中MCSDL_GPIO_SCL_SET_HIGH函数的典型用法代码示例。如果您正苦于以下问题:C++ MCSDL_GPIO_SCL_SET_HIGH函数的具体用法?C++ MCSDL_GPIO_SCL_SET_HIGH怎么用?C++ MCSDL_GPIO_SCL_SET_HIGH使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了MCSDL_GPIO_SCL_SET_HIGH函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: mcsdl_write_bits
static void mcsdl_write_bits(UINT32 wordData, int nBits)
{
int i;
MCSDL_GPIO_SCL_SET_LOW();
MCSDL_GPIO_SDA_SET_LOW();
for (i = 0; i < nBits; i++)
{
if (wordData & 0x80000000) {
MCSDL_GPIO_SDA_SET_HIGH();
}
else {
MCSDL_GPIO_SDA_SET_LOW();
}
mcsdl_delay(MCSDL_DELAY_3US);
MCSDL_GPIO_SCL_SET_HIGH();
mcsdl_delay(MCSDL_DELAY_3US);
MCSDL_GPIO_SCL_SET_LOW();
mcsdl_delay(MCSDL_DELAY_3US);
wordData <<= 1;
}
}
开发者ID:RolanDroid,项目名称:lge_MonsterKernel-lproj,代码行数:26,代码来源:mcs8000_download.c
示例2: mcsdl_scl_toggle_twice
// Change it from static void to void by matthew.kim
void mcsdl_scl_toggle_twice(void)
{
MCSDL_GPIO_SDA_SET_HIGH();
MCSDL_GPIO_SDA_SET_OUTPUT(1);
MCSDL_GPIO_SCL_SET_HIGH();
mcsdl_delay(MCSDL_DELAY_20US);
MCSDL_GPIO_SCL_SET_LOW();
mcsdl_delay(MCSDL_DELAY_20US);
MCSDL_GPIO_SCL_SET_HIGH();
mcsdl_delay(MCSDL_DELAY_20US);
MCSDL_GPIO_SCL_SET_LOW();
mcsdl_delay(MCSDL_DELAY_20US);
}
开发者ID:RolanDroid,项目名称:lge_MonsterKernel-lproj,代码行数:17,代码来源:mcs8000_download.c
示例3: mcsdl_read_32bits
static void mcsdl_read_32bits( UINT8 *pData )
{
int i, j;
MCSDL_GPIO_SCL_SET_LOW();
MCSDL_GPIO_SDA_SET_LOW();
MCSDL_GPIO_SDA_SET_INPUT();
for (i=3; i>=0; i--) {
pData[i] = 0;
for (j=0; j<8; j++) {
pData[i] <<= 1;
MCSDL_GPIO_SCL_SET_LOW();
mcsdl_delay(MCSDL_DELAY_1US);
MCSDL_GPIO_SCL_SET_HIGH();
mcsdl_delay(MCSDL_DELAY_1US);
if (MCSDL_GPIO_SDA_IS_HIGH())
pData[i] |= 0x01;
}
}
MCSDL_GPIO_SDA_SET_LOW();
MCSDL_GPIO_SDA_SET_OUTPUT(0);
}
开发者ID:RolanDroid,项目名称:lge_MonsterKernel-lproj,代码行数:30,代码来源:mcs8000_download.c
示例4: mcsdl_reboot_mcs
static void mcsdl_reboot_mcs(void)
{
MCSDL_VDD_SET_LOW();
MCSDL_CE_SET_LOW();
MCSDL_CE_SET_OUTPUT(0);
MCSDL_GPIO_SDA_SET_HIGH();
MCSDL_GPIO_SDA_SET_OUTPUT(1);
MCSDL_GPIO_SCL_SET_HIGH();
MCSDL_GPIO_SCL_SET_OUTPUT(1);
MCSDL_RESETB_SET_LOW();
MCSDL_RESETB_SET_OUTPUT(0);
mcsdl_delay(MCSDL_DELAY_25MS); /* Delay for Stable VDD */
MCSDL_VDD_SET_HIGH();
/*MCSDL_CE_SET_HIGH();*/
MCSDL_RESETB_SET_HIGH();
MCSDL_RESETB_SET_INPUT();
MCSDL_GPIO_SCL_SET_INPUT();
MCSDL_GPIO_SDA_SET_INPUT();
mcsdl_delay(MCSDL_DELAY_30MS); /* Delay '25 msec' */
}
开发者ID:suiye223,项目名称:p920-ICS-kernel,代码行数:28,代码来源:mms136_ISP_download.c
示例5: mcsdl_write_bits
static void mcsdl_write_bits(UINT32 wordData, int nBits)
{
int i;
MCSDL_GPIO_SCL_SET_LOW();
MCSDL_GPIO_SDA_SET_LOW();
for (i = 0; i < nBits; i++)
{
if (wordData & 0x80000000) {
MCSDL_GPIO_SDA_SET_HIGH();
}
else {
MCSDL_GPIO_SDA_SET_LOW();
}
/* LGE_CHANGE_S: E0 [email protected] [2011-11-09] */
mcsdl_delay(MCSDL_DELAY_3US);
MCSDL_GPIO_SCL_SET_HIGH();
mcsdl_delay(MCSDL_DELAY_3US);
MCSDL_GPIO_SCL_SET_LOW();
mcsdl_delay(MCSDL_DELAY_3US);
wordData <<= 1;
}
}
开发者ID:ochiman,项目名称:e405-kernel,代码行数:27,代码来源:mms100_ISP_download_e1.c
示例6: mcsdl_delay_test
void mcsdl_delay_test(INT32 nCount)
{
INT16 i;
MELFAS_DISABLE_BASEBAND_ISR(); /*Disable Baseband touch interrupt ISR*/
MELFAS_DISABLE_WATCHDOG_TIMER_RESET(); /* Disable Baseband watchdog timer*/
/*--------------------------------
// Repeating 'nCount' times
//--------------------------------*/
/*MCSDL_SET_GPIO_I2C();*/
MCSDL_GPIO_SCL_SET_OUTPUT(0);
MCSDL_GPIO_SDA_SET_OUTPUT(0);
MCSDL_RESETB_SET_OUTPUT(0);
MCSDL_GPIO_SCL_SET_HIGH();
for (i = 0; i < nCount; i++) {
#if 1
MCSDL_GPIO_SCL_SET_LOW();
mcsdl_delay(MCSDL_DELAY_20US);
MCSDL_GPIO_SCL_SET_HIGH();
mcsdl_delay(MCSDL_DELAY_100US);
#elif 0
MCSDL_GPIO_SCL_SET_LOW();
mcsdl_delay(MCSDL_DELAY_500US);
MCSDL_GPIO_SCL_SET_HIGH();
mcsdl_delay(MCSDL_DELAY_1MS);
#else
MCSDL_GPIO_SCL_SET_LOW();
mcsdl_delay(MCSDL_DELAY_25MS);
TKEY_INTR_SET_LOW();
mcsdl_delay(MCSDL_DELAY_45MS);
TKEY_INTR_SET_HIGH();
#endif
}
MCSDL_GPIO_SCL_SET_HIGH();
MELFAS_ROLLBACK_BASEBAND_ISR(); /* Roll-back Baseband touch interrupt ISR.*/
MELFAS_ROLLBACK_WATCHDOG_TIMER_RESET(); /* Roll-back Baseband watchdog timer */
}
开发者ID:suiye223,项目名称:p920-ICS-kernel,代码行数:41,代码来源:mms136_ISP_download.c
示例7: mcsdl_unselect_isp_mode
static void mcsdl_unselect_isp_mode(void)
{
int i;
MCSDL_RESETB_SET_LOW();
mcsdl_delay(MCSDL_DELAY_3US);
for (i = 0; i < 10; i++) {
MCSDL_GPIO_SCL_SET_HIGH();
mcsdl_delay(MCSDL_DELAY_3US);
MCSDL_GPIO_SCL_SET_LOW();
mcsdl_delay(MCSDL_DELAY_3US);
}
}
开发者ID:suiye223,项目名称:p920-ICS-kernel,代码行数:14,代码来源:mms136_ISP_download.c
示例8: mcsdl_reboot_mcs
static void mcsdl_reboot_mcs(void)
{
//--------------------------------------------
// Tkey module reset
//--------------------------------------------
MCSDL_VDD_SET_LOW();
//MCSDL_CE_SET_LOW();
//MCSDL_CE_SET_OUTPUT();
MCSDL_GPIO_SDA_SET_HIGH();
MCSDL_GPIO_SDA_SET_OUTPUT();
MCSDL_GPIO_SCL_SET_HIGH();
MCSDL_GPIO_SCL_SET_OUTPUT();
//MCSDL_SET_HW_I2C();
gpio_free(GPIO_TOUCH_I2C_SDA);
gpio_free(GPIO_TOUCH_I2C_SCL);
mdelay(500);
mcsdl_set_hw_i2c();
MCSDL_RESETB_SET_LOW();
MCSDL_RESETB_SET_OUTPUT();
mdelay(500); //mcsdl_delay(MCSDL_DELAY_60MS); // Delay for Stable VDD
MCSDL_RESETB_SET_INPUT();
MCSDL_VDD_SET_HIGH();
MCSDL_RESETB_SET_HIGH();
//MCSDL_CE_SET_HIGH();
mdelay(500); //mcsdl_delay(MCSDL_DELAY_60MS); // Delay '25 msec'
}
开发者ID:CenterTurkHD,项目名称:android_kernel_samsung_hugo,代码行数:41,代码来源:melfas_download.c
示例9: MFS_reboot
void MFS_reboot(void)
{
MCSDL_VDD_SET_LOW();
MCSDL_GPIO_SDA_SET_HIGH();
MCSDL_GPIO_SDA_SET_OUTPUT(1);
MCSDL_GPIO_SCL_SET_HIGH();
MCSDL_GPIO_SCL_SET_OUTPUT(1);
MCSDL_RESETB_SET_LOW();
MCSDL_RESETB_SET_OUTPUT(1);
MFS_ms_delay(25);
MCSDL_VDD_SET_HIGH();
MCSDL_RESETB_SET_HIGH();
MCSDL_RESETB_SET_INPUT();
MCSDL_GPIO_SCL_SET_INPUT();
MCSDL_GPIO_SDA_SET_INPUT();
MFS_ms_delay(25);
}
开发者ID:IjazCi,项目名称:android_kernel_samsung_kylexx,代码行数:24,代码来源:MMS100S_ISC_Updater_Customize.c
示例10: mcsdl_select_isp_mode
static void mcsdl_select_isp_mode(UINT8 ucMode)
{
int i;
UINT8 enteringCodeMassErase[16] = { 0,1,0,1,1,0,0,1,1,1,1,1,0,0,1,1 };
UINT8 enteringCodeSerialWrite[16] = { 0,1,1,0,0,0,1,0,1,1,0,0,1,1,0,1 };
UINT8 enteringCodeSerialRead[16] = { 0,1,1,0,1,0,1,0,1,1,0,0,1,0,0,1 };
UINT8 enteringCodeNextChipBypass[16] = { 1,1,0,1,1,0,0,1,0,0,1,0,1,1,0,1 };
UINT8 *pCode;
//------------------------------------
// Entering ISP mode : Part 1
//------------------------------------
if (ucMode == ISP_MODE_ERASE_FLASH) pCode = enteringCodeMassErase;
else if (ucMode == ISP_MODE_SERIAL_WRITE) pCode = enteringCodeSerialWrite;
else if (ucMode == ISP_MODE_SERIAL_READ) pCode = enteringCodeSerialRead;
else if (ucMode == ISP_MODE_NEXT_CHIP_BYPASS) pCode = enteringCodeNextChipBypass;
MCSDL_RESETB_SET_LOW();
MCSDL_GPIO_SCL_SET_LOW();
MCSDL_GPIO_SDA_SET_HIGH();
for (i = 0; i < 16; i++)
{
if (pCode[i] == 1)
MCSDL_RESETB_SET_HIGH();
else
MCSDL_RESETB_SET_LOW();
//start add delay for INT
mcsdl_delay(MCSDL_DELAY_3US);
//end delay for INT
MCSDL_GPIO_SCL_SET_HIGH(); mcsdl_delay(MCSDL_DELAY_3US);
MCSDL_GPIO_SCL_SET_LOW(); mcsdl_delay(MCSDL_DELAY_3US);
}
MCSDL_RESETB_SET_LOW();
//---------------------------------------------------
// Entering ISP mode : Part 2 - Only Mass Erase
//---------------------------------------------------
mcsdl_delay(MCSDL_DELAY_7US);
MCSDL_GPIO_SCL_SET_LOW();
MCSDL_GPIO_SDA_SET_HIGH();
if( ucMode == ISP_MODE_ERASE_FLASH ){
mcsdl_delay(MCSDL_DELAY_7US);
for(i=0; i<4; i++){
if( i==2 ) mcsdl_delay(MCSDL_DELAY_25MS);
else if( i==3 ) mcsdl_delay(MCSDL_DELAY_150US);
MCSDL_GPIO_SCL_SET_HIGH(); mcsdl_delay(MCSDL_DELAY_3US);
MCSDL_GPIO_SCL_SET_LOW(); mcsdl_delay(MCSDL_DELAY_7US);
}
}
MCSDL_GPIO_SDA_SET_LOW();
}
开发者ID:CL0SeY,项目名称:i957kernel,代码行数:63,代码来源:mcs8000_download.c
示例11: mcsdl_program_flash
static int mcsdl_program_flash( UINT8 *pDataOriginal, UINT16 unLength, INT8 IdxNum )
{
int i;
UINT8 *pData;
UINT8 ucLength;
UINT16 addr;
UINT32 header;
addr = 0;
pData = pDataOriginal;
ucLength = MELFAS_TRANSFER_LENGTH;
//kang
while ((addr*4) < (int)unLength)
{
if ((unLength - (addr*4)) < MELFAS_TRANSFER_LENGTH)
{
ucLength = (UINT8)(unLength - (addr * 4));
}
//--------------------------------------
// Select ISP Mode
//--------------------------------------
// start ADD DELAY
mcsdl_delay(MCSDL_DELAY_40US);
//end ADD DELAY
if(IdxNum > 0) {
mcsdl_select_isp_mode(ISP_MODE_NEXT_CHIP_BYPASS);
mcsdl_delay(MCSDL_DELAY_3US);
}
mcsdl_select_isp_mode( ISP_MODE_SERIAL_WRITE );
//---------------------------------------------
// Header
// Address[13ibts] <<1
//---------------------------------------------
header = ((addr&0x1FFF) << 1) | 0x0 ;
header = header << 14;
//Write 18bits
mcsdl_write_bits( header, 18 );
//start ADD DELAY
//mcsdl_delay(MCSDL_DELAY_5MS);
//end ADD DELAY
//---------------------------------
// Writing
//---------------------------------
// addr += (UINT16)ucLength;
addr +=1;
#if MELFAS_ENABLE_DBG_PROGRESS_PRINT
printk("#");
#endif
mcsdl_program_flash_part(pData);
pData += ucLength;
//---------------------------------------------
// Tail
//---------------------------------------------
MCSDL_GPIO_SDA_SET_HIGH();
//kang
mcsdl_delay(MCSDL_DELAY_40US);
for (i = 0; i < 6; i++)
{
if (i == 2)
{
mcsdl_delay(MCSDL_DELAY_20US);
}
else if (i == 3)
{
mcsdl_delay(MCSDL_DELAY_40US);
}
MCSDL_GPIO_SCL_SET_HIGH(); mcsdl_delay(MCSDL_DELAY_10US);
MCSDL_GPIO_SCL_SET_LOW(); mcsdl_delay(MCSDL_DELAY_10US);
}
MCSDL_GPIO_SDA_SET_LOW();
mcsdl_unselect_isp_mode();
//start ADD DELAY
mcsdl_delay(MCSDL_DELAY_300US);
//end ADD DELAY
}
return MCSDL_RET_SUCCESS;
}
开发者ID:CL0SeY,项目名称:i957kernel,代码行数:99,代码来源:mcs8000_download.c
注:本文中的MCSDL_GPIO_SCL_SET_HIGH函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论