Refactored Project Structure for use with emulator

This commit is contained in:
t-moe
2015-04-03 12:02:33 +02:00
commit 51089aaba1
16 changed files with 336 additions and 0 deletions

15
common/app/app.c Normal file
View File

@@ -0,0 +1,15 @@
#include "app.h"
#include "tft.h"
#include <stdio.h>
void app_init() {
tft_init();
tft_draw_line(10,10,30,40,0b11111);
}
void app_process() {
/// printf("hello world\n");
}

2
common/app/app.h Normal file
View File

@@ -0,0 +1,2 @@
void app_init();
void app_process();

View File

14
common/lowlevel/ll_tft.h Normal file
View File

@@ -0,0 +1,14 @@
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
bool ll_tft_init();
void ll_tft_draw_line(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color);
#ifdef __cplusplus
}
#endif

13
common/tft/tft.c Normal file
View File

@@ -0,0 +1,13 @@
#include "tft.h"
#include "ll_tft.h"
bool tft_init() {
return ll_tft_init();
}
void tft_draw_line(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color) {
ll_tft_draw_line(x1,y1,x2,y2,color);
}

5
common/tft/tft.h Normal file
View File

@@ -0,0 +1,5 @@
#include<stdbool.h>
#include<stdint.h>
bool tft_init();
void tft_draw_line(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color);

0
common/touch/touch.h Normal file
View File