spi: Get basic SPI commands working

This commit is contained in:
Sean Cross 2014-09-12 16:46:11 +08:00
parent 8d0e780508
commit 43a1517aec
8 changed files with 118 additions and 77 deletions

View file

@ -3,14 +3,19 @@
#include "bionic.h"
#include "memio.h"
#define SCRIPTIC_DEBUG /* Enable this to print commands as they're executed */
//#define SCRIPTIC_DEBUG /* Enable this to print commands as they're executed */
extern struct scriptic set_plls;
extern struct scriptic enable_psram;
extern struct scriptic spi_run;
extern struct scriptic spi_run;
extern struct scriptic spi_init;
static struct scriptic *scripts[] = {
&set_plls,
&enable_psram,
&spi_run,
&spi_init,
};
#ifdef SCRIPTIC_DEBUG