Exemple #1
0
static void td043_init(void)
{	
	td043_spi_wr(0x00,0xaf); 
	td043_spi_wr(0x01,0x30);
	td043_spi_wr(0x02,0x40);
	td043_spi_wr(0x0e,0x5f); 
	td043_spi_wr(0x0f,0xa4);
	td043_spi_wr(0x0d,0x00);
	td043_spi_wr(0x02,0x43);
	td043_spi_wr(0x0a,0x28);
	td043_spi_wr(0x10,0x41);
}
Exemple #2
0
static void td043_init(__u32 sel)
{
	td043_spi_wr(sel,0x02,0x07); 
    td043_spi_wr(sel,0x03,0x5f); 
    td043_spi_wr(sel,0x04,0x17); 
    td043_spi_wr(sel,0x05,0x20); 
    td043_spi_wr(sel,0x06,0x08); 
    td043_spi_wr(sel,0x07,0x20); 
    td043_spi_wr(sel,0x08,0x20); 
    td043_spi_wr(sel,0x09,0x20); 
    td043_spi_wr(sel,0x0a,0x20); 
    td043_spi_wr(sel,0x0b,0x20); 
    td043_spi_wr(sel,0x0c,0x20); 
    td043_spi_wr(sel,0x0d,0x20); 
    td043_spi_wr(sel,0x0e,0x10); 
    td043_spi_wr(sel,0x0f,0x10); 
    td043_spi_wr(sel,0x10,0x10); 
    td043_spi_wr(sel,0x11,0x15); 
    td043_spi_wr(sel,0x12,0xaa); 
    td043_spi_wr(sel,0x13,0xff); 
    td043_spi_wr(sel,0x14,0x86); 
    td043_spi_wr(sel,0x15,0x8e); 
    td043_spi_wr(sel,0x16,0xd6); 
    td043_spi_wr(sel,0x17,0xfe); 
    td043_spi_wr(sel,0x18,0x28); 
    td043_spi_wr(sel,0x19,0x52); 
    td043_spi_wr(sel,0x1a,0x7c); 
    td043_spi_wr(sel,0x1b,0xe9); 
    td043_spi_wr(sel,0x1c,0x42); 
    td043_spi_wr(sel,0x1d,0x88); 
    td043_spi_wr(sel,0x1e,0xb8); 
    td043_spi_wr(sel,0x1f,0xff); 
    td043_spi_wr(sel,0x20,0xf0);  
}