// SPDX-FileCopyrightText: 2024 Cesanta Software Limited
// SPDX-License-Identifier: GPL-2.0-only or commercial
// Generated by Mongoose Wizard, https://mongoose.ws/wizard/

#include "mongoose_glue.h"

static void blink_timer(void *arg) {
	(void)arg;
}

int main(void) {
	// This blocks forever. Call it at the end of main(), or in a
	// separate RTOS task. Give that task 8k stack space.
	mongoose_init();
	mg_timer_add(&g_mgr, 1000, MG_TIMER_REPEAT, blink_timer, NULL);
	for (;;) {
		mongoose_poll();
	}

	return 0;
}
