David Kester / nRF51822

Dependents:   GonioTrainer

Fork of nRF51822 by Nordic Semiconductor

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers softdevice_handler_appsh.c Source File

softdevice_handler_appsh.c

00001 /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
00002  *
00003  * The information contained herein is property of Nordic Semiconductor ASA.
00004  * Terms and conditions of usage are described in detail in NORDIC
00005  * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
00006  *
00007  * Licensees are granted free, non-transferable use of the information. NO
00008  * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
00009  * the file.
00010  *
00011  */
00012 
00013 #include "softdevice_handler_appsh.h"
00014 #include "app_scheduler.h"
00015 #include <string.h>
00016 
00017 void softdevice_evt_get(void * p_event_data, uint16_t event_size)
00018 {
00019     APP_ERROR_CHECK_BOOL(event_size == 0);
00020     intern_softdevice_events_execute();
00021 }
00022 
00023 uint32_t softdevice_evt_schedule(void)
00024 {
00025     return app_sched_event_put(NULL, 0, softdevice_evt_get);
00026 }