AnsweredAssumed Answered

Help with ad7747 capacitance -to digital converter

Question asked by OleHansen on Aug 8, 2012
Latest reply on Jan 17, 2013 by seanbrown

Hi all,

 

I am having an evaluation board from analog devices http://www.analog.com/en/analog-to-d...s/product.html. It is an 24-bit capatcitance -to digital converter with temperature sensor,. I am trying to setup the board in Linux (ubuntu).

 

In the Documentation the following lines should be defined in the board support file by adding an appropriate entry to i2c_board_info.

 

static struct i2c_board_info __initdata board_i2c_board_info[] = {

#if defined(CONFIG_AD7746) || defined(CONFIG_AD7746_MODULE)

        {

                I2C_BOARD_INFO("ad7746", 0x48),

        },

#endif

};

static int __init board_init(void)

{

        [--snip--]

        i2c_register_board_info(0, board_i2c_board_info,

                                ARRAY_SIZE(board_i2c_board_info));

        [--snip--]

        return 0;

}

arch_initcall(board_init);

 

 

 

Could anyone please tell me where (filename) the code should be placed.

Outcomes