Added header for chksum64

This commit is contained in:
Robin Jones 2017-10-11 17:44:46 +01:00
parent 7586104ffc
commit 7aef45a08d
4 changed files with 13 additions and 4 deletions

8
inc/chksum64.h Normal file
View File

@ -0,0 +1,8 @@
#ifndef _CHKSUM64_H
#define _CHKSUM64_H
void checksum_sdram(void);
#endif

View File

@ -6,19 +6,16 @@
#ifndef MAIN_H #ifndef MAIN_H
#define MAIN_H #define MAIN_H
//TODO: some of these should probably be includes not protos in main //TODO: these should probably be static not protos in main
void bootRom(display_context_t disp, int silent); void bootRom(display_context_t disp, int silent);
void loadrom(display_context_t disp, u8 *buff, int fast); void loadrom(display_context_t disp, u8 *buff, int fast);
void readSDcard(display_context_t disp, char *directory); void readSDcard(display_context_t disp, char *directory);
int saveTypeToSd(display_context_t disp, char* save_filename ,int type); int saveTypeToSd(display_context_t disp, char* save_filename ,int type);
void checksum_sdram(void);
void drawShortInfoBox(display_context_t disp, char* text, u8 mode); void drawShortInfoBox(display_context_t disp, char* text, u8 mode);
void drawTextInput(display_context_t disp,char *msg); void drawTextInput(display_context_t disp,char *msg);
#define MAX_LIST 20
//#define ishexchar(c) (((c >= '0') && (c <= '9')) || ((c >= 'A') && (c <= 'F')) || ((c >= 'a') && (c <= 'f'))) //#define ishexchar(c) (((c >= '0') && (c <= '9')) || ((c >= 'A') && (c <= 'F')) || ((c >= 'a') && (c <= 'f')))

View File

@ -23,6 +23,7 @@
#include <libdragon.h> #include <libdragon.h>
#include "sys.h" #include "sys.h"
#include "chksum64.h"
#define BUFSIZE 0x8000 #define BUFSIZE 0x8000

View File

@ -44,11 +44,14 @@
#include <yaml.h> #include <yaml.h>
#include "mem.h" #include "mem.h"
#include "chksum64.h"
#ifdef USE_TRUETYPE #ifdef USE_TRUETYPE
#define STB_TRUETYPE_IMPLEMENTATION #define STB_TRUETYPE_IMPLEMENTATION
#include "stb_truetype.h" #include "stb_truetype.h"
#define MAX_LIST 20
struct glyph struct glyph
{ {
int xoff; int xoff;