31 lines
773 B
C
31 lines
773 B
C
#ifndef __CONFIG_GLOBALS_H__
|
|
#define __CONFIG_GLOBALS_H__
|
|
|
|
// Includes:
|
|
|
|
#include "fsl_common.h"
|
|
#include "basic_types.h"
|
|
|
|
// Typedefs:
|
|
|
|
typedef enum {
|
|
ConfigBufferId_HardwareConfig,
|
|
ConfigBufferId_StagingUserConfig,
|
|
ConfigBufferId_ValidatedUserConfig,
|
|
} config_buffer_id_t;
|
|
|
|
// Variables:
|
|
|
|
extern bool ParserRunDry;
|
|
extern config_buffer_t HardwareConfigBuffer;
|
|
extern config_buffer_t StagingUserConfigBuffer;
|
|
extern config_buffer_t ValidatedUserConfigBuffer;
|
|
|
|
// Functions:
|
|
|
|
bool IsConfigBufferIdValid(config_buffer_id_t configBufferId);
|
|
config_buffer_t* ConfigBufferIdToConfigBuffer(config_buffer_id_t configBufferId);
|
|
uint16_t ConfigBufferIdToBufferSize(config_buffer_id_t configBufferId);
|
|
|
|
#endif
|