Debug entry to scratch

This commit is contained in:
Jeremy Soller
2019-12-30 12:14:53 -07:00
parent fb65be501f
commit ce6fe6de64

View File

@ -42,7 +42,6 @@ static void pmc_event(struct Pmc * pmc) {
uint8_t data = pmc_read(pmc); uint8_t data = pmc_read(pmc);
if (sts & PMC_STS_CMD) { if (sts & PMC_STS_CMD) {
printf_tiny("%x\n", data); printf_tiny("%x\n", data);
switch (state) { switch (state) {
case PMC_STATE_DEFAULT: case PMC_STATE_DEFAULT:
switch (data) { switch (data) {
@ -95,6 +94,7 @@ static void pmc_event(struct Pmc * pmc) {
// Main program while running in scratch ROM // Main program while running in scratch ROM
void main(void) { void main(void) {
printf_tiny("SCRATCH\n");
for (;;) { for (;;) {
pmc_event(&PMC_1); pmc_event(&PMC_1);
} }