Nordic nrf51 sdk sources. Mirrored from https://github.com/ARMmbed/nrf51-sdk.

Dependents:   nRF51822 nRF51822

Committer:
vcoubard
Date:
Thu Apr 07 17:37:40 2016 +0100
Revision:
19:47192cb9def7
Parent:
10:233fefd8162b
Child:
20:a90c48eb1d30
Synchronized with git rev 9251259f
Author: Liyou Zhou
Copy over coresponding files from nordic-sdk 9.0.0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
vcoubard 19:47192cb9def7 1 /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
vcoubard 19:47192cb9def7 2 *
vcoubard 19:47192cb9def7 3 * The information contained herein is property of Nordic Semiconductor ASA.
vcoubard 19:47192cb9def7 4 * Terms and conditions of usage are described in detail in NORDIC
vcoubard 19:47192cb9def7 5 * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
vcoubard 19:47192cb9def7 6 *
vcoubard 19:47192cb9def7 7 * Licensees are granted free, non-transferable use of the information. NO
vcoubard 19:47192cb9def7 8 * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
vcoubard 19:47192cb9def7 9 * the file.
vcoubard 19:47192cb9def7 10 *
Vincent Coubard 0:f2542974c862 11 */
Vincent Coubard 0:f2542974c862 12
Vincent Coubard 0:f2542974c862 13 #include "softdevice_handler_appsh.h"
Vincent Coubard 0:f2542974c862 14 #include "app_scheduler.h"
Vincent Coubard 0:f2542974c862 15 #include <string.h>
Vincent Coubard 0:f2542974c862 16
Vincent Coubard 0:f2542974c862 17 void softdevice_evt_get(void * p_event_data, uint16_t event_size)
Vincent Coubard 0:f2542974c862 18 {
Vincent Coubard 0:f2542974c862 19 APP_ERROR_CHECK_BOOL(event_size == 0);
Vincent Coubard 0:f2542974c862 20 intern_softdevice_events_execute();
Vincent Coubard 0:f2542974c862 21 }
Vincent Coubard 0:f2542974c862 22
Vincent Coubard 0:f2542974c862 23 uint32_t softdevice_evt_schedule(void)
Vincent Coubard 0:f2542974c862 24 {
Vincent Coubard 0:f2542974c862 25 return app_sched_event_put(NULL, 0, softdevice_evt_get);
vcoubard 1:ebc0e0ef0a11 26 }