summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorM V Pratap Reddy2018-12-05 14:42:15 -0600
committerM V Pratap Reddy2018-12-05 14:42:15 -0600
commita75868393c13ef7e3367c53a686611bb4d2713b3 (patch)
tree3f815732b58232adbd69cd158ca68959c60ffbe4
parentd33e9a114f05ed79c9a9f7a63807d3b3684d63dc (diff)
downloadfatfs-a75868393c13ef7e3367c53a686611bb4d2713b3.tar.gz
fatfs-a75868393c13ef7e3367c53a686611bb4d2713b3.tar.xz
fatfs-a75868393c13ef7e3367c53a686611bb4d2713b3.zip
PRSDK-4440: Fix for example build errors
-rw-r--r--example/console/src/main_console.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/example/console/src/main_console.c b/example/console/src/main_console.c
index d46c6d4..6bb2656 100644
--- a/example/console/src/main_console.c
+++ b/example/console/src/main_console.c
@@ -81,15 +81,6 @@
81#ifndef GPIO_PIN_MMC_SDCD_ACTIVE_STATE 81#ifndef GPIO_PIN_MMC_SDCD_ACTIVE_STATE
82#define GPIO_PIN_MMC_SDCD_ACTIVE_STATE 1 82#define GPIO_PIN_MMC_SDCD_ACTIVE_STATE 1
83#endif 83#endif
84
85GPIO_v0_Config GPIO_v0_config = {
86 gpioPinConfigs,
87 gpioCallbackFunctions,
88 sizeof(gpioPinConfigs) / sizeof(GPIO_PinConfig),
89 sizeof(gpioCallbackFunctions) / sizeof(GPIO_CallbackFxn),
90 0,
91};
92
93#endif 84#endif
94 85
95/********************************************************************** 86/**********************************************************************
@@ -122,7 +113,6 @@ static int16_t mainMenu();
122extern PARTITION VolToPart[]; 113extern PARTITION VolToPart[];
123#endif 114#endif
124 115
125#ifdef FATFS_GPIO_ENABLED
126/* ON Board LED pins which are connected to GPIO pins. */ 116/* ON Board LED pins which are connected to GPIO pins. */
127typedef enum GPIO_PIN { 117typedef enum GPIO_PIN {
128 GPIO_PIN_MMC_SDCD = 0U, 118 GPIO_PIN_MMC_SDCD = 0U,
@@ -147,6 +137,15 @@ GPIO_CallbackFxn gpioCallbackFunctions[] = {
147 NULL, 137 NULL,
148}; 138};
149 139
140#if (defined(SOC_AM65XX)||defined(SOC_J7))
141GPIO_v0_Config GPIO_v0_config = {
142 gpioPinConfigs,
143 gpioCallbackFunctions,
144 sizeof(gpioPinConfigs) / sizeof(GPIO_PinConfig),
145 sizeof(gpioCallbackFunctions) / sizeof(GPIO_CallbackFxn),
146 0,
147};
148#else
150/* GPIO Driver configuration structure */ 149/* GPIO Driver configuration structure */
151GPIO_v1_Config GPIO_v1_config = { 150GPIO_v1_Config GPIO_v1_config = {
152 gpioPinConfigs, 151 gpioPinConfigs,