ch32f1: Static correctness for for ch32f1_buffer_clear
This commit is contained in:
parent
7e7bc3789c
commit
e6075d4bd3
|
@ -276,7 +276,7 @@ static int ch32f1_upload(target *t, uint32_t dest, const void *src, uint32_t off
|
||||||
\fn ch32f1_buffer_clear
|
\fn ch32f1_buffer_clear
|
||||||
\brief clear the write buffer
|
\brief clear the write buffer
|
||||||
*/
|
*/
|
||||||
int ch32f1_buffer_clear(target *t)
|
static int ch32f1_buffer_clear(target *t)
|
||||||
{
|
{
|
||||||
volatile uint32_t sr;
|
volatile uint32_t sr;
|
||||||
SET_CR(FLASH_CR_FTPG_CH32); // Fast page program 4-
|
SET_CR(FLASH_CR_FTPG_CH32); // Fast page program 4-
|
||||||
|
|
Loading…
Reference in New Issue