X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/aaa0bed556d0fa424b831418a7ce2531653a8b03..ec6fbb219fc95ffd5f6f9fffd84eeb5f3fd643a3:/Projects/Incomplete/StandaloneProgrammer/StandaloneProgrammer.c diff --git a/Projects/Incomplete/StandaloneProgrammer/StandaloneProgrammer.c b/Projects/Incomplete/StandaloneProgrammer/StandaloneProgrammer.c index e8a863f54..8090b5d15 100644 --- a/Projects/Incomplete/StandaloneProgrammer/StandaloneProgrammer.c +++ b/Projects/Incomplete/StandaloneProgrammer/StandaloneProgrammer.c @@ -1,21 +1,21 @@ /* LUFA Library - Copyright (C) Dean Camera, 2009. + Copyright (C) Dean Camera, 2010. dean [at] fourwalledcubicle [dot] com www.fourwalledcubicle.com */ /* - Copyright 2009 Dean Camera (dean [at] fourwalledcubicle [dot] com) - - Permission to use, copy, modify, and distribute this software - and its documentation for any purpose and without fee is hereby - granted, provided that the above copyright notice appear in all - copies and that both that the copyright notice and this - permission notice and warranty disclaimer appear in supporting - documentation, and that the name of the author not be used in - advertising or publicity pertaining to distribution of the + Copyright 2010 Dean Camera (dean [at] fourwalledcubicle [dot] com) + + Permission to use, copy, modify, distribute, and sell this + software and its documentation for any purpose is hereby granted + without fee, provided that the above copyright notice appear in + all copies and that both that the copyright notice and this + permission notice and warranty disclaimer appear in supporting + documentation, and that the name of the author not be used in + advertising or publicity pertaining to distribution of the software without specific, written prior permission. The author disclaim all warranties with regard to this @@ -57,6 +57,16 @@ static int Disk_getchar(FILE* Stream) return (ByteWasRead ? ReadByte : _FDEV_EOF); } +#if defined(USB_CAN_BE_BOTH) +/** Event to handle mode changes in the library, to clear the FAT library's drive state structure when transitioning + * between modes. This ensures that the library always works with current disk data. + */ +void EVENT_USB_UIDChange(void) +{ + pf_mount(&DiskFATState); +} +#endif + /** Task to determine if the user is wishes to start the programming sequence, and if so executes the * required functions to program the attached target (if any) with the files loaded to the dataflash. */ @@ -78,7 +88,6 @@ void Programmer_Task(void) #endif puts("Reading Configuration File...\r\n"); - if (!(ProgrammerConfig_ProcessConfiguration())) goto EndOfProgCycle;