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.
Dependencies: platform_drivers
app/main.c@2:eb624ef78449, 2021-09-24 (annotated)
- Committer:
- epena
- Date:
- Fri Sep 24 19:07:29 2021 +0800
- Revision:
- 2:eb624ef78449
- Parent:
- 1:c0429edee15b
Deleting the redefinition of data_capture_ops
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
epena | 1:c0429edee15b | 1 | /***************************************************************************//** |
epena | 1:c0429edee15b | 2 | * @file main.c |
epena | 1:c0429edee15b | 3 | * @brief Main interface for AD7768-1 IIO firmware application |
epena | 1:c0429edee15b | 4 | * @details |
epena | 1:c0429edee15b | 5 | ******************************************************************************** |
epena | 1:c0429edee15b | 6 | * Copyright (c) 2021 Analog Devices, Inc. |
epena | 1:c0429edee15b | 7 | * All rights reserved. |
epena | 1:c0429edee15b | 8 | * |
epena | 1:c0429edee15b | 9 | * This software is proprietary to Analog Devices, Inc. and its licensors. |
epena | 1:c0429edee15b | 10 | * By using this software you agree to the terms of the associated |
epena | 1:c0429edee15b | 11 | * Analog Devices Software License Agreement. |
epena | 1:c0429edee15b | 12 | *******************************************************************************/ |
epena | 1:c0429edee15b | 13 | |
epena | 1:c0429edee15b | 14 | /******************************************************************************/ |
epena | 1:c0429edee15b | 15 | /***************************** Include Files **********************************/ |
epena | 1:c0429edee15b | 16 | /******************************************************************************/ |
epena | 1:c0429edee15b | 17 | #include <assert.h> |
epena | 1:c0429edee15b | 18 | |
epena | 1:c0429edee15b | 19 | #include "ad77681_iio.h" |
epena | 1:c0429edee15b | 20 | #include "error.h" |
epena | 1:c0429edee15b | 21 | |
epena | 1:c0429edee15b | 22 | /******************************************************************************/ |
epena | 1:c0429edee15b | 23 | /********************* Macros and Constants Definition ************************/ |
epena | 1:c0429edee15b | 24 | /******************************************************************************/ |
epena | 1:c0429edee15b | 25 | |
epena | 1:c0429edee15b | 26 | /******************************************************************************/ |
epena | 1:c0429edee15b | 27 | /******************** Variables and User Defined Data Types *******************/ |
epena | 1:c0429edee15b | 28 | /******************************************************************************/ |
epena | 1:c0429edee15b | 29 | |
epena | 1:c0429edee15b | 30 | /******************************************************************************/ |
epena | 1:c0429edee15b | 31 | /************************** Functions Declaration *****************************/ |
epena | 1:c0429edee15b | 32 | /******************************************************************************/ |
epena | 1:c0429edee15b | 33 | |
epena | 1:c0429edee15b | 34 | /******************************************************************************/ |
epena | 1:c0429edee15b | 35 | /************************** Functions Definition ******************************/ |
epena | 1:c0429edee15b | 36 | /******************************************************************************/ |
epena | 1:c0429edee15b | 37 | |
epena | 1:c0429edee15b | 38 | /* @brief Main function |
epena | 1:c0429edee15b | 39 | * @details This is a main entry function for firmware application |
epena | 1:c0429edee15b | 40 | */ |
epena | 1:c0429edee15b | 41 | int main(void) |
epena | 1:c0429edee15b | 42 | { |
epena | 1:c0429edee15b | 43 | if (ad77681_iio_initialize() == FAILURE) { |
epena | 1:c0429edee15b | 44 | assert(false); |
epena | 1:c0429edee15b | 45 | } |
epena | 1:c0429edee15b | 46 | |
epena | 1:c0429edee15b | 47 | while (true) { |
epena | 1:c0429edee15b | 48 | // Execute forever loop |
epena | 1:c0429edee15b | 49 | ad77681_iio_event_handler(); |
epena | 1:c0429edee15b | 50 | } |
epena | 1:c0429edee15b | 51 | |
epena | 1:c0429edee15b | 52 | // this line should never be reached |
epena | 1:c0429edee15b | 53 | return (FAILURE); |
epena | 1:c0429edee15b | 54 | } |