/* * COPYRIGHT (c) 1989-2010. * 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.com/license/LICENSE. * * $Id$ */ #include #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