summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbigmagic <[email protected]>2020-05-24 21:16:29 +0800
committerbigmagic <[email protected]>2020-05-24 21:16:29 +0800
commitaca518b6ca5eb4816911233b832ca0adcc8ea430 (patch)
treee592c06621e63397374018c6302d0dea512677b4
parentfc44e8f0aebc697613e4b861a40de81047fdb9b0 (diff)
remove fb clear function
-rw-r--r--bsp/raspberry-pi/raspi3-32/driver/drv_fb.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/bsp/raspberry-pi/raspi3-32/driver/drv_fb.c b/bsp/raspberry-pi/raspi3-32/driver/drv_fb.c
index f15fa12fb4..cc915351af 100644
--- a/bsp/raspberry-pi/raspi3-32/driver/drv_fb.c
+++ b/bsp/raspberry-pi/raspi3-32/driver/drv_fb.c
@@ -205,20 +205,6 @@ void clear_line(fb_t *fb, const int line)
}
-void clear(fb_t *fb, const uint32_t color)
-{
-
- uint32_t *addr = (uint32_t*) fb->addr;
- uint32_t i;
- for (i = 0; i < (fb->height * fb->width); i++)
- {
- *addr++ = color;
- }
- fb->x = 0;
- fb->y = 0;
-
-}
-
void fb_draw_char(fb_t *fb, char s)
{
unsigned char* addr = (unsigned char*) fb->addr;