
Daniel Gorsulowski wrote:
Jens Scharsig wrote:
soft_i2c.c: In function 'send_reset': soft_i2c.c:103: warning: unused variable 'pio'
--snip--
soft_i2c.c: In function 'read_byte': soft_i2c.c:259: warning: unused variable 'pio'
There are two ways to define I2C_xxxx macros: gpio or direct SoC access
if you are using gpio to define macros, I think you get this warnings.
If you are using direct SoC access (no gpio driver needed) there are no warnings e.g.
#define I2C_ACTIVE writel(AT91_PMX_AA_TWD, &pio->pioa.mddr); #define I2C_TRISTATE writel(AT91_PMX_AA_TWD, &pio->pioa.mder); and so on
atmel_dataflash_spi.c:25:2: warning: #warning Please update to use C structur SoC access ! atmel_usart.c:21:2: warning: #warning Please update to use C structur SoC access ! ohci-at91.c:30:2: warning: #warning Please update to use C structur SoC access !
We need some volunteers, which convert the drivers.
Regards Jens