gonzui


Format: Advanced Search

SearchGoogle itResults 1 - 1 of 1 for funcall:IIC_IICC from tkernel_2/monitor/hwdepend/tef_em1d/src/config.c (0.00 seconds)
tkernel_2
monitor/hwdepend/tef_em1d/src/config.c - 21.7KB - 669 lines
164:         /* generate start condition */
165:         out_w(IIC_IICC(IIC2), in_w(IIC_IICC(IIC2)) & ~IICC_ACKE);
166:         out_w(IIC_IICC(IIC2), in_w(IIC_IICC(IIC2)) |  IICC_STT);
167: 
194: /* generate stop condition */ 195: out_w(IIC_IICC(IIC2), in_w(IIC_IICC(IIC2)) | IICC_SPT); 196:
232: if (attr & IIC_TOPDATA) { 233: out_w(IIC_IICC(IIC2), in_w(IIC_IICC(IIC2)) & ~IICC_WTIM); 234: out_w(IIC_IICC(IIC2), in_w(IIC_IICC(IIC2)) | IICC_ACKE); 235: }
237: /* instruct the reception of data */ 238: out_w(IIC_IICC(IIC2), in_w(IIC_IICC(IIC2)) | IICC_WREL); 239: er = wait_int();
246: if ((attr & IIC_LASTDATA) || er < E_OK) { 247: out_w(IIC_IICC(IIC2), in_w(IIC_IICC(IIC2)) | IICC_WTIM); 248: out_w(IIC_IICC(IIC2), in_w(IIC_IICC(IIC2)) & ~IICC_ACKE); 249: out_w(IIC_IICC(IIC2), in_w(IIC_IICC(IIC2)) | IICC_WREL); 250: wait_int();
261: /* initialization default */ 262: out_w(IIC_IICC(IIC2), 0); // stop completely 263: out_w(IIC_IICCL(IIC2), IICCL_SMC | IICCL_DFC); // fast mode + filter 264: out_w(IIC_IICF(IIC2), IICF_STCEN | IICF_IICRSV);// forcibly start transmission 265: out_w(IIC_IICC(IIC2), IICC_IICE | IICC_WTIM); // IIC mode, 9bit mode 266: clear_int();
276: { 277: out_w(IIC_IICC(IIC2), 0); // stop completely 278: return;