From 007addd144bb6d50ad1e602e65c11540426a864f Mon Sep 17 00:00:00 2001 From: Annie_wang Date: Tue, 7 Jun 2022 20:29:28 +0800 Subject: [PATCH] update docs Signed-off-by: Annie_wang --- en/device-dev/driver/driver-platform-gpio-des.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/en/device-dev/driver/driver-platform-gpio-des.md b/en/device-dev/driver/driver-platform-gpio-des.md index 0314eb8595..4fff6790ca 100644 --- a/en/device-dev/driver/driver-platform-gpio-des.md +++ b/en/device-dev/driver/driver-platform-gpio-des.md @@ -89,7 +89,7 @@ The method for determining the GPIO pin number varies depending on the GPIO cont Call **GpioRead()** to read the level of a GPIO pin. ```c - int32_t GpioRead(uint16_t gpio, uint16_t \*val); + int32_t GpioRead(uint16_t gpio, uint16_t *val); ``` **Table 3** Description of GpioRead @@ -151,7 +151,7 @@ The method for determining the GPIO pin number varies depending on the GPIO cont Call **GpioSetIrq()** to set the ISR function for a GPIO pin. ```c - int32_t GpioSetIrq(uint16_t gpio, uint16_t mode, GpioIrqFunc func, void \*arg); + int32_t GpioSetIrq(uint16_t gpio, uint16_t mode, GpioIrqFunc func, void *arg); ``` **Table 5** Description of GpioSetIrq @@ -166,13 +166,13 @@ The method for determining the GPIO pin number varies depending on the GPIO cont | 0 | The operation is successful.| | Negative value| The operation failed.| - > ![icon-caution.gif](/public_sys-resources/icon-caution.gif) **CAUTION**
+ > ![icon-caution.gif](../public_sys-resources/icon-caution.gif) **CAUTION**
> Only one ISR function can be set for a GPIO pin. If **GpioSetIrq** is called repeatedly, the previous IRS function will be replaced. If the ISR function is no longer required, call **GpioUnsetIrq()** to cancel it. ```c - int32_t GpioUnsetIrq(uint16_t gpio, void \*arg); + int32_t GpioUnsetIrq(uint16_t gpio, void *arg); ``` **Table 6** Description of GpioUnsetIrq @@ -200,7 +200,7 @@ The method for determining the GPIO pin number varies depending on the GPIO cont | 0 | The operation is successful.| | Negative value| The operation failed.| - > ![icon-caution.gif](/public_sys-resources/icon-caution.gif) **CAUTION**
+ > ![icon-caution.gif](../public_sys-resources/icon-caution.gif) **CAUTION**
> The configured ISR function can be responded only after interrupts are enabled for the GPIO pin. You can call **GpioDisableIrq** to disable interrupts for the pin. -- GitLab