mirror of
https://github.com/osiweb/unified_retro_keyboard.git
synced 2024-12-28 12:32:13 +00:00
Added arch API for msec delay.
This commit is contained in:
parent
45329de193
commit
66df34a972
@ -681,24 +681,21 @@ void asdf_arch_pulse_delay_long(void)
|
|||||||
_delay_ms(ASDF_PULSE_DELAY_LONG_MS);
|
_delay_ms(ASDF_PULSE_DELAY_LONG_MS);
|
||||||
}
|
}
|
||||||
|
|
||||||
// PROCEDURE: asdf_arch_character_delay
|
// PROCEDURE: asdf_arch_delay_ms
|
||||||
// INPUTS: none
|
// INPUTS: (uint16) delay_ms - the delay in msec.
|
||||||
// OUTPUTS: none
|
// OUTPUTS: none
|
||||||
//
|
//
|
||||||
// DESCRIPTION: Delays a fixed amount of time after each character of a system
|
// DESCRIPTION: Delays a specified number of milliseconds
|
||||||
// message, to allow polled systems to catch up.
|
|
||||||
//
|
//
|
||||||
// SIDE EFFECTS: see above.
|
// SIDE EFFECTS: see above.
|
||||||
//
|
//
|
||||||
// NOTES: Set ASDF_PULSE_DELAY_US in asdf_config.h
|
|
||||||
//
|
|
||||||
// SCOPE: public
|
// SCOPE: public
|
||||||
//
|
//
|
||||||
// COMPLEXITY: 1
|
// COMPLEXITY: 1
|
||||||
//
|
//
|
||||||
void asdf_arch_character_delay(void)
|
void asdf_arch_delay_ms(uint16_t delay_ms)
|
||||||
{
|
{
|
||||||
_delay_ms(ASDF_MESSAGE_CHARACTER_DELAY);
|
_delay_ms(delay_ms);
|
||||||
}
|
}
|
||||||
|
|
||||||
// PROCEDURE: asdf_arch_init
|
// PROCEDURE: asdf_arch_init
|
||||||
|
@ -475,13 +475,11 @@ void asdf_arch_pulse_delay_short(void);
|
|||||||
// ASDF_PULSE_DELAY_LONG_MS
|
// ASDF_PULSE_DELAY_LONG_MS
|
||||||
void asdf_arch_pulse_delay_long(void);
|
void asdf_arch_pulse_delay_long(void);
|
||||||
|
|
||||||
// PROCEDURE: asdf_arch_character_delay
|
// PROCEDURE: asdf_arch_delay_ms
|
||||||
// INPUTS: none
|
// INPUTS: (uint16) delay_ms - the delay in msec.
|
||||||
// OUTPUTS: none
|
// OUTPUTS: none
|
||||||
// DESCRIPTION: Delays a fixed amount of time after each character of a system
|
// DESCRIPTION: Delays a specified number of milliseconds
|
||||||
// message, to allow polled systems to catch up.
|
void asdf_arch_delay_ms(uint16_t delay_ms);
|
||||||
// NOTES: Set ASDF_CHARACTER_DELAY_US in asdf_config.h
|
|
||||||
void asdf_arch_character_delay(void);
|
|
||||||
|
|
||||||
// PROCEDURE: asdf_arch_tick
|
// PROCEDURE: asdf_arch_tick
|
||||||
// INPUTS: none
|
// INPUTS: none
|
||||||
|
@ -677,24 +677,23 @@ void asdf_arch_pulse_delay_long(void)
|
|||||||
_delay_ms(ASDF_PULSE_DELAY_LONG_MS);
|
_delay_ms(ASDF_PULSE_DELAY_LONG_MS);
|
||||||
}
|
}
|
||||||
|
|
||||||
// PROCEDURE: asdf_arch_character_delay
|
// PROCEDURE: asdf_arch_delay_ms
|
||||||
// INPUTS: none
|
// INPUTS: (uint16) delay_ms - the delay in msec.
|
||||||
// OUTPUTS: none
|
// OUTPUTS: none
|
||||||
//
|
//
|
||||||
// DESCRIPTION: Delays a fixed amount of time after each character of a system
|
// DESCRIPTION: Delays a specified number of milliseconds
|
||||||
// message, to allow polled systems to catch up.
|
|
||||||
//
|
//
|
||||||
// SIDE EFFECTS: see above.
|
// SIDE EFFECTS: see above.
|
||||||
//
|
//
|
||||||
// NOTES: Set ASDF_PULSE_DELAY_US in asdf_config.h
|
|
||||||
//
|
|
||||||
// SCOPE: public
|
// SCOPE: public
|
||||||
//
|
//
|
||||||
// COMPLEXITY: 1
|
// COMPLEXITY: 1
|
||||||
//
|
//
|
||||||
void asdf_arch_character_delay(void)
|
void asdf_arch_delay_ms(uint16_t delay_ms)
|
||||||
{
|
{
|
||||||
_delay_ms(ASDF_MESSAGE_CHARACTER_DELAY);
|
for (uint16_t i=0; i < delay_ms; i++) {
|
||||||
|
_delay_ms(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// PROCEDURE: asdf_arch_init
|
// PROCEDURE: asdf_arch_init
|
||||||
|
@ -376,13 +376,11 @@ void asdf_arch_pulse_delay_short(void);
|
|||||||
// DESCRIPTION: Delays a fixed amount of time for keyboard output pulses specified by ASDF_PULSE_DELAY_LONG_MS
|
// DESCRIPTION: Delays a fixed amount of time for keyboard output pulses specified by ASDF_PULSE_DELAY_LONG_MS
|
||||||
void asdf_arch_pulse_delay_long(void);
|
void asdf_arch_pulse_delay_long(void);
|
||||||
|
|
||||||
// PROCEDURE: asdf_arch_character_delay
|
// PROCEDURE: asdf_arch_delay_ms
|
||||||
// INPUTS: none
|
// INPUTS: (uint16) delay_ms - the delay in msec.
|
||||||
// OUTPUTS: none
|
// OUTPUTS: none
|
||||||
// DESCRIPTION: Delays a fixed amount of time after each character of a system
|
// DESCRIPTION: Delays a specified number of milliseconds
|
||||||
// message, to allow polled systems to catch up.
|
void asdf_arch_delay_ms(uint16_t delay_ms);
|
||||||
// NOTES: Set ASDF_CHARACTER_DELAY_US in asdf_config.h
|
|
||||||
void asdf_arch_character_delay(void);
|
|
||||||
|
|
||||||
// PROCEDURE: asdf_arch_tick
|
// PROCEDURE: asdf_arch_tick
|
||||||
// INPUTS: none
|
// INPUTS: none
|
||||||
|
Loading…
Reference in New Issue
Block a user