ch32f1: Static correctness for for ch32f1_buffer_clear

This commit is contained in:
dragonmux 2022-07-30 10:03:42 +01:00 committed by Piotr Esden-Tempski
parent 7e7bc3789c
commit e6075d4bd3
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ static int ch32f1_upload(target *t, uint32_t dest, const void *src, uint32_t off
\fn ch32f1_buffer_clear
\brief clear the write buffer
*/
int ch32f1_buffer_clear(target *t)
static int ch32f1_buffer_clear(target *t)
{
volatile uint32_t sr;
SET_CR(FLASH_CR_FTPG_CH32); // Fast page program 4-