Debug entry to scratch
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user