Roy Want / Mbed OS beaconCompileReadyFork
Committer:
roywant
Date:
Mon Sep 19 00:59:11 2016 +0000
Revision:
0:ed0152b5c495
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
roywant 0:ed0152b5c495 1 /* mbed Microcontroller Library
roywant 0:ed0152b5c495 2 * Copyright (c) 2006-2015 ARM Limited
roywant 0:ed0152b5c495 3 *
roywant 0:ed0152b5c495 4 * Licensed under the Apache License, Version 2.0 (the "License");
roywant 0:ed0152b5c495 5 * you may not use this file except in compliance with the License.
roywant 0:ed0152b5c495 6 * You may obtain a copy of the License at
roywant 0:ed0152b5c495 7 *
roywant 0:ed0152b5c495 8 * http://www.apache.org/licenses/LICENSE-2.0
roywant 0:ed0152b5c495 9 *
roywant 0:ed0152b5c495 10 * Unless required by applicable law or agreed to in writing, software
roywant 0:ed0152b5c495 11 * distributed under the License is distributed on an "AS IS" BASIS,
roywant 0:ed0152b5c495 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
roywant 0:ed0152b5c495 13 * See the License for the specific language governing permissions and
roywant 0:ed0152b5c495 14 * limitations under the License.
roywant 0:ed0152b5c495 15 */
roywant 0:ed0152b5c495 16
roywant 0:ed0152b5c495 17 #include "ConfigParamsPersistence.h"
roywant 0:ed0152b5c495 18
roywant 0:ed0152b5c495 19 #ifndef TARGET_NRF51822 /* Persistent storage supported on nrf51 platforms */
roywant 0:ed0152b5c495 20 /**
roywant 0:ed0152b5c495 21 * When not using an nRF51-based target then persistent storage is not available.
roywant 0:ed0152b5c495 22 */
roywant 0:ed0152b5c495 23 #warning "EddystoneService is not configured to store configuration data in non-volatile memory"
roywant 0:ed0152b5c495 24
roywant 0:ed0152b5c495 25 bool loadEddystoneServiceConfigParams(EddystoneService::EddystoneParams_t *paramsP)
roywant 0:ed0152b5c495 26 {
roywant 0:ed0152b5c495 27 /* Avoid compiler warnings */
roywant 0:ed0152b5c495 28 (void) paramsP;
roywant 0:ed0152b5c495 29
roywant 0:ed0152b5c495 30 /*
roywant 0:ed0152b5c495 31 * Do nothing and let the main program set Eddystone params to
roywant 0:ed0152b5c495 32 * defaults
roywant 0:ed0152b5c495 33 */
roywant 0:ed0152b5c495 34 return false;
roywant 0:ed0152b5c495 35 }
roywant 0:ed0152b5c495 36
roywant 0:ed0152b5c495 37 void saveEddystoneServiceConfigParams(const EddystoneService::EddystoneParams_t *paramsP)
roywant 0:ed0152b5c495 38 {
roywant 0:ed0152b5c495 39 /* Avoid compiler warnings */
roywant 0:ed0152b5c495 40 (void) paramsP;
roywant 0:ed0152b5c495 41
roywant 0:ed0152b5c495 42 /* Do nothing... */
roywant 0:ed0152b5c495 43 return;
roywant 0:ed0152b5c495 44 }
roywant 0:ed0152b5c495 45 #endif /* #ifdef TARGET_NRF51822 */