summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorJiaojinxing <jiaojinxing1987@gmail.com>2018-01-24 12:45:56 (GMT)
committer Jiaojinxing <jiaojinxing1987@gmail.com>2018-01-24 12:45:56 (GMT)
commit9baaa6bdede6ee9e4cd489a6cbcb68d796f61e4e (patch)
tree6f6dbb3aaf356570f0b83ea8f07295078ab01048
parente5473e5b090b45fd26d20e5368d2c5c4387b04f9 (diff)
downloadbspam335x-9baaa6bdede6ee9e4cd489a6cbcb68d796f61e4e.zip
bspam335x-9baaa6bdede6ee9e4cd489a6cbcb68d796f61e4e.tar.gz
bspam335x-9baaa6bdede6ee9e4cd489a6cbcb68d796f61e4e.tar.bz2
Update GPIO driver version.
-rw-r--r--.cproject1
-rw-r--r--SylixOS/driver/gpio/am335x_gpio.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/.cproject b/.cproject
index f2530fb..dbbf90c 100644
--- a/.cproject
+++ b/.cproject
@@ -24,4 +24,5 @@
<pathentry base-ref="bspam335x" include="C:/ACOINFO/RealEvo/compiler/arm-sylixos-toolchain/arm-sylixos-eabi/include" kind="inc" path="" system="true"/>
<pathentry base-ref="bspam335x" include="C:/ACOINFO/RealEvo/compiler/arm-sylixos-toolchain/lib/gcc/arm-sylixos-eabi/4.9.3/include" kind="inc" path="" system="true"/>
</storageModule>
+ <storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
</cproject>
diff --git a/SylixOS/driver/gpio/am335x_gpio.c b/SylixOS/driver/gpio/am335x_gpio.c
index 76524f7..a5cbc84 100644
--- a/SylixOS/driver/gpio/am335x_gpio.c
+++ b/SylixOS/driver/gpio/am335x_gpio.c
@@ -220,7 +220,7 @@ static VOID __am335xGpioSet (PLW_GPIO_CHIP pGpioChip, UINT uiOffset, INT iVa
** 全局变量:
** 调用模块:
*********************************************************************************************************/
-static INT __am335xGpioSetupIrq (PLW_GPIO_CHIP pGpioChip, UINT uiOffset, BOOL bIsLevel, UINT uiType)
+static ULONG __am335xGpioSetupIrq (PLW_GPIO_CHIP pGpioChip, UINT uiOffset, BOOL bIsLevel, UINT uiType)
{
__PAM335X_GPIO_CONTROLER pGpioControler = &_G_am335xGpioControlers[uiOffset / 32];
@@ -280,6 +280,7 @@ static irqreturn_t __am335xGpioSvrIrq (PLW_GPIO_CHIP pGpioChip, UINT uiOffset
*********************************************************************************************************/
static LW_GPIO_CHIP _G_am335xGpioChip = {
.GC_pcLabel = "AM335X GPIO0",
+ .GC_ulVerMagic = LW_GPIO_VER_MAGIC,
.GC_pfuncRequest = LW_NULL,
.GC_pfuncFree = __am335xGpioFree,