Remove prints from scratch

This commit is contained in:
Jeremy Soller 2019-11-20 15:16:30 -07:00
parent c9916fe9e5
commit a4f0839e48
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1
2 changed files with 0 additions and 12 deletions

View File

@ -1,7 +1,5 @@
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#define printf printf_small
#include <scratch/pmc.h>
@ -43,7 +41,6 @@ static void pmc_event(struct Pmc * pmc) {
uint8_t sts = pmc_status(pmc);
if (sts & PMC_STS_IBF) {
uint8_t data = pmc_read(pmc);
//printf("%x\n", data);
if (sts & PMC_STS_CMD) {
switch (state) {
case PMC_STATE_DEFAULT:
@ -96,7 +93,6 @@ static void pmc_event(struct Pmc * pmc) {
// Main program while running in scratch ROM
void main(void) {
printf("scratch\n");
for (;;) {
pmc_event(&PMC_1);
}

View File

@ -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;
}