#include static const char name[] = "[APP]Привет мир!"; static const char message[] = "Привет из модуля!"; static int app_main( ) { fb_printf("[%s]\n", message); return 2 + 2; } module_info_t __attribute__((section(".minit"))) init(env_t *env) { init_env(env); fb_printf("[%s]\n", message); return (module_info_t){ .name = (char *)&name, .message = (char *)&message, .type = 0, .data_size = 0, .data = (void *)&app_main, .err_code = 0, .module_id = 0, .irq = 0, .irq_handler = 0, .get_func = 0, .after_init = 0 }; }