Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kanndil committed Jan 12, 2025
1 parent 1b2f6c0 commit 504be9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fw/EF_GPIO8.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,9 @@ EF_DRIVER_STATUS EF_GPIO8_setIM(EF_GPIO8_TYPE_PTR gpio, uint32_t mask){
EF_DRIVER_STATUS status = EF_DRIVER_OK;

if (gpio == NULL){
status = EF_DRIVER_ERROR_PARAMETER; // Return EF_DRIVER_ERROR_PARAMETER if gpio is NULL
status = EF_DRIVER_ERROR_PARAMETER; // Return EF_DRIVER_ERROR_PARAMETER if gpio is NULL
}else {
gpio->IM |= mask; // Set the IM register with the required mask value
gpio->IM = mask; // Set the IM register with the required mask value
}

return status;
Expand Down

0 comments on commit 504be9c

Please sign in to comment.