Skip to content

Instantly share code, notes, and snippets.

@ComputerNerd
ComputerNerd / textEditGUI.cpp
Last active August 29, 2015 14:14
Progress on the text editor
#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
@ComputerNerd
ComputerNerd / Makefile
Created November 18, 2014 22:30
Simple casio prizm makefile example
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