Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void handle_periodic_tasks_ap(void) {
- FILE *f = fopen("/home/myusername/file.txt", "w");
- if (f == NULL)
- {
- printf("Error opening file!\n");
- exit(1);
- }
- /* print some text */
- const char *text = "Write this to the file";
- fprintf(f, "Some text: %s\n", text);
- fclose(f);
- if (sys_time_check_and_ack_timer(sensors_tid))
- sensors_task();
- if (sys_time_check_and_ack_timer(navigation_tid))
- navigation_task();
- ....
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement