mbed os with nrf51 internal bandgap enabled to read battery level
Dependents: BLE_file_test BLE_Blink ExternalEncoder
targets/TARGET_STM/TARGET_STM32L4/device.h@0:f269e3021894, 2016-10-23 (annotated)
- Committer:
- elessair
- Date:
- Sun Oct 23 15:10:02 2016 +0000
- Revision:
- 0:f269e3021894
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
elessair | 0:f269e3021894 | 1 | // The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. |
elessair | 0:f269e3021894 | 2 | // Check the 'features' section of the target description in 'targets.json' for more details. |
elessair | 0:f269e3021894 | 3 | /* mbed Microcontroller Library |
elessair | 0:f269e3021894 | 4 | ******************************************************************************* |
elessair | 0:f269e3021894 | 5 | * Copyright (c) 2014, STMicroelectronics |
elessair | 0:f269e3021894 | 6 | * All rights reserved. |
elessair | 0:f269e3021894 | 7 | * |
elessair | 0:f269e3021894 | 8 | * Redistribution and use in source and binary forms, with or without |
elessair | 0:f269e3021894 | 9 | * modification, are permitted provided that the following conditions are met: |
elessair | 0:f269e3021894 | 10 | * |
elessair | 0:f269e3021894 | 11 | * 1. Redistributions of source code must retain the above copyright notice, |
elessair | 0:f269e3021894 | 12 | * this list of conditions and the following disclaimer. |
elessair | 0:f269e3021894 | 13 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
elessair | 0:f269e3021894 | 14 | * this list of conditions and the following disclaimer in the documentation |
elessair | 0:f269e3021894 | 15 | * and/or other materials provided with the distribution. |
elessair | 0:f269e3021894 | 16 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
elessair | 0:f269e3021894 | 17 | * may be used to endorse or promote products derived from this software |
elessair | 0:f269e3021894 | 18 | * without specific prior written permission. |
elessair | 0:f269e3021894 | 19 | * |
elessair | 0:f269e3021894 | 20 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
elessair | 0:f269e3021894 | 21 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
elessair | 0:f269e3021894 | 22 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
elessair | 0:f269e3021894 | 23 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
elessair | 0:f269e3021894 | 24 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
elessair | 0:f269e3021894 | 25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
elessair | 0:f269e3021894 | 26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
elessair | 0:f269e3021894 | 27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
elessair | 0:f269e3021894 | 28 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
elessair | 0:f269e3021894 | 29 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
elessair | 0:f269e3021894 | 30 | ******************************************************************************* |
elessair | 0:f269e3021894 | 31 | */ |
elessair | 0:f269e3021894 | 32 | #ifndef MBED_DEVICE_H |
elessair | 0:f269e3021894 | 33 | #define MBED_DEVICE_H |
elessair | 0:f269e3021894 | 34 | |
elessair | 0:f269e3021894 | 35 | //======================================= |
elessair | 0:f269e3021894 | 36 | #define DEVICE_ID_LENGTH 24 |
elessair | 0:f269e3021894 | 37 | |
elessair | 0:f269e3021894 | 38 | #include "objects.h" |
elessair | 0:f269e3021894 | 39 | |
elessair | 0:f269e3021894 | 40 | #endif |