]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - avr/z180-serv.c
delete unused function z80_get_byte()
[z180-stamp.git] / avr / z180-serv.c
index 0712d8d2815cf8fc3ffac3fcb11794db3ec19194..929cd97148472d060afc2675f7bcdc4ae6bbf602 100644 (file)
        debug_cond(DEBUG_CPM_SDIO, fmt, ##args)
 
 
-
-/*--------------------------------------------------------------------------*/
-
-
-uint8_t z80_get_byte(uint32_t adr)
-{
-       uint8_t data;
-
-       z80_bus_cmd(Request);
-       data = z80_read(adr);
-       z80_bus_cmd(Release);
-
-       return data;
-}
-
-
 /*--------------------------------------------------------------------------*/
 
 struct msg_item {
@@ -146,7 +130,7 @@ int mk_date_time (int len, uint8_t *msg, struct tm *tmp)
        stamp = days * ONE_DAY;
        stamp += bcd2bin(msg[0]);
        stamp += bcd2bin(msg[1]) * 60 ;
-       stamp += bcd2bin(msg[2]) * 3600;
+       stamp += bcd2bin(msg[2]) * 3600L;
        gmtime_r(&stamp, tmp);
        return 0;
 }
@@ -167,9 +151,6 @@ void mk_cpm_time(struct tm *tmp, uint8_t cpm_time[5])
        cpm_time[2] = bin2bcd(tmp->tm_hour);
        cpm_time[3] = days;
        cpm_time[4] = days >> 8;
-
-       debug("## mk_cpmtime: tm_year: %d, tm_yday: %d, days: %d\n",
-       tmp->tm_year, tmp->tm_yday, days);
 }
 
 /* get/set cp/m time */
@@ -594,7 +575,7 @@ void check_msg_fifo(void)
 
 int msg_handling(int state)
 {
-       uint8_t pending;
+       bool pending;
 
        ATOMIC_BLOCK(ATOMIC_FORCEON) {
                pending = (Stat & S_MSG_PENDING) != 0;