mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Fixed 'implicid declaration' warnings.
svn path=/trunk/; revision=424
This commit is contained in:
parent
ddd8467f99
commit
490e4d94fc
6 changed files with 15 additions and 11 deletions
|
@ -1,6 +1,7 @@
|
||||||
#include <ddk/ntddk.h>
|
#include <ddk/ntddk.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
HANDLE OutputHandle;
|
HANDLE OutputHandle;
|
||||||
HANDLE InputHandle;
|
HANDLE InputHandle;
|
||||||
|
|
|
@ -240,7 +240,7 @@ void ReadLine(char* line)
|
||||||
*line = 0;
|
*line = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void main()
|
void main(void)
|
||||||
{
|
{
|
||||||
static char line[255];
|
static char line[255];
|
||||||
|
|
||||||
|
|
|
@ -103,22 +103,22 @@ void InitializeSerial(void)
|
||||||
{
|
{
|
||||||
if(uart_detect(comports[i])==0)
|
if(uart_detect(comports[i])==0)
|
||||||
{
|
{
|
||||||
printk("%s not detected\n", comname[i]);
|
DbgPrint("%s not detected\n", comname[i]);
|
||||||
} else {
|
} else {
|
||||||
uart_init(comports[i]);
|
uart_init(comports[i]);
|
||||||
irq_level=irq_setup(comports[i]);
|
irq_level=irq_setup(comports[i]);
|
||||||
if(irq_level==-1)
|
if(irq_level==-1)
|
||||||
{
|
{
|
||||||
printk("Warning: IRQ not detected!\n");
|
DbgPrint("Warning: IRQ not detected!\n");
|
||||||
} else {
|
} else {
|
||||||
printk("%s hooked to interrupt level %d\n", comname[i], irq_level);
|
DbgPrint("%s hooked to interrupt level %d\n", comname[i], irq_level);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
// For testing purposes
|
// For testing purposes
|
||||||
void testserial()
|
void testserial(void)
|
||||||
{
|
{
|
||||||
int i=0;
|
int i=0;
|
||||||
char testc;
|
char testc;
|
||||||
|
@ -128,7 +128,7 @@ void testserial()
|
||||||
char character;
|
char character;
|
||||||
} x;
|
} x;
|
||||||
|
|
||||||
printk("Testing serial input...\n");
|
DbgPrint("Testing serial input...\n");
|
||||||
|
|
||||||
while(i==0) {
|
while(i==0) {
|
||||||
x.val=uart_getchar(COM1);
|
x.val=uart_getchar(COM1);
|
||||||
|
@ -137,13 +137,13 @@ void testserial()
|
||||||
|
|
||||||
testc=inb_p(COM1);
|
testc=inb_p(COM1);
|
||||||
|
|
||||||
// printk("(%x-%c) %c\n", x.val, x.character, testc);
|
// DbgPrint("(%x-%c) %c\n", x.val, x.character, testc);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
NTSTATUS DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
|
NTSTATUS DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
|
||||||
{
|
{
|
||||||
printk("Serial Driver 0.0.2\n");
|
DbgPrint("Serial Driver 0.0.2\n");
|
||||||
InitializeSerial();
|
InitializeSerial();
|
||||||
// testserial();
|
// testserial();
|
||||||
return(STATUS_SUCCESS);
|
return(STATUS_SUCCESS);
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
/* INCLUDES *****************************************************************/
|
/* INCLUDES *****************************************************************/
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include <ddk/ntddk.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
|
@ -17,14 +17,15 @@
|
||||||
* DISCLAMED. This includes but is not limited to warrenties of
|
* DISCLAMED. This includes but is not limited to warrenties of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
*
|
*
|
||||||
* $Revision: 1.3 $
|
* $Revision: 1.4 $
|
||||||
* $Author: ariadne $
|
* $Author: ekohl $
|
||||||
* $Date: 1999/04/23 18:42:21 $
|
* $Date: 1999/04/29 23:34:23 $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
void debug_printf(char* fmt, ...)
|
void debug_printf(char* fmt, ...)
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <ddk/ntddk.h>
|
#include <ddk/ntddk.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
VOID STDCALL OutputDebugStringA(LPCSTR lpOutputString)
|
VOID STDCALL OutputDebugStringA(LPCSTR lpOutputString)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue