48 assert ( ticks <= 0xffff );
60 low = ( ( ticks >> 0 ) & 0xff );
61 high = ( ( ticks >> 8 ) & 0xff );
#define assert(condition)
Assert a condition at run-time.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define outb(data, io_addr)
uint32_t high
High 32 bits of address.
uint32_t low
Low 16 bits of address.
void pit8254_speaker_delay(unsigned int ticks)
Delay for a fixed number of timer ticks using the speaker channel.
8254 Programmable Interval Timer
#define PIT8254_CH_SPKR
PC speaker channel.
#define PIT8254_CMD_BINARY
Binary mode.
#define PIT8254_DATA(channel)
Data port.
#define PIT8254_CMD
Mode/command register.
#define PIT8254_SPKR_GATE
PC speaker channel gate.
#define PIT8254_CMD_OP_TERMINAL
Interrupt on terminal count.
#define PIT8254_SPKR
PC speaker control register.
#define PIT8254_SPKR_OUT
PC speaker channel output.
#define PIT8254_CMD_CHANNEL(channel)
Select channel.
#define PIT8254_CMD_ACCESS_LOHI
Low-byte, high-byte pair.
#define PIT8254_SPKR_ENABLE
PC speaker enabled.