Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp@4:2d26955fa1bf, 2019-09-04 (annotated)
- Committer:
- malavikasaji
- Date:
- Wed Sep 04 20:25:06 2019 +0000
- Revision:
- 4:2d26955fa1bf
- Parent:
- 3:a30867f9a191
Testing issue tracking.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
malavikasaji | 1:f3c08ef83294 | 1 | /*************************************************************************//** |
malavikasaji | 1:f3c08ef83294 | 2 | * @file main.cpp |
malavikasaji | 1:f3c08ef83294 | 3 | * @brief Main application code for AD1234 firmware example program |
malavikasaji | 1:f3c08ef83294 | 4 | * @author ssmith (sean.smith@analog.com) |
malavikasaji | 1:f3c08ef83294 | 5 | ****************************************************************************** |
malavikasaji | 1:f3c08ef83294 | 6 | * Copyright (c) 2019 Analog Devices, Inc. |
malavikasaji | 1:f3c08ef83294 | 7 | * |
malavikasaji | 1:f3c08ef83294 | 8 | * All rights reserved. |
malavikasaji | 1:f3c08ef83294 | 9 | * |
malavikasaji | 1:f3c08ef83294 | 10 | * Redistribution and use in source and binary forms, with or without |
malavikasaji | 1:f3c08ef83294 | 11 | * modification, are permitted provided that the following conditions are met: |
malavikasaji | 1:f3c08ef83294 | 12 | * - Redistributions of source code must retain the above copyright notice, |
malavikasaji | 1:f3c08ef83294 | 13 | * this list of conditions and the following disclaimer. |
malavikasaji | 1:f3c08ef83294 | 14 | * - Redistributions in binary form must reproduce the above copyright notice, |
malavikasaji | 1:f3c08ef83294 | 15 | * this list of conditions and the following disclaimer in the documentation |
malavikasaji | 1:f3c08ef83294 | 16 | * and/or other materials provided with the distribution. |
malavikasaji | 1:f3c08ef83294 | 17 | * - Modified versions of the software must be conspicuously marked as such. |
malavikasaji | 1:f3c08ef83294 | 18 | * - This software is licensed solely and exclusively for use with |
malavikasaji | 1:f3c08ef83294 | 19 | * processors/products manufactured by or for Analog Devices, Inc. |
malavikasaji | 1:f3c08ef83294 | 20 | * - This software may not be combined or merged with other code in any manner |
malavikasaji | 1:f3c08ef83294 | 21 | * that would cause the software to become subject to terms and |
malavikasaji | 1:f3c08ef83294 | 22 | * conditions which differ from those listed here. |
malavikasaji | 1:f3c08ef83294 | 23 | * - Neither the name of Analog Devices, Inc. nor the names of its |
malavikasaji | 1:f3c08ef83294 | 24 | * contributors may be used to endorse or promote products derived |
malavikasaji | 1:f3c08ef83294 | 25 | * from this software without specific prior written permission. |
malavikasaji | 1:f3c08ef83294 | 26 | * - The use of this software may or may not infringe the patent rights |
malavikasaji | 1:f3c08ef83294 | 27 | * of one or more patent holders. This license does not release you from |
malavikasaji | 1:f3c08ef83294 | 28 | * the requirement that you obtain separate licenses from these patent |
malavikasaji | 1:f3c08ef83294 | 29 | * holders to use this software. |
malavikasaji | 1:f3c08ef83294 | 30 | * |
malavikasaji | 1:f3c08ef83294 | 31 | * THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. AND CONTRIBUTORS "AS IS" |
malavikasaji | 1:f3c08ef83294 | 32 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
malavikasaji | 1:f3c08ef83294 | 33 | * NON-INFRINGEMENT, TITLE, MERCHANTABILITY AND FITNESS FOR A |
malavikasaji | 1:f3c08ef83294 | 34 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, |
malavikasaji | 1:f3c08ef83294 | 35 | * INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
malavikasaji | 1:f3c08ef83294 | 36 | * SPECIAL, EXEMPLARY, PUNITIVE OR CONSEQUENTIAL DAMAGES |
malavikasaji | 1:f3c08ef83294 | 37 | * (INCLUDING, BUT NOT LIMITED TO, DAMAGES ARISING OUT OF CLAIMS OF |
malavikasaji | 1:f3c08ef83294 | 38 | * INTELLECTUAL PROPERTY RIGHTS INFRINGEMENT; PROCUREMENT OF SUBSTITUTE |
malavikasaji | 1:f3c08ef83294 | 39 | * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
malavikasaji | 1:f3c08ef83294 | 40 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
malavikasaji | 1:f3c08ef83294 | 41 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
malavikasaji | 1:f3c08ef83294 | 42 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
malavikasaji | 1:f3c08ef83294 | 43 | * POSSIBILITY OF SUCH DAMAGE. |
malavikasaji | 1:f3c08ef83294 | 44 | * |
malavikasaji | 1:f3c08ef83294 | 45 | * 20180927-7CBSD SLA |
malavikasaji | 1:f3c08ef83294 | 46 | *****************************************************************************/ |
malavikasaji | 0:e93bedfeaed7 | 47 | |
malavikasaji | 0:e93bedfeaed7 | 48 | |
malavikasaji | 0:e93bedfeaed7 | 49 | #include "mbed.h" |
malavikasaji | 0:e93bedfeaed7 | 50 | |
malavikasaji | 0:e93bedfeaed7 | 51 | Serial pc(USBTX, USBRX); // tx, rx |
malavikasaji | 0:e93bedfeaed7 | 52 | DigitalOut led1(LED1); |
malavikasaji | 0:e93bedfeaed7 | 53 | |
malavikasaji | 0:e93bedfeaed7 | 54 | |
malavikasaji | 0:e93bedfeaed7 | 55 | // main() runs in its own thread in the OS |
malavikasaji | 0:e93bedfeaed7 | 56 | int main() |
malavikasaji | 0:e93bedfeaed7 | 57 | { |
malavikasaji | 4:2d26955fa1bf | 58 | // testing issue tracking |
malavikasaji | 0:e93bedfeaed7 | 59 | } |
malavikasaji | 0:e93bedfeaed7 | 60 |