This commit is contained in:
2018-02-03 11:54:22 +01:00
parent 96a7b58091
commit 611b38c5e6
39 changed files with 260 additions and 487 deletions
-1
View File
@@ -7,7 +7,6 @@
#define TPL_INTERNAL
#include "_tpl_internal.h"
#include "_tpl_init.h"
/** Allocate data structure and set defaults */
error_t TPL_preInit(Unit *unit)
-20
View File
@@ -1,20 +0,0 @@
//
// Created by MightyPork on 2018/02/03.
//
#ifndef GEX_F072_TPL_INIT_H
#define GEX_F072_TPL_INIT_H
#ifndef TPL_INTERNAL
#error bad include!
#endif
#include "unit_base.h"
/** Finalize unit set-up */
error_t TPL_init(Unit *unit);
/** Tear down the unit */
void TPL_deInit(Unit *unit);
#endif //GEX_F072_TPL_INIT_H
+25
View File
@@ -18,4 +18,29 @@ struct priv {
// internal state
};
/** Allocate data structure and set defaults */
error_t TPL_preInit(Unit *unit);
/** Load from a binary buffer stored in Flash */
void TPL_loadBinary(Unit *unit, PayloadParser *pp);
/** Write to a binary buffer for storing in Flash */
void TPL_writeBinary(Unit *unit, PayloadBuilder *pb);
// ------------------------------------------------------------------------
/** Parse a key-value pair from the INI file */
error_t TPL_loadIni(Unit *unit, const char *key, const char *value);
/** Generate INI file section for the unit */
void TPL_writeIni(Unit *unit, IniWriter *iw);
// ------------------------------------------------------------------------
/** Finalize unit set-up */
error_t TPL_init(Unit *unit);
/** Tear down the unit */
void TPL_deInit(Unit *unit);
#endif //GEX_F072_TPL_INTERNAL_H
-1
View File
@@ -7,7 +7,6 @@
#define TPL_INTERNAL
#include "_tpl_internal.h"
#include "_tpl_settings.h"
/** Load from a binary buffer stored in Flash */
void TPL_loadBinary(Unit *unit, PayloadParser *pp)
-31
View File
@@ -1,31 +0,0 @@
//
// Created by MightyPork on 2018/02/03.
//
#ifndef GEX_F072_TPL_SETTINGS_H
#define GEX_F072_TPL_SETTINGS_H
#ifndef TPL_INTERNAL
#error bad include!
#endif
#include "unit_base.h"
/** Allocate data structure and set defaults */
error_t TPL_preInit(Unit *unit);
/** Load from a binary buffer stored in Flash */
void TPL_loadBinary(Unit *unit, PayloadParser *pp);
/** Write to a binary buffer for storing in Flash */
void TPL_writeBinary(Unit *unit, PayloadBuilder *pb);
// ------------------------------------------------------------------------
/** Parse a key-value pair from the INI file */
error_t TPL_loadIni(Unit *unit, const char *key, const char *value);
/** Generate INI file section for the unit */
void TPL_writeIni(Unit *unit, IniWriter *iw);
#endif //GEX_F072_TPL_SETTINGS_H
-2
View File
@@ -7,8 +7,6 @@
#define TPL_INTERNAL
#include "_tpl_internal.h"
#include "_tpl_settings.h"
#include "_tpl_init.h"
// ------------------------------------------------------------------------