diff --git a/packages/ti/fs/fatfs/example/console/src/main_console.c b/packages/ti/fs/fatfs/example/console/src/main_console.c
index 566ec78b95fe7eda7df0d7e89bba448959ab3e68..57553c19116089bcb9edd2c938ef50d29d95c970 100644 (file)
*/
/*
- * Copyright (C) 2019-21 Texas Instruments Incorporated - http://www.ti.com/
+ * Copyright (C) 2019-2022 Texas Instruments Incorporated - http://www.ti.com/
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* SDCD. Hence this feature , i.e using GPIO to check the SD card insert
* is disabled. Same is the case with J7 and Simulator (J7). Here the demo
* assumes that the SD card is inserted */
-#if !(defined(SOC_AM65XX) || defined(SOC_J721E) || defined(SIMULATOR) || defined(SOC_J7200) || defined(SOC_AM64X) || defined(SOC_J721S2))
+#if !(defined(SOC_AM65XX) || defined(SOC_J721E) || defined(SIMULATOR) || defined(SOC_J7200) || defined(SOC_AM64X) || defined(SOC_J721S2) || defined(SOC_J784S4))
#define FATFS_GPIO_ENABLED 1
#ifndef SIMULATOR
NULL,
};
-#if (defined(SOC_AM65XX)||defined(SOC_J721E)||defined (SOC_J7200)||defined (SOC_AM64X) || defined(SOC_J721S2))
+#if (defined(SOC_AM65XX)||defined(SOC_J721E)||defined (SOC_J7200)||defined (SOC_AM64X) || defined(SOC_J721S2) || defined(SOC_J784S4))
GPIO_v0_Config GPIO_v0_config = {
gpioPinConfigs,
gpioCallbackFunctions,
/* FATFS configuration structure */
FATFS_HwAttrs FATFS_initCfg[_VOLUMES] =
{
-#if defined (SOC_AM65XX) || defined (SOC_J721E) || defined (SOC_J7200) || defined (SOC_AM64X) || defined(SOC_J721S2)
+#if defined (SOC_AM65XX) || defined (SOC_J721E) || defined (SOC_J7200) || defined (SOC_AM64X) || defined(SOC_J721S2) || defined(SOC_J784S4)
{ /* MMC1 is SD card for AM65xx GP EVM */
1U
},
#ifndef BARE_METAL
-#if (defined(SOC_AM65XX) || defined(SOC_J721E) || defined (SOC_J7200) || defined (SOC_AM64X) || defined(SOC_J721S2)) && (defined(BUILD_MPU) || defined (BUILD_C7X))
+#if (defined(SOC_AM65XX) || defined(SOC_J721E) || defined (SOC_J7200) || defined (SOC_AM64X) || defined(SOC_J721S2) || defined(SOC_J784S4)) && (defined(BUILD_MPU) || defined (BUILD_C7X))
extern void Osal_initMmuDefault(void);
void InitMmu(void)
{
#endif
#endif
-
/*
* ======== main ========
*/
Board_initCfg boardCfg;
boardCfg = BOARD_INIT_PINMUX_CONFIG | BOARD_INIT_UART_STDIO | BOARD_INIT_MODULE_CLOCK;
-#if (defined(SOC_AM65XX)||defined(SOC_J721E)||defined (SOC_J7200)||defined (SOC_AM64X) || defined(SOC_J721S2)) && ((__ARM_ARCH == 7) && (__ARM_ARCH_PROFILE == 'R'))
+#if (defined(SOC_AM65XX)||defined(SOC_J721E)||defined (SOC_J7200)||defined (SOC_AM64X) || defined(SOC_J721S2) || defined(SOC_J784S4)) && ((__ARM_ARCH == 7) && (__ARM_ARCH_PROFILE == 'R'))
/* Clear it until the issue is resolved */
boardCfg &= ~(BOARD_INIT_MODULE_CLOCK);
#endif