Fix main c fie

This commit is contained in:
Steven Tracey 2024-11-19 22:00:43 -05:00
parent 0eff928c47
commit fdceac9441
3 changed files with 7 additions and 4 deletions

View File

@ -45,7 +45,7 @@ JETSON: JETSON_DEV JETSON_epd
TARGET = epd TARGET = epd
CC = gcc CC = gcc
MSG = -g -O -ffunction-sections -fdata-sections -Wall MSG = -g -O -ffunction-sections -fdata-sections -Wall
CFLAGS += $(MSG) -D $(EPD) CFLAGS += $(MSG)
RPI_epd:${OBJ_O} RPI_epd:${OBJ_O}
echo $(@) echo $(@)

View File

@ -18,8 +18,9 @@ void Handler(int sigNum) {
exit(0); exit(0);
} }
__declspec(dllexport) void init() { int main() {
signal(SIGINT, Handler); signal(SIGINT, Handler);
return 0;
} }
__declspec(dllexport) int draw() { __declspec(dllexport) int draw() {

View File

@ -5,8 +5,10 @@
#ifndef P2FA_P2FA_H #ifndef P2FA_P2FA_H
#define P2FA_P2FA_H #define P2FA_P2FA_H
#endif //P2FA_P2FA_H void Handler(int sigNum);
__declspec(dllexport) void init(); //__declspec(dllexport) void init();
__declspec(dllexport) int draw(); __declspec(dllexport) int draw();
#endif //P2FA_P2FA_H