1 /* 2 * Copyright (c) 2024 Intel Corporation 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include <zephyr/kernel.h> 8 #include <zephyr/llext/symbol.h> 9 10 #include <app_api.h> 11 start(void)12int start(void) 13 { 14 int i; 15 16 for (i = 0; i < 5; i++) { 17 struct channel_tick_data ctd = { .l = i }; 18 19 printk("[ext2]Publishing tick\n"); 20 publish(CHAN_TICK, &ctd, sizeof(ctd)); 21 k_sleep(K_SECONDS(1)); 22 } 23 24 return 0; 25 } 26 EXPORT_SYMBOL(start); 27