aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Common/Sys_PinOut_Config
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2018-04-18 13:51:19 +0300
committerShlomo Hecht <shlomo@twine-s.com>2018-04-18 13:51:19 +0300
commit19e28f51f08114908618fc7c83ffcf7478f3d55f (patch)
treec5e3a6b15f770a99b185976ee30fcfee2e16928f /Software/Embedded_SW/Embedded/Common/Sys_PinOut_Config
parentbfbfc3f93276421a56300f89c4906bc992a0798e (diff)
downloadTango-19e28f51f08114908618fc7c83ffcf7478f3d55f.tar.gz
Tango-19e28f51f08114908618fc7c83ffcf7478f3d55f.zip
preparations for FPGA
Diffstat (limited to 'Software/Embedded_SW/Embedded/Common/Sys_PinOut_Config')
-rw-r--r--Software/Embedded_SW/Embedded/Common/Sys_PinOut_Config/MCU_MAIN_pinout.c10
-rw-r--r--Software/Embedded_SW/Embedded/Common/Sys_PinOut_Config/MCU_MAIN_pinout.h4
-rw-r--r--Software/Embedded_SW/Embedded/Common/Sys_PinOut_Config/Pin.c3
-rw-r--r--Software/Embedded_SW/Embedded/Common/Sys_PinOut_Config/Pin.h4
4 files changed, 19 insertions, 2 deletions
diff --git a/Software/Embedded_SW/Embedded/Common/Sys_PinOut_Config/MCU_MAIN_pinout.c b/Software/Embedded_SW/Embedded/Common/Sys_PinOut_Config/MCU_MAIN_pinout.c
index 2899a6a41..5faeee409 100644
--- a/Software/Embedded_SW/Embedded/Common/Sys_PinOut_Config/MCU_MAIN_pinout.c
+++ b/Software/Embedded_SW/Embedded/Common/Sys_PinOut_Config/MCU_MAIN_pinout.c
@@ -42,6 +42,7 @@
#include <stdbool.h>
#include <stdint.h>
+#include "datadef.h"
#include "inc/hw_gpio.h"
#include "inc/hw_memmap.h"
#include "inc/hw_types.h"
@@ -50,7 +51,7 @@
#include "driverlib/rom.h"
#include "driverlib/rom_map.h"
#include "driverlib/sysctl.h"
-#include "pinout.h"
+#include "MCU_MAIN_pinout.h"
//*****************************************************************************
//
@@ -58,7 +59,12 @@
//! @{
//
//*****************************************************************************
-
+#ifndef EVALUATION_BOARD
+void PortFunctionInit(void)
+{
+ PinoutSet();
+}
+#endif
//*****************************************************************************
//
//! Configures the device pins for the customer specific usage.
diff --git a/Software/Embedded_SW/Embedded/Common/Sys_PinOut_Config/MCU_MAIN_pinout.h b/Software/Embedded_SW/Embedded/Common/Sys_PinOut_Config/MCU_MAIN_pinout.h
index ebbe0b7d6..94a9e8c0b 100644
--- a/Software/Embedded_SW/Embedded/Common/Sys_PinOut_Config/MCU_MAIN_pinout.h
+++ b/Software/Embedded_SW/Embedded/Common/Sys_PinOut_Config/MCU_MAIN_pinout.h
@@ -54,6 +54,7 @@
extern "C"
{
#endif
+#include "datadef.h"
//*****************************************************************************
//
@@ -61,6 +62,9 @@ extern "C"
//
//*****************************************************************************
extern void PinoutSet(void);
+#ifndef EVALUATION_BOARD
+extern void PortFunctionInit(void);
+#endif
//*****************************************************************************
//
diff --git a/Software/Embedded_SW/Embedded/Common/Sys_PinOut_Config/Pin.c b/Software/Embedded_SW/Embedded/Common/Sys_PinOut_Config/Pin.c
index 1cb86ce4f..9a2ecd5af 100644
--- a/Software/Embedded_SW/Embedded/Common/Sys_PinOut_Config/Pin.c
+++ b/Software/Embedded_SW/Embedded/Common/Sys_PinOut_Config/Pin.c
@@ -38,6 +38,7 @@
#include <stdint.h>
#include <stdbool.h>
+#include "datadef.h"
#include <inc/hw_types.h>
#include <inc/hw_memmap.h>
#include <inc/hw_gpio.h>
@@ -57,6 +58,7 @@
#endif
//*****************************************************************************
+#ifdef EVALUATION_BOARD
void
PortFunctionInit(void)
{
@@ -619,3 +621,4 @@ PortFunctionInit(void)
//
MAP_GPIOPinTypeUSBAnalog(GPIO_PORTB_BASE, GPIO_PIN_1);
}
+#endif
diff --git a/Software/Embedded_SW/Embedded/Common/Sys_PinOut_Config/Pin.h b/Software/Embedded_SW/Embedded/Common/Sys_PinOut_Config/Pin.h
index d5e51f6b4..3662615fb 100644
--- a/Software/Embedded_SW/Embedded/Common/Sys_PinOut_Config/Pin.h
+++ b/Software/Embedded_SW/Embedded/Common/Sys_PinOut_Config/Pin.h
@@ -38,6 +38,10 @@
#ifndef __PIN_H__
#define __PIN_H__
+#include "datadef.h"
+
+#ifdef EVALUATION_BOARD
extern void PortFunctionInit(void);
+#endif
#endif // __PIN_H__