forked from Imagelibrary/rtems
MCTRL: fix build warnings in MCTRL driver
This commit is contained in:
@@ -186,6 +186,7 @@ libbsp_a_SOURCES += ../../sparc/shared/analog/gradcdac.c
|
||||
|
||||
# Memory controllers
|
||||
libbsp_a_SOURCES += ../../sparc/shared/mem/mctrl.c
|
||||
include_HEADERS += ../../sparc/shared/include/mctrl.h
|
||||
|
||||
# timer
|
||||
libbsp_a_SOURCES += timer/timer.c
|
||||
|
||||
@@ -241,6 +241,10 @@ $(PROJECT_INCLUDE)/gradcdac.h: ../../sparc/shared/include/gradcdac.h $(PROJECT_I
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/gradcdac.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/gradcdac.h
|
||||
|
||||
$(PROJECT_INCLUDE)/mctrl.h: ../../sparc/shared/include/mctrl.h $(PROJECT_INCLUDE)/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mctrl.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/mctrl.h
|
||||
|
||||
$(PROJECT_INCLUDE)/grtc.h: ../../sparc/shared/include/grtc.h $(PROJECT_INCLUDE)/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/grtc.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/grtc.h
|
||||
|
||||
@@ -200,6 +200,7 @@ libbsp_a_SOURCES += ../../sparc/shared/analog/gradcdac.c
|
||||
|
||||
# Memory controllers
|
||||
libbsp_a_SOURCES += ../../sparc/shared/mem/mctrl.c
|
||||
include_HEADERS += ../../sparc/shared/include/mctrl.h
|
||||
|
||||
# timer
|
||||
libbsp_a_SOURCES += timer/timer.c
|
||||
|
||||
@@ -269,6 +269,10 @@ $(PROJECT_INCLUDE)/gradcdac.h: ../../sparc/shared/include/gradcdac.h $(PROJECT_I
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/gradcdac.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/gradcdac.h
|
||||
|
||||
$(PROJECT_INCLUDE)/mctrl.h: ../../sparc/shared/include/mctrl.h $(PROJECT_INCLUDE)/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mctrl.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/mctrl.h
|
||||
|
||||
$(PROJECT_INCLUDE)/watchdog.h: include/watchdog.h $(PROJECT_INCLUDE)/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/watchdog.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/watchdog.h
|
||||
|
||||
26
c/src/lib/libbsp/sparc/shared/include/mctrl.h
Normal file
26
c/src/lib/libbsp/sparc/shared/include/mctrl.h
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Memory Controller driver interface
|
||||
*
|
||||
* COPYRIGHT (c) 2015.
|
||||
* Cobham Gaisler.
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rtems.org/license/LICENSE.
|
||||
*/
|
||||
|
||||
#ifndef __MCTRL_H__
|
||||
#define __MCTRL_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Register MEMCTRL driver to Driver manager */
|
||||
void mctrl_register_drv (void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -20,6 +20,8 @@
|
||||
#include <drvmgr/drvmgr.h>
|
||||
#include <drvmgr/ambapp_bus.h>
|
||||
|
||||
#include <mctrl.h>
|
||||
|
||||
#define MEMSET(priv, start, c, length) memset((void *)start, c, length)
|
||||
|
||||
#define DBG(args...)
|
||||
|
||||
Reference in New Issue
Block a user