Skip to content

Instantly share code, notes, and snippets.

@good5dog5
Created March 20, 2015 04:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save good5dog5/6f96ac78b7c0fdcbe654 to your computer and use it in GitHub Desktop.
Save good5dog5/6f96ac78b7c0fdcbe654 to your computer and use it in GitHub Desktop.
/* main.c +185, enable to be compiled. */
#if 1
/* Create a task to record system log. */
xTaskCreate(system_logger,
(signed portCHAR *) "Logger",
1024 /* stack size */, NULL, tskIDLE_PRIORITY + 1, NULL);
#endif
/* main.c +126, create directory and file before open, avoid to fail. */
handle = host_action(SYS_SYSTEM, "mkdir -p output");
handle = host_action(SYS_SYSTEM, "touch output/syslog");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment