This commit is contained in:
wgzAIIT
2022-07-07 18:58:12 +08:00
1940 changed files with 618027 additions and 450 deletions
@@ -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;
@@ -118,4 +118,3 @@ bool k210_gpio_get_value(uint32_t io)
return false;
}
}
@@ -33,7 +33,7 @@
#include "riscv_internal.h"
#include "hardware/k210_memorymap.h"
typedef struct _k210_soft_reset
typedef struct _k210_soft_reset
{
uint32_t soft_reset : 1;
uint32_t reserved : 31;
@@ -61,4 +61,3 @@ void up_systemreset(void)
for (; ; );
}