Files
rtems/bsps/sparc/shared/drvmgr/get_resarray_count.c
Sebastian Huber d60d303cf1 bsps/sparc: Move shared files to bsps
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-20 14:10:03 +02:00

21 lines
430 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 <drvmgr/bspcommon.h>
int get_resarray_count(struct drvmgr_bus_res **array)
{
int i = 0;
while (array[i] != NULL)
i++;
return i;
}