MCUME/MCUME_teensy/teensy64/cia1.h

34 wiersze
592 B
C
Executable File

#ifndef Teensy64_cia1_h_
#define Teensy64_cia1_h_
struct tcia {
union {
uint8_t R[0x10];
uint16_t R16[0x10/2];
uint32_t R32[0x10/4];
};
union {
uint8_t W[0x10];
uint16_t W16[0x10/2];
uint32_t W32[0x10/4];
};
int32_t TOD;
int32_t TODfrozenMillis;
int32_t TODAlarm;
uint8_t TODstopped;
uint8_t TODfrozen;
};
void cia1_clock(int clk) __attribute__ ((hot));
void cia1_checkRTCAlarm() __attribute__ ((hot));
void cia1_write(uint32_t address, uint8_t value) __attribute__ ((hot));
uint8_t cia1_read(uint32_t address) __attribute__ ((hot));
void resetCia1(void);
#endif