From fcfab985179f1a336c52bdbc03ac587767124708 Mon Sep 17 00:00:00 2001 From: Tectu Date: Fri, 24 Aug 2012 02:35:28 +0200 Subject: [PATCH] added gdispDrawArc() and gdispFillArc() dummies --- include/gdisp.h | 2 ++ src/gdisp.c | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/include/gdisp.h b/include/gdisp.h index 61f851cc..9e856aa9 100644 --- a/include/gdisp.h +++ b/include/gdisp.h @@ -227,6 +227,8 @@ extern "C" { #endif void gdispDrawBox(coord_t x, coord_t y, coord_t cx, coord_t cy, color_t color); +void gdispDrawArc(coord_t x, coord_t y, coord_t radius, uint16_t start, uint16_t end, color_t color); +void gdispFillArc(coord_t x, coord_t y, coord_t radius, uint16_t start, uint16_t end, color_t color); /* Extra Text Functions */ #if GDISP_NEED_TEXT diff --git a/src/gdisp.c b/src/gdisp.c index ee2b98e4..6cf58561 100644 --- a/src/gdisp.c +++ b/src/gdisp.c @@ -28,6 +28,7 @@ #include "ch.h" #include "hal.h" #include "gdisp.h" +#include #ifndef _GDISP_C #define _GDISP_C @@ -658,6 +659,38 @@ void gdispDrawBox(coord_t x, coord_t y, coord_t cx, coord_t cy, color_t color) { } } +/* + * @brief Draw an arc. + * @pre The GDISP must be in powerOn or powerSleep mode. + * + * @param[in] x0,y0 The center point + * @param[in] radius The radius of the arc + * @param[in] start The start angle (0 to 360) + * @param[in] end The end angle (0 to 360) + * @param[in] color The color of the arc + * + * @api + */ +void gdispDrawArc(coord_t x, coord_t y, coord_t radius, uint16_t start, uint16_t end, color_t color) { + +} + +/* + * @brief Draw a filled arc. + * @pre The GDISP must be in powerOn or powerSleep mode. + * + * @param[in] x0,y0 The center point of the filled arc + * @param[in] radius The radius of the filled arc + * @param[in] start The start angle (0 to 360) + * @param[in] end The end angle (0 to 360) + * @param[in] color The color of the filled arc + * + * @api + */ +void gdispFillArc(coord_t x, coord_t y, coord_t radius, uint16_t start, uint16_t end, color_t color) { + +} + #if GDISP_NEED_TEXT || defined(__DOXYGEN__) /** * @brief Draw a text string.