Commit f4dec3f9 authored by julien.delange's avatar julien.delange

* src/drivers/po_hi_driver_rasta_serial.c

   src/drivers/po_hi_driver_rasta_spacewire.c
   src/drivers/po_hi_driver_rasta_common.c
   src/drivers/po_hi_driver_linux_serial.c
   - Version that works for the serial-spw case study

 * configure.ac
   - Fix debug level numbers



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/po-hi-c@1657 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent 80c6da52
......@@ -84,10 +84,10 @@ AC_ARG_ENABLE(debug,
* info - ALL informations about the system],
[ case ${enableval} in
info)
AC_DEFINE_UNQUOTED(__PO_HI_DEBUG_LEVEL, 10, "Debug level - show ALL potential informations.")
AC_DEFINE_UNQUOTED(__PO_HI_DEBUG_LEVEL, 12, "Debug level - show ALL potential informations.")
;;
debug)
AC_DEFINE_UNQUOTED(__PO_HI_DEBUG_LEVEL, 6, "Warning - information that can show errors but are not so important")
AC_DEFINE_UNQUOTED(__PO_HI_DEBUG_LEVEL, 10, "Warning - information that can show errors but are not so important")
;;
warning)
AC_DEFINE_UNQUOTED(__PO_HI_DEBUG_LEVEL, 4, "Critical - Errors that will imply a fault or a crash")
......
......@@ -53,23 +53,23 @@ void __po_hi_c_driver_serial_linux_poller (void)
__po_hi_msg_t msg;
__po_hi_request_t request;
__DEBUGMSG ("[LINUX SERIAL] Hello, i'm the serial poller , must read %d bytes!\n", __PO_HI_MESSAGES_MAX_SIZE);
__PO_HI_DEBUG_DEBUG ("[LINUX SERIAL] Hello, i'm the serial poller , must read %d bytes!\n", __PO_HI_MESSAGES_MAX_SIZE);
__po_hi_msg_reallocate (&msg);
n = read (po_hi_c_driver_serial_fd_read, &(msg.content[0]), __PO_HI_MESSAGES_MAX_SIZE);
__DEBUGMSG ("[LINUX SERIAL] Message: 0x");
__PO_HI_DEBUG_INFO ("[LINUX SERIAL] Message: 0x");
for (ts = 0 ; ts < __PO_HI_MESSAGES_MAX_SIZE ; ts++)
{
__DEBUGMSG ("%x", msg.content[ts]);
__PO_HI_DEBUG_INFO ("%x", msg.content[ts]);
}
__DEBUGMSG ("\n");
__PO_HI_DEBUG_INFO ("\n");
if (n == -1)
{
__DEBUGMSG("[LINUX SERIAL] Cannot read on socket !\n");
__PO_HI_DEBUG_CRITICAL ("[LINUX SERIAL] Cannot read on socket !\n");
return;
}
......@@ -79,7 +79,7 @@ void __po_hi_c_driver_serial_linux_poller (void)
}
__DEBUGMSG ("[LINUX SERIAL] read() returns %d\n", n);
__PO_HI_DEBUG_DEBUG ("[LINUX SERIAL] read() returns %d\n", n);
msg.length = n;
......@@ -87,18 +87,18 @@ void __po_hi_c_driver_serial_linux_poller (void)
swap_value = *swap_pointer;
*swap_pointer = __po_hi_swap_byte (swap_value);
__DEBUGMSG ("[LINUX SERIAL] Message after swapped port: 0x");
__PO_HI_DEBUG_INFO ("[LINUX SERIAL] Message after swapped port: 0x");
for (ts = 0 ; ts < msg.length ; ts++)
{
__DEBUGMSG ("%x", msg.content[ts]);
__PO_HI_DEBUG_INFO ("%x", msg.content[ts]);
}
__DEBUGMSG ("\n");
__PO_HI_DEBUG_INFO ("\n");
__DEBUGMSG ("[LINUX SERIAL] Received: %s\n", msg.content);
__PO_HI_DEBUG_INFO ("[LINUX SERIAL] Received: %s\n", msg.content);
__po_hi_unmarshall_request (&request, &msg);
__DEBUGMSG ("[LINUX SERIAL] Destination port: %d\n", request.port);
__PO_HI_DEBUG_INFO ("[LINUX SERIAL] Destination port: %d\n", request.port);
__po_hi_main_deliver (&request);
}
#endif
......@@ -111,17 +111,17 @@ void __po_hi_c_driver_serial_linux_init_sender (__po_hi_device_id id)
{
struct termios oldtio,newtio;
__DEBUGMSG ("[LINUX SERIAL] Init\n");
__PO_HI_DEBUG_INFO ("[LINUX SERIAL] Init\n");
po_hi_c_driver_serial_fd_write = open( __po_hi_get_device_naming (id), O_RDWR | O_NOCTTY | O_NONBLOCK);
if (po_hi_c_driver_serial_fd_write < 0)
{
__DEBUGMSG ("[LINUX SERIAL] Error while opening device %s\n", __po_hi_get_device_naming (id));
__PO_HI_DEBUG_CRITICAL ("[LINUX SERIAL] Error while opening device %s\n", __po_hi_get_device_naming (id));
}
else
{
__DEBUGMSG ("[LINUX SERIAL] Device successfully opened, fd=%d\n", po_hi_c_driver_serial_fd_write);
__PO_HI_DEBUG_DEBUG ("[LINUX SERIAL] Device successfully opened, fd=%d\n", po_hi_c_driver_serial_fd_write);
}
tcgetattr (po_hi_c_driver_serial_fd_write, &oldtio); /* save current serial port settings */
......@@ -185,15 +185,15 @@ void __po_hi_c_driver_serial_linux_init_sender (__po_hi_device_id id)
*/
if (tcflush (po_hi_c_driver_serial_fd_write, TCIOFLUSH) == -1)
{
__DEBUGMSG ("[LINUX SERIAL] Error in tcflush()\n");
__PO_HI_DEBUG_CRITICAL ("[LINUX SERIAL] Error in tcflush()\n");
}
if (tcsetattr (po_hi_c_driver_serial_fd_write, TCSANOW, &newtio) == -1)
{
__DEBUGMSG ("[LINUX SERIAL] Error in tcsetattr()\n");
__PO_HI_DEBUG_CRITICAL ("[LINUX SERIAL] Error in tcsetattr()\n");
}
__DEBUGMSG ("[LINUX SERIAL] End of init\n");
__PO_HI_DEBUG_INFO ("[LINUX SERIAL] End of init\n");
}
#endif
......@@ -204,17 +204,17 @@ void __po_hi_c_driver_serial_linux_init_receiver (__po_hi_device_id id)
{
struct termios oldtio,newtio;
__DEBUGMSG ("[LINUX SERIAL] Init\n");
__PO_HI_DEBUG_INFO ("[LINUX SERIAL] Init\n");
po_hi_c_driver_serial_fd_read = open( __po_hi_get_device_naming (id), O_RDONLY | O_NOCTTY);
if (po_hi_c_driver_serial_fd_read < 0)
{
__DEBUGMSG ("[LINUX SERIAL] Error while opening device %s\n", __po_hi_get_device_naming (id));
__PO_HI_DEBUG_CRITICAL ("[LINUX SERIAL] Error while opening device %s\n", __po_hi_get_device_naming (id));
}
else
{
__DEBUGMSG ("[LINUX SERIAL] Device successfully opened, fd=%d\n", po_hi_c_driver_serial_fd_read);
__PO_HI_DEBUG_INFO ("[LINUX SERIAL] Device successfully opened, fd=%d\n", po_hi_c_driver_serial_fd_read);
}
tcgetattr (po_hi_c_driver_serial_fd_read, &oldtio); /* save current serial port settings */
......@@ -261,15 +261,15 @@ void __po_hi_c_driver_serial_linux_init_receiver (__po_hi_device_id id)
*/
if (tcflush (po_hi_c_driver_serial_fd_read, TCIOFLUSH) == -1)
{
__DEBUGMSG ("[LINUX SERIAL] Error in tcflush()\n");
__PO_HI_DEBUG_CRITICAL ("[LINUX SERIAL] Error in tcflush()\n");
}
if (tcsetattr (po_hi_c_driver_serial_fd_read, TCSANOW, &newtio) == -1)
{
__DEBUGMSG ("[LINUX SERIAL] Error in tcsetattr()\n");
__PO_HI_DEBUG_CRITICAL ("[LINUX SERIAL] Error in tcsetattr()\n");
}
__DEBUGMSG ("[LINUX SERIAL] End of init\n");
__PO_HI_DEBUG_INFO ("[LINUX SERIAL] End of init\n");
}
#endif
......@@ -280,17 +280,17 @@ void __po_hi_c_driver_serial_linux_init (__po_hi_device_id id)
{
struct termios oldtio,newtio;
__DEBUGMSG ("[LINUX SERIAL] Init\n");
__PO_HI_DEBUG_INFO ("[LINUX SERIAL] Init\n");
po_hi_c_driver_serial_fd_read = po_hi_c_driver_serial_fd_write = open( __po_hi_get_device_naming (id), O_RDWR | O_NOCTTY | O_NONBLOCK);
if (po_hi_c_driver_serial_fd_read < 0)
{
__DEBUGMSG ("[LINUX SERIAL] Error while opening device %s\n", __po_hi_get_device_naming (id));
__PO_HI_DEBUG_CRITICAL ("[LINUX SERIAL] Error while opening device %s\n", __po_hi_get_device_naming (id));
}
else
{
__DEBUGMSG ("[LINUX SERIAL] Device successfully opened, fd=%d\n", po_hi_c_driver_serial_fd_read);
__PO_HI_DEBUG_INFO ("[LINUX SERIAL] Device successfully opened, fd=%d\n", po_hi_c_driver_serial_fd_read);
}
tcgetattr (po_hi_c_driver_serial_fd_read, &oldtio); /* save current serial port settings */
......@@ -354,15 +354,15 @@ void __po_hi_c_driver_serial_linux_init (__po_hi_device_id id)
*/
if (tcflush (po_hi_c_driver_serial_fd_read, TCIOFLUSH) == -1)
{
__DEBUGMSG ("[LINUX SERIAL] Error in tcflush()\n");
__PO_HI_DEBUG_CRITICAL ("[LINUX SERIAL] Error in tcflush()\n");
}
if (tcsetattr (po_hi_c_driver_serial_fd_read, TCSANOW, &newtio) == -1)
{
__DEBUGMSG ("[LINUX SERIAL] Error in tcsetattr()\n");
__PO_HI_DEBUG_CRITICAL ("[LINUX SERIAL] Error in tcsetattr()\n");
}
__DEBUGMSG ("[LINUX SERIAL] End of init\n");
__PO_HI_DEBUG_INFO ("[LINUX SERIAL] End of init\n");
}
#endif
......@@ -400,13 +400,13 @@ int __po_hi_c_driver_serial_linux_sender (__po_hi_task_id task_id, __po_hi_port
n = write (po_hi_c_driver_serial_fd_write, &msg, __PO_HI_MESSAGES_MAX_SIZE);
__DEBUGMSG ("[LINUX SERIAL] Message sent: 0x");
__PO_HI_DEBUG_INFO ("[LINUX SERIAL] Message sent: 0x");
for (ts = 0 ; ts < __PO_HI_MESSAGES_MAX_SIZE ; ts++)
{
__DEBUGMSG ("%x", msg.content[ts]);
__PO_HI_DEBUG_INFO ("%x", msg.content[ts]);
}
__DEBUGMSG ("\n");
__PO_HI_DEBUG_INFO ("\n");
return 1;
}
......
......@@ -80,29 +80,37 @@ static rtems_isr __po_hi_rasta_interrupt_handler (rtems_vector_number v)
DBG("Interrupt triggered\n");
if ( (status & GRCAN_IRQ) && grcan_int_handler ) {
DBG("CAN triggered\n");
grcan_int_handler(GRCAN_IRQNO,grcan_int_arg);
}
if (status & SPW_IRQ) {
if ( (status & SPW0_IRQ) && spw0_int_handler ){
DBG("SPW0 triggered\n");
spw0_int_handler(SPW0_IRQNO,spw0_int_arg);
}
if ( (status & SPW1_IRQ) && spw1_int_handler ){
DBG("SPW1 triggered\n");
spw1_int_handler(SPW1_IRQNO,spw1_int_arg);
}
if ( (status & SPW2_IRQ) && spw2_int_handler ){
DBG("SPW2 triggered\n");
spw2_int_handler(SPW2_IRQNO,spw2_int_arg);
}
}
if ((status & BRM_IRQ) && brm_int_handler ){
DBG("BRM triggered\n");
brm_int_handler(BRM_IRQNO,brm_int_arg);
}
if ( (status & UART0_IRQ) && uart0_int_handler ) {
DBG("UART0 triggered\n");
uart0_int_handler(UART0_IRQNO,uart0_int_arg);
}
if ( (status & UART1_IRQ) && uart1_int_handler) {
DBG("UART1 triggered\n");
uart1_int_handler(UART1_IRQNO,uart1_int_arg);
}
irq->iclear = status;
......@@ -239,8 +247,6 @@ int __po_hi_rasta_register(void)
pci_read_config_dword(bus, dev, fun, 0x10, &__po_hi_driver_rasta_bar0);
pci_read_config_dword(bus, dev, fun, 0x14, &__po_hi_driver_rasta_bar1);
DBG("here1\n", dev, fun);
page0 = (unsigned int *)(__po_hi_driver_rasta_bar0 + 0x400000);
*page0 = 0x80000000; /* Point PAGE0 to start of APB */
......@@ -266,8 +272,6 @@ int __po_hi_rasta_register(void)
irq->ilevel = 0;
irq->mask[0] = 0xffff & ~(UART0_IRQ|UART1_IRQ|SPW0_IRQ|SPW1_IRQ|SPW2_IRQ|GRCAN_IRQ|BRM_IRQ);
DBG("here2\n", dev, fun);
/* Configure AT697 ioport bit 7 to input pci irq */
regs->PIO_Direction &= ~(1<<7);
regs->PIO_Interrupt |= (0x87<<8); /* level sensitive */
......@@ -275,9 +279,6 @@ int __po_hi_rasta_register(void)
apb_base[0x100] |= 0x40000000; /* Set GRPCI mmap 0x4 */
apb_base[0x104] = 0x40000000; /* 0xA0000000; Point PAGE1 to RAM */
DBG("here21\n");
/* set parity error response */
pci_read_config_dword(bus, dev, fun, 0x4, &data);
pci_write_config_dword(bus, dev, fun, 0x4, data|0x40);
......@@ -341,12 +342,12 @@ void __po_hi_c_driver_rasta_common_init ()
return;
}
__DEBUGMSG ("[RASTA SERIAL] Init\n");
__PO_HI_DEBUG_INFO ("[RASTA COMMON] Init\n");
init_pci();
__DEBUGMSG ("[RASTA SERIAL] Initializing RASTA ...\n");
__PO_HI_DEBUG_DEBUG ("[RASTA COMMON] Initializing RASTA ...");
/*
if (__po_hi_rasta_register() ){
__DEBUGMSG(" ERROR !\n");
__PO_HI_DEBUG_DEBUG (" ERROR !\n");
return;
}
*/
......@@ -355,10 +356,9 @@ void __po_hi_c_driver_rasta_common_init ()
return;
}
__DEBUGMSG(" OK !\n");
__PO_HI_DEBUG_DEBUG (" OK !\n");
__po_hi_c_driver_rasta_common_is_init = 1;
}
#endif
......
......@@ -50,7 +50,7 @@ void __po_hi_c_driver_serial_rasta_poller (void)
int tr;
uint8_t* ptr;
__DEBUGMSG ("[RASTA SERIAL] Poller waits for incoming message !\n");
__PO_HI_DEBUG_INFO ("[RASTA SERIAL] Poller waits for incoming message !\n");
ts = __PO_HI_MESSAGES_MAX_SIZE;
tr = 0;
ptr = &(__po_hi_c_driver_rasta_serial_msg.content[0]);
......@@ -62,21 +62,21 @@ void __po_hi_c_driver_serial_rasta_poller (void)
if (n == -1)
{
__DEBUGMSG("[RASTA SERIAL] Cannot read on socket !\n");
__PO_HI_DEBUG_DEBUG ("[RASTA SERIAL] Cannot read on socket !\n");
return;
}
ts -= n;
tr += n;
}
__DEBUGMSG ("[RASTA SERIAL] read() returns total %d, max message size=%d\n", tr, __PO_HI_MESSAGES_MAX_SIZE);
__PO_HI_DEBUG_INFO ("[RASTA SERIAL] read() returns total %d, max message size=%d\n", tr, __PO_HI_MESSAGES_MAX_SIZE);
__DEBUGMSG ("[RASTA SERIAL] Message received by poller: 0x");
__PO_HI_DEBUG_INFO ("[RASTA SERIAL] Message received by poller: 0x");
for (ts = 0 ; ts < __PO_HI_MESSAGES_MAX_SIZE ; ts++)
{
__DEBUGMSG ("%x", __po_hi_c_driver_rasta_serial_msg.content[ts]);
__PO_HI_DEBUG_INFO ("%x", __po_hi_c_driver_rasta_serial_msg.content[ts]);
}
__DEBUGMSG ("\n");
__PO_HI_DEBUG_INFO ("\n");
__po_hi_c_driver_rasta_serial_msg.length = tr;
......@@ -97,10 +97,12 @@ void __po_hi_c_driver_serial_rasta_init (__po_hi_device_id id)
* info so that it can find the GRSPW cores.
*/
/*
__PO_HI_DEBUG_INFO ("[RASTA SERIAL] Initialization starts !\n");
/*
apbuart_rasta_int_reg=__po_hi_rasta_interrrupt_register;
if ( apbuart_rasta_register(__po_hi_driver_rasta_common_get_bus ()) ){
printk("Failed to register RASTA APBUART driver\n\r");
if ( apbuart_rasta_register(__po_hi_driver_rasta_common_get_bus ()) )
{
__PO_HI_DEBUG_CRITICAL ("[RASTA SERIAL] Failed to register RASTA APBUART driver\n\r");
}
*/
......@@ -108,7 +110,7 @@ void __po_hi_c_driver_serial_rasta_init (__po_hi_device_id id)
if (po_hi_c_driver_rasta_serial_fd < 0)
{
__DEBUGMSG ("[RASTA SERIAL] Error while opening device %s\n", __po_hi_get_device_naming (id));
__PO_HI_DEBUG_CRITICAL ("[RASTA SERIAL] Error while opening device %s\n", __po_hi_get_device_naming (id));
}
__PO_HI_DRIVERS_RTEMS_UTILS_IOCTL(po_hi_c_driver_rasta_serial_fd, APBUART_SET_BAUDRATE, __PO_HI_DRIVER_SERIAL_RASTA_BAUDRATE); /* stream mode */
......@@ -121,8 +123,9 @@ void __po_hi_c_driver_serial_rasta_init (__po_hi_device_id id)
if (tcflush (po_hi_c_driver_rasta_serial_fd, TCIOFLUSH) != 0)
{
__DEBUGMSG("[RASTA SERIAL] Error when trying to flush\n");
__PO_HI_DEBUG_CRITICAL ("[RASTA SERIAL] Error when trying to flush\n");
}
__PO_HI_DEBUG_INFO ("[RASTA SERIAL] Initialization complete !\n");
}
int __po_hi_c_driver_serial_rasta_sender (const __po_hi_task_id task_id, const __po_hi_port_t port)
......@@ -146,16 +149,17 @@ int __po_hi_c_driver_serial_rasta_sender (const __po_hi_task_id task_id, const _
__po_hi_marshall_request (request, &msg);
__DEBUGMSG ("[RASTA SERIAL] Message sent: 0x");
__PO_HI_DEBUG_INFO ("[RASTA SERIAL] Message sent: 0x");
for (ts = 0 ; ts < __PO_HI_MESSAGES_MAX_SIZE ; ts++)
{
__DEBUGMSG ("%x", msg.content[ts]);
__PO_HI_DEBUG_INFO ("%x", msg.content[ts]);
}
__DEBUGMSG ("\n");
__PO_HI_DEBUG_INFO ("\n");
n = write (po_hi_c_driver_rasta_serial_fd, &msg, __PO_HI_MESSAGES_MAX_SIZE);
__DEBUGMSG ("[RASTA SERIAL] write() returns %d\n", n);
__PO_HI_DEBUG_DEBUG ("[RASTA SERIAL] write() returns %d\n", n);
return 1;
}
......
......@@ -51,7 +51,7 @@ void po_hi_c_driver_rasta_spacewire_init_pkt(__po_hi_c_driver_spacewire_pkt_hdr_
{
p->addr = atoi (__po_hi_get_device_naming (destination_port));
__DEBUGMSG ("[RASTA SPACEWIRE] Init packet with address %d !\n", p->addr);
__PO_HI_DEBUG_DEBUG ("[RASTA SPACEWIRE] Init packet with address %d !\n", p->addr);
p->protid = 50;
p->dummy = 0x01;
......@@ -68,7 +68,7 @@ void __po_hi_c_driver_spacewire_rasta_poller (void)
__po_hi_msg_t msg;
__po_hi_request_t request;
__DEBUGMSG ("[RASTA SPACEWIRE] Hello, i'm the spacewire poller !\n");
__PO_HI_DEBUG_INFO ("[RASTA SPACEWIRE] Hello, i'm the spacewire poller !\n");
len = read (po_hi_c_driver_rasta_spacewire_fd,
&po_hi_c_driver_spacewire_rxpkt[0],
......@@ -76,7 +76,7 @@ void __po_hi_c_driver_spacewire_rasta_poller (void)
if (len < 0)
{
__DEBUGMSG ("[RASTA SPACEWIRE] Error while reading\n");
__PO_HI_DEBUG_CRITICAL ("[RASTA SPACEWIRE] Error while reading\n");
}
else
{
......@@ -95,7 +95,7 @@ void __po_hi_c_driver_spacewire_rasta_poller (void)
__po_hi_unmarshall_request (&request, &msg);
__DEBUGMSG ("[RASTA SPACEWIRE] Destination port: %d\n", request.port);
__PO_HI_DEBUG_INFO ("[RASTA SPACEWIRE] Destination port: %d\n", request.port);
__po_hi_main_deliver (&request);
}
}
......@@ -113,7 +113,7 @@ void __po_hi_c_driver_spacewire_rasta_init (__po_hi_device_id id)
node_addr = atoi (__po_hi_get_device_naming (id));
__DEBUGMSG ("[RASTA SPACEWIRE] Init\n");
__PO_HI_DEBUG_INFO ("[RASTA SPACEWIRE] Init\n");
__po_hi_c_driver_rasta_common_init ();
......@@ -123,24 +123,24 @@ void __po_hi_c_driver_spacewire_rasta_init (__po_hi_device_id id)
/*
grspw_rasta_int_reg=__po_hi_rasta_interrrupt_register;
if ( grspw_rasta_register(__po_hi_driver_rasta_common_get_bus (),__po_hi_driver_rasta_bar1) ){
printk("Failed to register RASTA GRSPW driver\n\r");
__PO_HI_DEBUG_CRITICAL ("Failed to register RASTA GRSPW driver\n\r");
return;
}
*/
__DEBUGMSG ("[RASTA SPACEWIRE] Open spacewire device ...");
__PO_HI_DEBUG_DEBUG ("[RASTA SPACEWIRE] Open spacewire device ...");
po_hi_c_driver_rasta_spacewire_fd = open (__PO_HI_DRIVER_SPACEWIRE_RASTA_DEVICE, O_RDWR);
if (po_hi_c_driver_rasta_spacewire_fd < 0)
{
__DEBUGMSG(" ERROR !\n");
__PO_HI_DEBUG_DEBUG (" ERROR !\n");
return;
}
__DEBUGMSG(" OK !\n");
__PO_HI_DEBUG_DEBUG (" OK !\n");
__DEBUGMSG ("[RASTA SPACEWIRE] Configure spacewire device node address = %d ...", node_addr);
__PO_HI_DEBUG_DEBUG ("[RASTA SPACEWIRE] Configure spacewire device node address = %d ...", node_addr);
__PO_HI_DRIVERS_RTEMS_UTILS_IOCTL(po_hi_c_driver_rasta_spacewire_fd,SPACEWIRE_IOCTRL_SET_COREFREQ,30000);
/* make driver calculate timings from 30MHz spacewire clock */
......@@ -174,7 +174,7 @@ int __po_hi_c_driver_spacewire_rasta_sender (const __po_hi_task_id task_id, cons
__po_hi_marshall_request (request, &msg);
__DEBUGMSG ("[RASTA SPACEWIRE] Send packet destination port = %d ...", destination_port);
__PO_HI_DEBUG_INFO ("[RASTA SPACEWIRE] Send packet destination port = %d ...", destination_port);
for(i=0; i<1; i++)
{
......@@ -187,11 +187,11 @@ int __po_hi_c_driver_spacewire_rasta_sender (const __po_hi_task_id task_id, cons
if (len < 0)
{
__DEBUGMSG (" failed !\n");
__PO_HI_DEBUG_INFO (" failed !\n");
}
else
{
__DEBUGMSG (" OK !\n");
__PO_HI_DEBUG_INFO (" OK !\n");
}
return 1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment