This example is just using buffers and built in alpha overlay functionality to animate a dmond floating on a checker board. After initializing of the frame buffers only 7 registers are being modified to implement the animation.
18 lines
301 B
C
18 lines
301 B
C
/*
|
|
* This include file describes the functions exported by clock.c
|
|
*/
|
|
#ifndef __CLOCK_H
|
|
#define __CLOCK_H
|
|
|
|
#include <stdint.h>
|
|
|
|
/*
|
|
* Definitions for functions being abstracted out
|
|
*/
|
|
void milli_sleep(uint32_t);
|
|
uint32_t mtime(void);
|
|
void clock_setup(void);
|
|
|
|
#endif /* generic header protector */
|
|
|