avr: more work on fonts, added heap functions.

This commit is contained in:
Martin Preuss
2025-05-24 15:32:45 +02:00
parent fa5acddcbe
commit 391c06e7e5
14 changed files with 661 additions and 5 deletions

View File

@@ -28,6 +28,10 @@
.include "modules/xram/main.asm"
#endif
#ifdef MODULES_HEAP
.include "modules/heap/main.asm"
#endif
#ifdef MODULES_NETWORK
.include "common/crc8.asm"
.include "common/m_fixedbuffers.asm"
@@ -166,6 +170,12 @@
#endif
#ifdef MODULES_FONT_6X8
.include "modules/lcd2/font/defs.asm"
.include "modules/lcd2/font/font6x8.asm"
#endif
#ifdef APPS_MOTION
.include "modules/f_keepup/main.asm"
.include "modules/valsched/main.asm"

View File

@@ -24,6 +24,10 @@
initModules:
rcall BaseTimer_Init ; unconditionally call this
#ifdef MODULES_HEAP
rcall Heap_Init
#endif
#ifdef MODULES_CLOCK
rcall Clock_Init
#endif

View File

@@ -36,6 +36,14 @@
; ---------------------------------------------------------------------------
; heap
.equ HEAP_START = 0x260
.equ HEAP_SIZE = 32768-0x260
; ---------------------------------------------------------------------------
; firmware settings including list of modules used
@@ -48,13 +56,15 @@
; #define MODULES_TIMER
#define MODULES_CLOCK
#define MODULES_XRAM
#define MODULES_HEAP
#define MODULES_LED_SIMPLE
#define MODULES_NETWORK
;#define MODULES_COMONUART0
#define MODULES_UART_HW
#define MODULES_SPI_HW
#define MODULES_ILI9341
#define MODULES_FONT_8X8
;#define MODULES_FONT_8X8
#define MODULES_FONT_6X8
;#define MODULES_UART_BITBANG
;#define MODULES_TWI_MASTER
;#define MODULES_LCD