From 7fbfde42aabbcd30cffba2fba35158236c0a6c6c Mon Sep 17 00:00:00 2001 From: inmarket Date: Sat, 25 May 2013 01:26:52 +1000 Subject: GOS module, for operating system independance GMISC fast floating point trig GMISC fast fixed point trig --- demos/modules/graph/main.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'demos/modules/graph/main.c') diff --git a/demos/modules/graph/main.c b/demos/modules/graph/main.c index 79935083..f74ecb5d 100644 --- a/demos/modules/graph/main.c +++ b/demos/modules/graph/main.c @@ -25,8 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "ch.h" -#include "hal.h" #include "gfx.h" #include "math.h" @@ -64,11 +62,7 @@ int main(void) { GHandle gh; uint16_t i; - halInit(); - chSysInit(); - - gdispInit(); - gdispClear(Black); + gfxInit(); gh = gwinCreateGraph(&g, 0, 0, gdispGetWidth(), gdispGetHeight()); @@ -92,7 +86,7 @@ int main(void) { gwinGraphDrawPoints(gh, data, sizeof(data)/sizeof(data[0])); while(TRUE) { - chThdSleepMilliseconds(100); + gfxSleepMilliseconds(100); } } -- cgit v1.2.3