Skip to content

Instantly share code, notes, and snippets.

@ksksue
Created December 5, 2014 04:08
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 ksksue/36ecbe42b4328e344dcf to your computer and use it in GitHub Desktop.
Save ksksue/36ecbe42b4328e344dcf to your computer and use it in GitHub Desktop.
int main(void)
{
// Initialize
leds_init();
timers_init();
buttons_init();
APP_GPIOTE_INIT(1);
uart_init();
ble_stack_init();
scheduler_init();
gap_params_init();
services_init();
advertising_init();
conn_params_init();
sec_params_init();
advertising_start();
pstorage_test_store_and_load();
// Enter main loop
for (;;)
{
app_sched_execute();
power_manage();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment