Nachricht geschrieben von INTERNET:[EMAIL PROTECTED]
>
#define MODULE
#include <linux/module.h>
#include <linux/cons.h>
#include <stdio.h>
#include "rt_com.h"

int init_module(void) {
char c1 [11] = "Hello world\0";
rt_com_setup( 1, 9600, RT_COM_PARITY_NONE, 1, 8);  /* 1 = com2, */
         rt_com_write( 1, c1, strlen(c1));
return 0;
} 
void cleanup_module(void){   
    printk("Adi¢s, By, Chao, Ovuar, \n");
}

<

#################

you should try

{ int com=0; // 0 = 0x278 (com2),
int init_module(void) {
char c1 [11] = "Hello world\0";
rt_com_setup( com, 9600, RT_COM_PARITY_NONE, 1, 8);  
rt_com_write( com, c1, strlen(c1));
return 0;
} 

take a look at rt_com_table in rt_com.c
there is only one entry which is 0x278
good luck

Jens Michaelsen
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/

Reply via email to