Moved out the handling of V2 Protocol parameters to a seperate set of files. Added parameter privellages, so that an error can be returned to the host when trying to perform a get/set value action on a parameter without the correct privellages.
This commit is contained in:
parent
32cc2b8d4d
commit
fa8beef82d
8 changed files with 242 additions and 92 deletions
|
@ -43,7 +43,7 @@ int main(void)
|
|||
{
|
||||
SetupHardware();
|
||||
|
||||
V2Protocol_Init();
|
||||
V2Params_LoadEEPROMParamValues();
|
||||
|
||||
printf("AVRISP-MKII Clone\r\n");
|
||||
|
||||
|
@ -100,7 +100,8 @@ void EVENT_USB_Device_ConfigurationChanged(void)
|
|||
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/** Processes incomming V2 Protocol commands from the host, returning a response when required. */
|
||||
void Process_AVRISP_Commands(void)
|
||||
{
|
||||
/* Device must be connected and configured for the task to run */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue