Files
rtems/bsps/shared/grlib/drvmgr/get_resarray_count.c
Sebastian Huber 7eb606d393 grlib: Move source files
Update #3678.
2019-01-22 12:46:33 +01:00

21 lines
429 B
C

/* Common driver configuration routines.
*
* COPYRIGHT (c) 2015.
* Cobham Gaisler.
*
* The license and distribution terms for this file may be
* found in found in the file LICENSE in this distribution or at
* http://www.rtems.org/license/LICENSE.
*/
#include <stdlib.h>
#include <grlib/bspcommon.h>
int get_resarray_count(struct drvmgr_bus_res **array)
{
int i = 0;
while (array[i] != NULL)
i++;
return i;
}