|
@@ -229,6 +229,7 @@ extern "C" {
|
229
|
229
|
* @note If you define GFX_OS_EXTRA_DEINIT_FUNCTION in your gfxconf.h file the macro is the
|
230
|
230
|
* name of a void function with no parameters that is called immediately before
|
231
|
231
|
* operating system de-initialisation (as ugfx is exiting).
|
|
232
|
+ * @note If GFX_OS_CALL_UGFXMAIN is set uGFXMain() is called after all initialisation is complete.
|
232
|
233
|
*
|
233
|
234
|
* @api
|
234
|
235
|
*/
|
|
@@ -243,6 +244,17 @@ extern "C" {
|
243
|
244
|
*/
|
244
|
245
|
void gfxDeinit(void);
|
245
|
246
|
|
|
247
|
+ #if GFX_OS_CALL_UGFXMAIN || defined(__DOXYGEN__)
|
|
248
|
+ /**
|
|
249
|
+ * @brief The function containing all the user uGFX application code.
|
|
250
|
+ *
|
|
251
|
+ * @note This is called by gfxInit() and is expected to never return.
|
|
252
|
+ * It is defined by the user.
|
|
253
|
+ *
|
|
254
|
+ * @pre GFX_OS_CALL_UGFXMAIN is GFXON
|
|
255
|
+ */
|
|
256
|
+ void uGFXMain(void);
|
|
257
|
+ #endif
|
246
|
258
|
#ifdef __cplusplus
|
247
|
259
|
}
|
248
|
260
|
#endif
|