diff --git a/src/hw/gpio/gpio.c b/src/hw/gpio/gpio.c
index 196ec97c0373b4bad22acef50c51312c2d100f71..f5cecd7de770462e014271079e1427b837785981 100644 (file)
--- a/src/hw/gpio/gpio.c
+++ b/src/hw/gpio/gpio.c
* Pre-Condition: The GPIO[7:0] should be configured as input
*
*****************************************************************************/
-Uint32 hwGpioReadDataBus( void )
+Uint8 hwGpioReadDataBus( void )
{
+ Uint32 temp;
Uint32* puchGpioInput = (Uint32*)GPIO_IN_DATA_REG;
- return *puchGpioInput;
+ temp = *puchGpioInput;
+ temp = temp & 0xff;
+ return ((Uint8)temp);
}
/******************************************************************************