mirror of
https://github.com/reactos/reactos.git
synced 2024-10-31 11:56:26 +00:00
4f0b8d3db0
svn path=/branches/ntvdm/; revision=59241
43 lines
944 B
C
43 lines
944 B
C
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS kernel
|
|
* FILE: ntoskrnl/hal/x86/beep.c
|
|
* PURPOSE: Speaker function (it's only one)
|
|
* PROGRAMMER: Eric Kohl
|
|
* UPDATE HISTORY:
|
|
* Created 31/01/99
|
|
*/
|
|
|
|
/* INCLUDES *****************************************************************/
|
|
|
|
#include <hal.h>
|
|
#define NDEBUG
|
|
#include <debug.h>
|
|
|
|
|
|
/* CONSTANTS *****************************************************************/
|
|
|
|
#define TIMER2 0x42
|
|
#define TIMER3 0x43
|
|
#define PORT_B 0x61
|
|
#define CLOCKFREQ 1193167
|
|
|
|
|
|
/* FUNCTIONS *****************************************************************/
|
|
/*
|
|
* FUNCTION: Beeps the speaker.
|
|
* ARGUMENTS:
|
|
* Frequency = If 0, the speaker will be switched off, otherwise
|
|
* the speaker beeps with the specified frequency.
|
|
*/
|
|
|
|
BOOLEAN
|
|
NTAPI
|
|
HalMakeBeep (
|
|
ULONG Frequency
|
|
)
|
|
{
|
|
return TRUE;
|
|
}
|
|
|