SummerCart64/sw/bootloader/src/font.c
Mateusz Faderewski ff69030643
[SC64][FW][HW][SW] New version based on LCMXO2 FPGA (#19)
* isv support + usb/dd improvements

* make room for saves

* update offset

* fixed debug address

* idk

* exception

* ironed out all broken stuff

* cleanup

* return epc fix

* better

* more cleanup

* even more cleanup

* mooore cleanup

* fixed printf

* no assert

* improved docker build, pyft232 instead of pyserial

* fixed displaying long message strings

description test

* just straight cleanup

* smallest cleanup

* PAL

* cpu buffer

* n64 bootloader done

* super slow usb storage reading implemented

* reduced buffer size

* usb gets fast

* little cleanup

* double buffered reads

* removed separate event id

* ISV in hardware finally

* small exception changes

* mac testing

* py spacing

* fsd write, rtc, isv and reset fixes

* fixxx

* good stopping point

* usb fixed?

* pretend we have 128 MB sdram

* backup

* chmod

* test

* test done

* more tests

* user rm

* help

* final fix

* updated component values

* nice asset names

* cic 64dd support

* ddipl enable separation

* pre DMA rewrite, created dedicated buffer memory space, simplified code

* dma rewrite, needs testing

* moved xml

* dd basics

* timing

* 64dd working yet again, isv brought back, dma fixes, usb path rewrite, pc code rewrite

* added usb read functionality, general cleanup

* changed mem addressing

* added fpga flash update access

* added mcu update

* chmod

* little cleanup

* update format and stuff

* fixes

* uninitialized fix

* small fixes

* update fixes

* update stuff done

* fpga update tested

* build time fix

* boot fix

* test timing

* readme test

* test 2

* reports

* testseet

* final

* build test

* forgot

* button and naming

* General cleanup

And multiline commit message test

* Exception screen UI touch ups

* display separation and tests beginning

* pc software update

* pc software done

* timing test

* delete launch.json

* sw fixes

* fixed button hole diameter in shell

* small cleanup, rpi testing

* shell fillet fix, pc rtc printing

* added cfg lock mechanism

* moved lock to cfg address space

* extended ROM and ISV fixes

* preliminary sd card support

* little sd card cleanup

* sd menu fixes

* 5 second limit

* reduced shell thickness

* basic led act blinking

* faster sd menu loading

* inst cache invalidate

* sd card writing is working

* SD card CSD and CID registers

* wait for previous command

* led error codes

* fixed cfg_translate_address use

* 64dd from sd card working

* 64dd speedup and button handling

* delayed address latching cycle - might break other builds, needs testing

* bootloader improvements

* small fixes

* return previous cfg when setting new

* cache stuff

* unfloader debug protocol support

* UNFLoader style debug command line support

* requirements.txt

* shell groove fillet

* reset state inside controller

* fixed fast PI read, added PI R/W fifo debug info

* PI access prioritize

* SD clock stop when RX FIFO is more than half full

* flash erase method change

* CFG error handling, TLOZ MM debug ISV support

* CIC5167 support

* general fixes

* USB unplugged cable handling

* turn off led when changing between error/act modes

* rtc 2 bit clock stop support

* line endings

* Revert "line endings"

This reverts commit d0ddfe5ec7.

* PI address debug

* readme test

* diagram update

* diagram background

* diagram background

* diagram background

* updated readme
2022-11-10 11:46:54 +01:00

104 lines
5.6 KiB
C

// Manually converted font "Dogica" from https://www.dafont.com/dogica.font
#include "font.h"
const uint8_t font_data[96][FONT_CHAR_BYTES] = {
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, },
{ 0x18, 0x18, 0x18, 0x18, 0x18, 0x00, 0x18, 0x00, },
{ 0x00, 0x6C, 0x6C, 0x36, 0x00, 0x00, 0x00, 0x00, },
{ 0x00, 0x6C, 0xFE, 0x6C, 0x6C, 0xFE, 0x6C, 0x00, },
{ 0x00, 0x7C, 0xD6, 0x16, 0x7C, 0xD0, 0xD6, 0x7C, },
{ 0x62, 0x35, 0x37, 0x1A, 0x58, 0xAC, 0xEC, 0x46, },
{ 0x1C, 0x36, 0x36, 0x1C, 0xF6, 0x66, 0xFC, 0x00, },
{ 0x00, 0x30, 0x30, 0x18, 0x00, 0x00, 0x00, 0x00, },
{ 0x30, 0x18, 0x18, 0x18, 0x18, 0x18, 0x30, 0x00, },
{ 0x18, 0x30, 0x30, 0x30, 0x30, 0x30, 0x18, 0x00, },
{ 0x00, 0x18, 0x7E, 0x3C, 0x7E, 0x18, 0x00, 0x00, },
{ 0x00, 0x18, 0x18, 0x7E, 0x18, 0x18, 0x00, 0x00, },
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x30, 0x18, },
{ 0x00, 0x00, 0x00, 0x00, 0x7C, 0x00, 0x00, 0x00, },
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x00, },
{ 0x60, 0x60, 0x30, 0x30, 0x18, 0x18, 0x0C, 0x0C, },
{ 0x3C, 0x66, 0x66, 0x66, 0x66, 0x66, 0x3C, 0x00, },
{ 0x18, 0x1E, 0x18, 0x18, 0x18, 0x18, 0x7E, 0x00, },
{ 0x3C, 0x66, 0x60, 0x30, 0x18, 0x0C, 0x7E, 0x00, },
{ 0x3E, 0x60, 0x60, 0x3C, 0x60, 0x60, 0x3E, 0x00, },
{ 0x30, 0x38, 0x3C, 0x36, 0x7E, 0x30, 0x30, 0x00, },
{ 0x7E, 0x06, 0x3E, 0x60, 0x60, 0x66, 0x3C, 0x00, },
{ 0x3C, 0x66, 0x06, 0x3E, 0x66, 0x66, 0x3C, 0x00, },
{ 0x7E, 0x66, 0x60, 0x30, 0x18, 0x0C, 0x0C, 0x00, },
{ 0x3C, 0x66, 0x66, 0x3C, 0x66, 0x66, 0x3C, 0x00, },
{ 0x3C, 0x66, 0x66, 0x7C, 0x60, 0x30, 0x1C, 0x00, },
{ 0x00, 0x00, 0x18, 0x00, 0x00, 0x18, 0x00, 0x00, },
{ 0x00, 0x00, 0x00, 0x30, 0x00, 0x30, 0x30, 0x18, },
{ 0x00, 0x30, 0x18, 0x0C, 0x18, 0x30, 0x00, 0x00, },
{ 0x00, 0x00, 0xFE, 0x00, 0xFE, 0x00, 0x00, 0x00, },
{ 0x00, 0x18, 0x30, 0x60, 0x30, 0x18, 0x00, 0x00, },
{ 0x3C, 0x66, 0x60, 0x38, 0x0C, 0x00, 0x18, 0x00, },
{ 0x3E, 0x63, 0x7F, 0x7B, 0x3F, 0xC3, 0x7E, 0x00, },
{ 0x3C, 0x66, 0x66, 0x66, 0x7E, 0x66, 0x66, 0x00, },
{ 0x3E, 0x66, 0x66, 0x3E, 0x66, 0x66, 0x3E, 0x00, },
{ 0x3C, 0x66, 0x06, 0x06, 0x06, 0x66, 0x3C, 0x00, },
{ 0x3F, 0x66, 0x66, 0x66, 0x66, 0x66, 0x3E, 0x00, },
{ 0x7E, 0x06, 0x06, 0x3E, 0x06, 0x06, 0x7E, 0x00, },
{ 0x7E, 0x06, 0x06, 0x3E, 0x06, 0x06, 0x06, 0x00, },
{ 0x7C, 0x06, 0x06, 0x76, 0x66, 0x66, 0x7C, 0x00, },
{ 0x66, 0x66, 0x66, 0x7E, 0x66, 0x66, 0x66, 0x00, },
{ 0x3C, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3C, 0x00, },
{ 0x3E, 0x18, 0x18, 0x18, 0x18, 0x18, 0x0E, 0x00, },
{ 0x66, 0x36, 0x1E, 0x1E, 0x36, 0x36, 0x66, 0x00, },
{ 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x7C, 0x00, },
{ 0xC6, 0xC6, 0xEE, 0xFE, 0xC6, 0xC6, 0xC6, 0x00, },
{ 0x66, 0x6E, 0x7E, 0x76, 0x66, 0x66, 0x66, 0x00, },
{ 0x3C, 0x66, 0x66, 0x66, 0x66, 0x66, 0x3C, 0x00, },
{ 0x3E, 0x66, 0x66, 0x3E, 0x06, 0x06, 0x06, 0x00, },
{ 0x3C, 0x66, 0x66, 0x66, 0x6E, 0x36, 0x7C, 0x00, },
{ 0x3E, 0x66, 0x66, 0x3E, 0x36, 0x66, 0x66, 0x00, },
{ 0x3C, 0x66, 0x06, 0x3C, 0x60, 0x66, 0x3C, 0x00, },
{ 0x7E, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x00, },
{ 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x3C, 0x00, },
{ 0x66, 0x66, 0x66, 0x66, 0x3C, 0x3C, 0x18, 0x00, },
{ 0xC3, 0xC3, 0xDB, 0xDB, 0xDB, 0xFF, 0x66, 0x00, },
{ 0x66, 0x66, 0x3C, 0x18, 0x3C, 0x66, 0x66, 0x00, },
{ 0x66, 0x66, 0x66, 0x3C, 0x18, 0x18, 0x18, 0x00, },
{ 0x7E, 0x60, 0x30, 0x18, 0x0C, 0x06, 0x7E, 0x00, },
{ 0x38, 0x18, 0x18, 0x18, 0x18, 0x18, 0x38, 0x00, },
{ 0x0C, 0x0C, 0x18, 0x18, 0x30, 0x30, 0x60, 0x60, },
{ 0x38, 0x30, 0x30, 0x30, 0x30, 0x30, 0x38, 0x00, },
{ 0x00, 0x38, 0x6C, 0x00, 0x00, 0x00, 0x00, 0x00, },
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, },
{ 0x00, 0x18, 0x30, 0x30, 0x00, 0x00, 0x00, 0x00, },
{ 0x00, 0x3C, 0x60, 0x7C, 0x66, 0x66, 0x7C, 0x00, },
{ 0x06, 0x06, 0x3E, 0x66, 0x66, 0x66, 0x3E, 0x00, },
{ 0x00, 0x3C, 0x66, 0x06, 0x06, 0x06, 0x7C, 0x00, },
{ 0x60, 0x60, 0x7C, 0x66, 0x66, 0x66, 0x7C, 0x00, },
{ 0x00, 0x3C, 0x66, 0x7E, 0x06, 0x06, 0x7C, 0x00, },
{ 0x78, 0x0C, 0x0C, 0x3E, 0x0C, 0x0C, 0x0C, 0x00, },
{ 0x00, 0x7C, 0x66, 0x66, 0x66, 0x7C, 0x60, 0x3C, },
{ 0x06, 0x06, 0x3E, 0x6E, 0x66, 0x66, 0x66, 0x00, },
{ 0x18, 0x00, 0x1C, 0x18, 0x18, 0x18, 0x3C, 0x00, },
{ 0x00, 0x3C, 0x18, 0x18, 0x18, 0x18, 0x18, 0x0C, },
{ 0x00, 0x66, 0x36, 0x1E, 0x1E, 0x36, 0x66, 0x00, },
{ 0x00, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x38, 0x00, },
{ 0x00, 0x7E, 0xDB, 0xDB, 0xDB, 0xDB, 0xDB, 0x00, },
{ 0x00, 0x38, 0x6E, 0x66, 0x66, 0x66, 0x66, 0x00, },
{ 0x00, 0x3C, 0x66, 0x66, 0x66, 0x66, 0x3C, 0x00, },
{ 0x00, 0x3E, 0x66, 0x66, 0x66, 0x3E, 0x06, 0x06, },
{ 0x00, 0x7C, 0x66, 0x66, 0x66, 0x7C, 0x60, 0x60, },
{ 0x00, 0x78, 0x1C, 0x0C, 0x0C, 0x0C, 0x0C, 0x00, },
{ 0x00, 0x3C, 0x06, 0x3C, 0x60, 0x66, 0x3C, 0x00, },
{ 0x0C, 0x0C, 0x7C, 0x0C, 0x0C, 0x0C, 0x78, 0x00, },
{ 0x00, 0x66, 0x66, 0x66, 0x66, 0x76, 0x7C, 0x00, },
{ 0x00, 0x66, 0x66, 0x66, 0x3C, 0x3C, 0x18, 0x00, },
{ 0x00, 0xC0, 0xDB, 0xDB, 0xDB, 0xDB, 0x7E, 0x00, },
{ 0x00, 0x66, 0x3C, 0x18, 0x18, 0x3C, 0x66, 0x00, },
{ 0x00, 0x6C, 0x6C, 0x6C, 0x38, 0x30, 0x1C, 0x00, },
{ 0x00, 0x7C, 0x60, 0x30, 0x18, 0x0C, 0x7C, 0x00, },
{ 0x30, 0x58, 0x08, 0x0C, 0x0C, 0x08, 0x58, 0x30, },
{ 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, },
{ 0x18, 0x34, 0x20, 0x60, 0x60, 0x20, 0x34, 0x18, },
{ 0x00, 0x00, 0x00, 0xDC, 0x76, 0x00, 0x00, 0x00, },
{ 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, },
};