source: rtems/bsps/sparc/shared/drvmgr/get_resarray_count.c @ d60d303c

5
Last change on this file since d60d303c was d60d303c, checked in by Sebastian Huber <sebastian.huber@…>, on 04/20/18 at 11:33:24

bsps/sparc: Move shared files to bsps

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 430 bytes
Line 
1/*  Common driver configuration routines.
2 *
3 *  COPYRIGHT (c) 2015.
4 *  Cobham Gaisler.
5 *
6 *  The license and distribution terms for this file may be
7 *  found in found in the file LICENSE in this distribution or at
8 *  http://www.rtems.org/license/LICENSE.
9 */
10
11#include <stdlib.h>
12#include <drvmgr/bspcommon.h>
13
14int get_resarray_count(struct drvmgr_bus_res **array)
15{
16        int i = 0;
17        while (array[i] != NULL)
18                i++;
19        return i;
20}
Note: See TracBrowser for help on using the repository browser.