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