rtdm driver Problems
Hello,
i try to port a standard serial Driver into an RTDM one following Jan´s example 16550A.c. When i try to initialize the rx/tx timeouts in my set_config routine with:
if (testbits(config->config_mask, RTSER_SET_TIMEOUT_RX))
ctx->config.rx_timeout = config->rx_timeout;and call an rt_dev_open("sername",0) in my testapplikation i get an "floating point used in kernel ...." on my ppc. I use all the structures that Jan have defined.
Could it bee that the uint64_t var´s rx_timeout / tx_timeout are the reasons (especially the <unsigned long long int> typedef for an ppc)?
Axel
Quoted 11 lines · Axel Beierlein
Hello,
i try to port a standard serial Driver into an RTDM one following Jan´s example
16550A.c. When i try to initialize the rx/tx timeouts in myset_configroutine with:if (testbits(config->config_mask, RTSER_SET_TIMEOUT_RX)) ctx->config.rx_timeout = config->rx_timeout;and call an
rt_dev_open("sername",0)in my testapplikation i get an "floating point used in kernel ...." on my ppc. I use all the structures that Jan have defined.
Could it bee that theuint64_tvar´srx_timeout/tx_timeoutare the reasons (especially the <unsigned long long int> typedef for an ppc)?
How do you compile the RTDM driver?
Wolfgang.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 14 lines · Axel Beierlein
Am 27.08.2007, 13:23 Uhr, schrieb Wolfgang Grandegger <[email protected]>:
Quoted 12 lines
Quoted 10 lines · Axel Beierlein
Hello,
i try to port a standard serial Driver into an RTDM one following
Jan´s example16550A.c.
When i try to initialize the rx/tx timeouts in myset_configroutine with:if (testbits(config->config_mask, RTSER_SET_TIMEOUT_RX)) ctx->config.rx_timeout = config->rx_timeout;and call an
rt_dev_open("sername",0)in my testapplikation i get an
"floating point used in kernel ...." on my ppc.
I use all the structures that Jan have defined.
Could it bee that theuint64_tvar´srx_timeout/tx_timeoutare the reasons (especially the <unsigned long long int> typedef for an ppc)?
Quoted 4 lines
Quoted 2 lines
How do you compile the RTDM driver?
ppc_6xx-gcc -Wall -O2 -c -DMODULE -D__KERNEL__ -D__IN_XENOMAI__ <the includes>
testdrv.c-o testdrv.o
Please compile it properly either by including it into the kernel tree or as shown in "examples/rtdm".
Wolfgang.