grlib: Move source files

Update #3678.
This commit is contained in:
Sebastian Huber
2018-12-22 18:31:04 +01:00
parent 3172092576
commit 7eb606d393
69 changed files with 71 additions and 202 deletions

View File

@@ -0,0 +1,20 @@
/* 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;
}