Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1002 B

  1. //
  2. // MODULE : BT856.C
  3. // PURPOSE : BrookTree BT856 Initialization code
  4. // AUTHOR : JBS Yadawa
  5. // CREATED : 7/20/96
  6. //
  7. // Copyright (C) 1996 SGS-THOMSON Microelectronics
  8. //
  9. //
  10. // REVISION HISTORY :
  11. //
  12. // DATE :
  13. //
  14. // COMMENTS :
  15. //
  16. #include "stdefs.h"
  17. #include "i2c.h"
  18. #include "bt856.h"
  19. #define BTI2CADR 0x88
  20. #define I2CBYTECNT 10
  21. static BYTE StdSeq[8][I2CBYTECNT] = {{0xce, 0, 0, 0, 0, 0, 0, 0, 0xF2, 0x04},
  22. {0xce, 0, 0, 0, 0, 0, 0, 0, 0x02, 0x10},
  23. {0xce, 0, 0, 0, 0, 0, 0, 0, 0x02, 0x00},
  24. {0xce, 0, 0, 0, 0, 0, 0, 0, 0x0A, 0x00},
  25. {0xce, 0, 0, 0, 0, 0, 0, 0, 0xF6, 0x04},
  26. {0xce, 0, 0, 0, 0, 0, 0, 0, 0x16, 0x10},
  27. {0xce, 0, 0, 0, 0, 0, 0, 0, 0x06, 0x00},
  28. {0xce, 0, 0, 0, 0, 0, 0, 0, 0x0E, 0x00}};
  29. void FARAPI BTInitEnc(void)
  30. {
  31. I2CInitBus();
  32. I2CSettleBus();
  33. }
  34. void FARAPI BTSetVideoStandard(VSTANDARD std)
  35. {
  36. I2CSendSeq(BTI2CADR,I2CBYTECNT, StdSeq[std]);
  37. }
  38.