fpioa_get_io_by_function change to k210_fpioa_get_io_by_function

This commit is contained in:
wgzAIIT 2022-07-06 10:45:26 +08:00
parent 92960a1c5d
commit 82af485b5f
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@
void k210_gpio_set_direction(uint32_t io, gpio_drive_mode_t mode)
{
DEBUGASSERT(io < K210_GPIO_MAX_PINNO);
int io_number = fpioa_get_io_by_function(K210_IO_FUNC_GPIO0 + io);
int io_number = k210_fpioa_get_io_by_function(K210_IO_FUNC_GPIO0 + io);
DEBUGASSERT(io_number >= 0);
fpioa_pull_t pull = FPIOA_PULL_NONE;