Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

i2c_reg.h not automatically included in alt_sys_int.c

i am involving in a work of developing an i2c interface in niosii,Quantus version of 9.0.

The steps below is followed:

1 download i2c ip core from opencores.

2 design the avalon interface for i2c ip core.

3 generate and integrate the i2c component into SOPC.

4 design the HAL driver for i2c component.

5 integrate the HAL driver into niosii.

In step 5, when i finished the i2c_reg.h,i2c.h.i2c.c,etc,i build the nios ii project,no error occurred. the correct result shoold be that three sentences be contained in the file "alt_sys_int.c":

1># include "i2c.h"

2> I2C_INSTANCE( I2C_0, i2c_0);

3> I2C_INIT( I2C_0, i2c_0);

but when i opened the file "alt_sys_int.c",there were not such sentences.

i could not find out what the problem.

Any suggestion is warmly expected.
No RepliesBe the first to reply