ads1115 only
Fork of mbed by
Diff: mbed_interface.h
- Revision:
- 44:24d45a770a51
- Parent:
- 43:e2ed12d17f06
- Child:
- 54:71b101360fb9
diff -r e2ed12d17f06 -r 24d45a770a51 mbed_interface.h --- a/mbed_interface.h Fri Oct 26 17:40:46 2012 +0100 +++ b/mbed_interface.h Wed Nov 21 10:49:56 2012 +0000 @@ -1,3 +1,31 @@ +/* mbed Microcontroller Library + * Copyright (c) 2006-2012 ARM Limited + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +#ifndef MBED_INTERFACE_H +#define MBED_INTERFACE_H + +#ifdef __cplusplus +extern "C" { +#endif + /** Functions to control the mbed interface * * mbed Microcontrollers have a built-in interface to provide functionality such as @@ -5,17 +33,6 @@ * system. These functions provide means to control the interface suing semihost * calls it supports. */ - -/* mbed Microcontroller Library - mbed_interface - * Copyright (c) 2009-2011 ARM Limited. All rights reserved. - */ - -#ifndef MBED_INTERFACE_H -#define MBED_INTERFACE_H - -#ifdef __cplusplus -extern "C" { -#endif /** Determine whether the mbed interface is connected, based on whether debug is enabled * @@ -34,7 +51,7 @@ int mbed_interface_reset(void); /** This will disconnect the debug aspect of the interface, so semihosting will be disabled. - * The interface will still support the USB serial aspect + * The interface will still support the USB serial aspect * * @returns * 0 if successful, @@ -43,8 +60,8 @@ int mbed_interface_disconnect(void); /** This will disconnect the debug aspect of the interface, and if the USB cable is not - * connected, also power down the interface. If the USB cable is connected, the interface - * will remain powered up and visible to the host + * connected, also power down the interface. If the USB cable is connected, the interface + * will remain powered up and visible to the host * * @returns * 0 if successful, @@ -64,10 +81,10 @@ int mbed_interface_uid(char *uid); /** This returns a unique 6-byte MAC address, based on the interface UID - * If the interface is not present, it returns a default fixed MAC address (00:02:F7:F0:00:00) + * If the interface is not present, it returns a default fixed MAC address (00:02:F7:F0:00:00) * - * This is a weak function that can be overwritten if you want to provide your own mechanism to - * provide a MAC address. + * This is a weak function that can be overwritten if you want to provide your own mechanism to + * provide a MAC address. * * @param mac A 6-byte array to write the MAC address */