[En-Nut-Discussion] change request for conf file for spi bus on at91sam7

Wiegelmann, Jörg Joerg.Wiegelmann at ces-tronics.de
Mon Aug 25 09:56:36 CEST 2008


Dear folks,

Because the SPI (IIC) Interface on the at91sam7 is definitively not working with the hardware oriented driver, my proposal is to enable the bitbanging driver for SAM7 in the configuration file "dev.nut". The bitbanging driver is working fine and could be used until the error in the original driver is fixed. The problem in the original driver is reading data from slave is not working (for example, reading the rtc-device on eir-board)

It is only necessary to change one (!!) line in the conf file dev.nut. Then it is possible to enable the bit banging driver in the configurator and assign the ports. 

 

Old version

 

        name = "nutdev_twbbif",

        brief = "Bit Banging Two Wire",

        description = "Tested on AT91 only.",

        requires = { "HW_MCU_AT91R40008" },    <<<<<<<<<<<

        provides = { "DEV_TWI" },

        sources = { "twbbif.c" },

 

 

New version

 

        name = "nutdev_twbbif",

        brief = "Bit Banging Two Wire",

        description = "Tested on AT91 only.",

        requires = { "HW_MCU_AT91" },  <<<<<<<<<<<<<

        provides = { "DEV_TWI" },

        sources = { "twbbif.c" },

        

 

What is your opinion about the change?

Best regards Joerg




More information about the En-Nut-Discussion mailing list