Skip to content

Instantly share code, notes, and snippets.

@lupyuen
Created April 17, 2019 10:12
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 lupyuen/e6efd675c3f6fcb7d1470f2c17e6d1fb to your computer and use it in GitHub Desktop.
Save lupyuen/e6efd675c3f6fcb7d1470f2c17e6d1fb to your computer and use it in GitHub Desktop.
void sysinit_app(void) {
/*** Stage 0 */
/* 0.0: os_pkg_init (kernel/os) */
os_pkg_init();
/*** Stage 2 */
/* 2.0: flash_map_init (sys/flash_map) */
flash_map_init();
/*** Stage 20 */
/* 20.0: console_pkg_init (libs/semihosting_console) */
console_pkg_init();
/*** Stage 100 */
/* 100.0: mfg_init (sys/mfg) */
mfg_init();
/* 100.1: modlog_init (sys/log/modlog) */
modlog_init();
/*** Stage 300 */
/* 300.0: oc_init (net/oic) */
oc_init();
/*** Stage 301 */
/* 301.0: oc_register_gatt (net/oic) */
oc_register_gatt();
/* 301.1: oc_register_ip4 (net/oic) */
oc_register_ip4();
/* 301.2: oc_register_ip6 (net/oic) */
oc_register_ip6();
/* 301.3: oc_register_lora (net/oic) */
oc_register_lora();
/* 301.4: oc_register_serial (net/oic) */
oc_register_serial();
/*** Stage 500 */
/* 500.0: sensor_dev_create (hw/sensor/creator) */
sensor_dev_create();
/*** Stage 501 */
/* 501.0: sensor_pkg_init (hw/sensor) */
sensor_pkg_init();
/*** Stage 610 */
/* 610.0: stm32f1_adc_create (libs/adc_stm32f1) */
stm32f1_adc_create();
/*** Stage 620 */
/* 620.0: temp_stm32_create (libs/temp_stm32) */
temp_stm32_create();
/*** Stage 630 */
/* 630.0: hmac_prng_init (libs/hmac_prng) */
hmac_prng_init();
/*** Stage 640 */
/* 640.0: esp8266_create (libs/esp8266) */
esp8266_create();
/*** Stage 650 */
/* 650.0: init_sensor_coap (libs/sensor_coap) */
init_sensor_coap();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment