mirror of
https://github.com/hoglet67/AtomBusMon.git
synced 2025-01-10 17:29:28 +00:00
Firmware: fix build error when CPU_EMBEDDED undefined
Change-Id: I559a658cfd814fc45a5afd69150683131f155862
This commit is contained in:
parent
87bf4b869b
commit
0f061da391
@ -507,6 +507,18 @@ void lcdAddr(unsigned int addr) {
|
||||
* Host Memory/IO Access helpers
|
||||
********************************************************/
|
||||
|
||||
void log_char(int c) {
|
||||
if (c < 32 || c > 126) {
|
||||
c = '.';
|
||||
}
|
||||
log0("%c", c);
|
||||
}
|
||||
|
||||
void log_addr_data(int a, int d) {
|
||||
log0(" %04X = %02X ", a, d);
|
||||
log_char(d);
|
||||
}
|
||||
|
||||
#if defined(CPU_EMBEDDED)
|
||||
void loadData(unsigned int data) {
|
||||
int i;
|
||||
@ -569,18 +581,6 @@ unsigned int disMem(unsigned int addr) {
|
||||
return disassemble(addr);
|
||||
}
|
||||
|
||||
void log_char(int c) {
|
||||
if (c < 32 || c > 126) {
|
||||
c = '.';
|
||||
}
|
||||
log0("%c", c);
|
||||
}
|
||||
|
||||
void log_addr_data(int a, int d) {
|
||||
log0(" %04X = %02X ", a, d);
|
||||
log_char(d);
|
||||
}
|
||||
|
||||
void genericDump(char *params, unsigned int (*readFunc)()) {
|
||||
int i, j;
|
||||
unsigned int row[16];
|
||||
|
Loading…
x
Reference in New Issue
Block a user