diff options
author | Leo C | 2014-07-11 17:16:28 +0200 |
---|---|---|
committer | Leo C | 2014-07-11 17:16:28 +0200 |
commit | eded7ec457ef999586c66b15ada5948bddcc735c (patch) | |
tree | e6fb72fe86054384f8ba893a6aca210c6f58a408 /stm32/z180-stamp-stm32.c | |
parent | 64045ba0916623ab9e7c2f1eed837a2aae081e63 (diff) | |
download | z180-stamp-eded7ec457ef999586c66b15ada5948bddcc735c.zip |
Revert "Refactro Tupfiles"
This reverts commit cda2107f6e52a3e131502a6ec318ac3f216ac186.
Diffstat (limited to 'stm32/z180-stamp-stm32.c')
-rw-r--r-- | stm32/z180-stamp-stm32.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/stm32/z180-stamp-stm32.c b/stm32/z180-stamp-stm32.c index 96d724c..15d732d 100644 --- a/stm32/z180-stamp-stm32.c +++ b/stm32/z180-stamp-stm32.c @@ -1,6 +1,7 @@ /* */ +#include <stdio.h> #include <libopencmsis/core_cm3.h> #include <libopencm3/cm3/nvic.h> @@ -10,8 +11,6 @@ #include <libopencm3/stm32/gpio.h> #include <libopencm3/stm32/timer.h> -#include <stdio.h> - #define ODR 0x0c #define IDR 0x08 @@ -395,7 +394,7 @@ static uint32_t z80_sram_cmp(uint32_t addr, uint32_t length, uint8_t wval, int i uint8_t rval; int_fast8_t errors = 0; - DBG_P(1, "SRAM: Check 0x%.5lX byte... ", length); + DBG_P(1, "SRAM: Check %#.5x byte... ", length); while (length--) { if ((rval = z80_read(addr)) != wval) { if (errors == 0) { @@ -463,8 +462,6 @@ const char * const qbcat = "Zhe quick brown fox jumps over the lazy cat!"; #endif -/*--------------------------------------------------------------------------*/ - uint8_t z80_get_byte(uint32_t adr) { uint8_t data; @@ -511,7 +508,6 @@ struct msg_item { void (*func)(uint8_t, int, uint8_t *); }; -static uint32_t msg_to_addr(uint8_t *msg) { uint32_t addr = msg[0] | (msg[1] << 8) | ((uint32_t)msg[2] << 16); @@ -520,7 +516,6 @@ uint32_t msg_to_addr(uint8_t *msg) } -static void do_msg_ini_msgfifo(uint8_t subf, int len, uint8_t * msg) { (void)subf; (void)len; @@ -529,7 +524,6 @@ void do_msg_ini_msgfifo(uint8_t subf, int len, uint8_t * msg) } -static void do_msg_ini_memfifo(uint8_t subf, int len, uint8_t * msg) { (void)len; @@ -538,7 +532,6 @@ void do_msg_ini_memfifo(uint8_t subf, int len, uint8_t * msg) } -static void do_msg_char_out(uint8_t subf, int len, uint8_t * msg) { (void)subf; @@ -548,7 +541,6 @@ void do_msg_char_out(uint8_t subf, int len, uint8_t * msg) } -static const struct msg_item z80_messages[] = { { 0, /* fct nr. */ @@ -569,7 +561,6 @@ const struct msg_item z80_messages[] = -static void do_message(int len, uint8_t *msg) { uint8_t fct, sub_fct; @@ -614,7 +605,6 @@ void do_message(int len, uint8_t *msg) #define CTRBUF_LEN 256 -static void check_msg_fifo(void) { int ch; |