aboutsummaryrefslogtreecommitdiffstats
path: root/demos/modules/gadc/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/modules/gadc/main.c')
-rw-r--r--demos/modules/gadc/main.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/demos/modules/gadc/main.c b/demos/modules/gadc/main.c
index f506a473..4acf1da7 100644
--- a/demos/modules/gadc/main.c
+++ b/demos/modules/gadc/main.c
@@ -34,11 +34,8 @@
*
* It also demonstrates how to write your own custom GWIN window type.
*/
-#include "ch.h"
-#include "hal.h"
-#include "chprintf.h"
-
#include "gfx.h"
+#include "chprintf.h"
/* Include our custom gwin oscilloscope */
#include "gwinosc.h"
@@ -143,10 +140,7 @@ int main(void) {
font_t font;
#endif
- halInit();
- chSysInit();
- gdispInit();
- gdispClear(Black);
+ gfxInit();
/* Get the screen dimensions */
swidth = gdispGetWidth();