Skip to content

Instantly share code, notes, and snippets.

@ComputerNerd
ComputerNerd / Makefile
Created Nov 18, 2014
Simple casio prizm makefile example
View Makefile
CC=sh3eb-elf-gcc
MKG3A=mkg3a
RM=rm
CFLAGS=-m4a-nofpu -mb -O2 -mhitachi -Wall -I../../include -lgcc -L../../lib -flto -fuse-linker-plugin
LDFLAGS=$(CFLAGS) -nostartfiles -T../../toolchain/prizm.x -Wl,-static -Wl,-gc-sections
CSOURCES=src/main.c
OBJECTS=$(CSOURCES:.c=.o)
PROJ_NAME=g3aNameWithoutExtension
BIN=$(PROJ_NAME).bin
ADDIN=$(PROJ_NAME).g3a
@ComputerNerd
ComputerNerd / textEditGUI.cpp
Last active Aug 29, 2015
Progress on the text editor
View textEditGUI.cpp
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <fxcg/display.h>
#include <fxcg/keyboard.h>
#include "textEditGUI.hpp"
#include "graphicsProvider.hpp"
#define CURSOR_BLINK_RATE 128 //in ticks based on RTC_GetTicks();
#define REPEAT_WAIT 128 //see comment for CURSOR_BLINK_RATE