Remove prints from scratch
This commit is contained in:
parent
c9916fe9e5
commit
a4f0839e48
@ -1,7 +1,5 @@
|
|||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
|
||||||
#define printf printf_small
|
|
||||||
|
|
||||||
#include <scratch/pmc.h>
|
#include <scratch/pmc.h>
|
||||||
|
|
||||||
@ -43,7 +41,6 @@ static void pmc_event(struct Pmc * pmc) {
|
|||||||
uint8_t sts = pmc_status(pmc);
|
uint8_t sts = pmc_status(pmc);
|
||||||
if (sts & PMC_STS_IBF) {
|
if (sts & PMC_STS_IBF) {
|
||||||
uint8_t data = pmc_read(pmc);
|
uint8_t data = pmc_read(pmc);
|
||||||
//printf("%x\n", data);
|
|
||||||
if (sts & PMC_STS_CMD) {
|
if (sts & PMC_STS_CMD) {
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case PMC_STATE_DEFAULT:
|
case PMC_STATE_DEFAULT:
|
||||||
@ -96,7 +93,6 @@ 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("scratch\n");
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
pmc_event(&PMC_1);
|
pmc_event(&PMC_1);
|
||||||
}
|
}
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
#include <mcs51/8051.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
int putchar(int c) {
|
|
||||||
unsigned char byte = (unsigned char)c;
|
|
||||||
SBUF = byte;
|
|
||||||
return (int)byte;
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user