/* * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.rtems.org/license/LICENSE. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include /* forward declarations to avoid warnings */ rtems_device_driver consume_semaphores_initialize( rtems_device_major_number major __attribute__((unused)), rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ); #define MAXIMUM 20 rtems_id Semaphores[MAXIMUM]; rtems_device_driver consume_semaphores_initialize( rtems_device_major_number major __attribute__((unused)), rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { int sems; rtems_status_code status; for ( sems=0 ; sems