diff options
| author | Andrew Hannam <andrewh@inmarket.com.au> | 2013-05-24 08:41:48 -0700 |
|---|---|---|
| committer | Andrew Hannam <andrewh@inmarket.com.au> | 2013-05-24 08:41:48 -0700 |
| commit | f0569e2555b3a7f2afe05cc42e4dd0982b179167 (patch) | |
| tree | e85c90a4f21974b706315d64209021e0b2bde764 /demos/modules/graph/main.c | |
| parent | 5f2a32714cda6bcfc8829e61895def2f627e1b8f (diff) | |
| parent | 7fbfde42aabbcd30cffba2fba35158236c0a6c6c (diff) | |
| download | uGFX-f0569e2555b3a7f2afe05cc42e4dd0982b179167.tar.gz uGFX-f0569e2555b3a7f2afe05cc42e4dd0982b179167.tar.bz2 uGFX-f0569e2555b3a7f2afe05cc42e4dd0982b179167.zip | |
Merge pull request #73 from inmarket/master
GOS module for OS independance, GMISC additions
Diffstat (limited to 'demos/modules/graph/main.c')
| -rw-r--r-- | demos/modules/graph/main.c | 10 |
1 files changed, 2 insertions, 8 deletions
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);
}
}
|
