Update tests so it uses llfs data and lffs
This commit is contained in:
2023-11-29 18:03:04 +01:00
parent 930034d146
commit b06ec97075
7 changed files with 231 additions and 48 deletions

View File

@@ -6,26 +6,7 @@ extern "C" {
#include <stdlib.h>
#include <stdint.h>
struct pbuf {
struct pbuf *next;
void *payload;
uint16_t tot_len;
uint16_t len;
uint8_t type_internal;
uint8_t flags;
//LWIP_PBUF_REF_T ref;
uint8_t if_idx;
};
typedef void sFONT;
#define ERR_OK 0
#define LCD_COLOR_BLACK 0
#define LCD_COLOR_WHITE 1
#define LCD_TRANSPARENT 2
#define LCD_FONT16 0
#include "mocs.h"
struct tftp_context {
void* (*open)(const char* fname, const char* mode, uint8_t write);
@@ -35,14 +16,7 @@ struct tftp_context {
};
void tftp_cleanup(void);
uint32_t logger_get_timestamp(void);
int tftp_init(struct tftp_context* context);
void lcd_display_text(uint8_t* text, uint16_t x_pos, uint16_t y_pos, uint32_t color, uint32_t bg_color, sFONT *font);
void lcd_draw_bmp_img(uint8_t* bmp_buff, uint32_t x_pos, uint32_t y_pos);
void lcd_draw_gif(uint8_t* gif_buff, size_t len, uint32_t x_pos, uint32_t y_pos);
void lcd_clear_images(void);
void lcd_clear_text(void);
#ifdef __cplusplus
}