examples/mini/mini.c
changeset 1501 59990318c95b
parent 1500 ed1a733efbc5
child 1513 60ca68d853b8
child 1579 326d47aa986c
equal deleted inserted replaced
1500:ed1a733efbc5 1501:59990318c95b
    25  *  EtherCAT technology and brand is only permitted in compliance with the
    25  *  EtherCAT technology and brand is only permitted in compliance with the
    26  *  industrial property and similar rights of Beckhoff Automation GmbH.
    26  *  industrial property and similar rights of Beckhoff Automation GmbH.
    27  *
    27  *
    28  *****************************************************************************/
    28  *****************************************************************************/
    29 
    29 
       
    30 #include <linux/version.h>
    30 #include <linux/module.h>
    31 #include <linux/module.h>
    31 #include <linux/timer.h>
    32 #include <linux/timer.h>
    32 #include <linux/semaphore.h>
       
    33 #include <linux/interrupt.h>
    33 #include <linux/interrupt.h>
    34 #include <linux/err.h>
    34 #include <linux/err.h>
       
    35 
       
    36 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
       
    37 #include <linux/semaphore.h>
       
    38 #else
       
    39 #include <asm/semaphore.h>
       
    40 #endif
    35 
    41 
    36 #include "../../include/ecrt.h" // EtherCAT realtime interface
    42 #include "../../include/ecrt.h" // EtherCAT realtime interface
    37 
    43 
    38 /*****************************************************************************/
    44 /*****************************************************************************/
    39 
    45