cancel
Showing results for 
Search instead for 
Did you mean: 

73X_GPIO.H Error?

javida14
Associate II
Posted on November 22, 2006 at 13:58

73X_GPIO.H Error?

2 REPLIES 2
javida14
Associate II
Posted on November 21, 2006 at 02:29

The ''73X_GPIO.H'' defines for the Modes do not agree with Table 16 (Port Bit Configuration Table) in the STR73x Microcontroller Reference Manual.

Could someone verify this. It appears that 0x0002 was not skip over, which is reserved.

/* GPIO Modes define */

#define GPIO_Mode_HI_AIN_TRI 0x0000 // 0x0001 barry

#define GPIO_Mode_IN_TRI_TTL 0x0001 // 0x0002 barry

#define GPIO_Mode_INOUT_WP 0x0003

#define GPIO_Mode_OUT_OD 0x0004

#define GPIO_Mode_OUT_PP 0x0005

#define GPIO_Mode_AF_OD 0x0006

#define GPIO_Mode_AF_PP 0x0007

Barry

anis23
Associate II
Posted on November 22, 2006 at 13:58

Hi javi,

There is no mistake in the .h file... in this file we just enumerate the different GPIO modes... We have 7 modes... we enumerate the modes from 1 to 7...

The settings of the modes is done in the function ''GPIO_Init()'' (file 73x_GPIO.c) by direct write into the GPIO->PCx registers according to the Table 16...

You can see in this function that the value 0x2 is never set to the PCx registers...

With Best Regards

AnisAS 🙂