Commit a6485f20 authored by Philippe Rimauro's avatar Philippe Rimauro
Browse files

Added missing implementation

parent f35d486d
...@@ -246,5 +246,13 @@ VOID CTCOut(struct CTCData *data, USHORT address, UBYTE value) ...@@ -246,5 +246,13 @@ VOID CTCOut(struct CTCData *data, USHORT address, UBYTE value)
VOID CTCIn(struct CTCData *data, USHORT address, UBYTE *value) VOID CTCIn(struct CTCData *data, USHORT address, UBYTE *value)
{ {
// Todo // Timer mode?
if(data->ctc_Channel[address & 0x3].ctr_CountEnabled && (data->ctc_Channel[address & 0x3].ctr_WaitForTimeConstraint == FALSE) && data->ctc_Channel[address & 0x3].ctr_Enabled)
{
*value = data->ctc_Channel[address & 0x3].ctr_DownCounter;
}
else
{
*value = 0;
}
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment