cancel
Showing results for 
Search instead for 
Did you mean: 

one more STR Library bug found! Routine GPIO_Init()

software2
Associate II
Posted on May 23, 2007 at 09:41

one more STR Library bug found! Routine GPIO_Init()

1 REPLY 1
software2
Associate II
Posted on May 17, 2011 at 09:43

WARNING! If you use PORT 8 and 9 of STR91x, your program will hang when trying to call GPIO_Init(). This is because GPIOIN and GPIOOUT registers of SCU unit, do not exist for ports 8 and 9, but GPIO_Init() will try to access them anyway!

Attached a text file containing a fixed version of the routine GPIO_Init only (#ifdef BUGS_STLIB_FIXED just to highlight the added lines of code).

Take care