Add ParsingStage_* enums.
This commit is contained in:
@@ -16,7 +16,7 @@ void UsbCommand_ApplyConfig(void)
|
|||||||
|
|
||||||
SET_USB_BUFFER_UINT8(0, parseConfigStatus);
|
SET_USB_BUFFER_UINT8(0, parseConfigStatus);
|
||||||
SET_USB_BUFFER_UINT16(1, StagingUserConfigBuffer.offset);
|
SET_USB_BUFFER_UINT16(1, StagingUserConfigBuffer.offset);
|
||||||
SET_USB_BUFFER_UINT8(3, 0);
|
SET_USB_BUFFER_UINT8(3, ParsingStage_Validate);
|
||||||
|
|
||||||
if (parseConfigStatus != UsbStatusCode_Success) {
|
if (parseConfigStatus != UsbStatusCode_Success) {
|
||||||
return;
|
return;
|
||||||
@@ -39,7 +39,7 @@ void UsbCommand_ApplyConfig(void)
|
|||||||
|
|
||||||
SET_USB_BUFFER_UINT8(0, parseConfigStatus);
|
SET_USB_BUFFER_UINT8(0, parseConfigStatus);
|
||||||
SET_USB_BUFFER_UINT16(1, ValidatedUserConfigBuffer.offset);
|
SET_USB_BUFFER_UINT16(1, ValidatedUserConfigBuffer.offset);
|
||||||
SET_USB_BUFFER_UINT8(3, 1);
|
SET_USB_BUFFER_UINT8(3, ParsingStage_Apply);
|
||||||
|
|
||||||
if (parseConfigStatus != UsbStatusCode_Success) {
|
if (parseConfigStatus != UsbStatusCode_Success) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -1,6 +1,13 @@
|
|||||||
#ifndef __USB_COMMAND_APPLY_CONFIG_H__
|
#ifndef __USB_COMMAND_APPLY_CONFIG_H__
|
||||||
#define __USB_COMMAND_APPLY_CONFIG_H__
|
#define __USB_COMMAND_APPLY_CONFIG_H__
|
||||||
|
|
||||||
|
// Typedefs:
|
||||||
|
|
||||||
|
typedef enum {
|
||||||
|
ParsingStage_Validate,
|
||||||
|
ParsingStage_Apply,
|
||||||
|
} parsing_stage_t;
|
||||||
|
|
||||||
// Functions:
|
// Functions:
|
||||||
|
|
||||||
void UsbCommand_ApplyConfig(void);
|
void UsbCommand_ApplyConfig(void);
|
||||||
|
|||||||
Reference in New Issue
Block a user