aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Drivers
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2018-11-05 09:51:08 +0200
committerShlomo Hecht <shlomo@twine-s.com>2018-11-05 09:51:08 +0200
commit648a3fdc373fc1555a8d1e1908e8b4dfa2203820 (patch)
tree4001df7aa6478335e8ca9782724bf4233708fcb4 /Software/Embedded_SW/Embedded/Drivers
parent93591843e7fc3a68e955cb305838fe7e68d1c137 (diff)
downloadTango-648a3fdc373fc1555a8d1e1908e8b4dfa2203820.tar.gz
Tango-648a3fdc373fc1555a8d1e1908e8b4dfa2203820.zip
Heaters PID enabled per configuration. USB reinitialized. new HW handling with error report
Diffstat (limited to 'Software/Embedded_SW/Embedded/Drivers')
-rw-r--r--Software/Embedded_SW/Embedded/Drivers/Flash_Memory/FATFS/Control_File_System.c17
-rw-r--r--Software/Embedded_SW/Embedded/Drivers/USB_Communication/USBCDCD.c10
2 files changed, 6 insertions, 21 deletions
diff --git a/Software/Embedded_SW/Embedded/Drivers/Flash_Memory/FATFS/Control_File_System.c b/Software/Embedded_SW/Embedded/Drivers/Flash_Memory/FATFS/Control_File_System.c
index ef842bf68..5b8bc40fd 100644
--- a/Software/Embedded_SW/Embedded/Drivers/Flash_Memory/FATFS/Control_File_System.c
+++ b/Software/Embedded_SW/Embedded/Drivers/Flash_Memory/FATFS/Control_File_System.c
@@ -118,11 +118,7 @@ FRESULT Init_Flash_File_System(bool Need_mkfs)
}
if(Need_mkfs == true)
- iFResult = f_mkfs( 0, 0, 512 ); //Create File System on the Drive
-// if(iFResult != FR_OK)
-// {
-// while(1);
-// }
+ iFResult = f_mkfs( 0, 0, 512 ); //Create File System on the Drive
return iFResult;
}
@@ -207,17 +203,6 @@ int FFS_Directory()
{
return(fresult);
}
-
-// //
-// // Close the current directory
-// //
-// fresult |= f_closedir(&g_sDirObject);
-// if(fresult != FR_OK)
-// {
-// return(fresult);
-// }
-
-
return 0;
}
diff --git a/Software/Embedded_SW/Embedded/Drivers/USB_Communication/USBCDCD.c b/Software/Embedded_SW/Embedded/Drivers/USB_Communication/USBCDCD.c
index 0d42057b8..76592f0d5 100644
--- a/Software/Embedded_SW/Embedded/Drivers/USB_Communication/USBCDCD.c
+++ b/Software/Embedded_SW/Embedded/Drivers/USB_Communication/USBCDCD.c
@@ -770,21 +770,21 @@ void USBCDCD_init(void)
void USBCDCD_Reinit(void)
{
- //USBDCDCTerm(USBDComposite);
+ USBDCDCTerm(USBDComposite);
/* State specific variables */
- //state = USBCDCD_STATE_UNCONFIGURED;
+ state = USBCDCD_STATE_UNCONFIGURED;
/* Set the USB stack mode to Device mode with VBUS monitoring */
- //USBStackModeSet(0, eUSBModeForceDevice, 0);
+ USBStackModeSet(0, eUSBModeForceDevice, 0);
USBBufferInit(&txBuffer);
USBBufferInit(&rxBuffer);
- /*USBDComposite = USBDCDCInit(0, &g_sCDCDevice);
+ USBDComposite = USBDCDCInit(0, &g_sCDCDevice);
if (!USBDComposite)
{
System_abort("Error initializing the serial device");
- }*/
+ }
}