test

Dependencies:   mbed Watchdog

Dependents:   STM32-MC_node

Committer:
ommpy
Date:
Mon Jul 06 17:18:59 2020 +0530
Revision:
0:d383e2dee0f7
first commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ommpy 0:d383e2dee0f7 1
ommpy 0:d383e2dee0f7 2 /** \addtogroup hal */
ommpy 0:d383e2dee0f7 3 /** @{*/
ommpy 0:d383e2dee0f7 4 /*
ommpy 0:d383e2dee0f7 5 * Copyright (c) 2006-2016, ARM Limited, All Rights Reserved
ommpy 0:d383e2dee0f7 6 * SPDX-License-Identifier: Apache-2.0
ommpy 0:d383e2dee0f7 7 *
ommpy 0:d383e2dee0f7 8 * Licensed under the Apache License, Version 2.0 (the "License"); you may
ommpy 0:d383e2dee0f7 9 * not use this file except in compliance with the License.
ommpy 0:d383e2dee0f7 10 * You may obtain a copy of the License at
ommpy 0:d383e2dee0f7 11 *
ommpy 0:d383e2dee0f7 12 * http://www.apache.org/licenses/LICENSE-2.0
ommpy 0:d383e2dee0f7 13 *
ommpy 0:d383e2dee0f7 14 * Unless required by applicable law or agreed to in writing, software
ommpy 0:d383e2dee0f7 15 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
ommpy 0:d383e2dee0f7 16 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
ommpy 0:d383e2dee0f7 17 * See the License for the specific language governing permissions and
ommpy 0:d383e2dee0f7 18 * limitations under the License.
ommpy 0:d383e2dee0f7 19 */
ommpy 0:d383e2dee0f7 20
ommpy 0:d383e2dee0f7 21 #ifndef __DRIVER_COMMON_H
ommpy 0:d383e2dee0f7 22 #define __DRIVER_COMMON_H
ommpy 0:d383e2dee0f7 23
ommpy 0:d383e2dee0f7 24 #include <stddef.h>
ommpy 0:d383e2dee0f7 25 #include <stdint.h>
ommpy 0:d383e2dee0f7 26 #include <stdbool.h>
ommpy 0:d383e2dee0f7 27
ommpy 0:d383e2dee0f7 28 /****** This file has been deprecated since mbed-os-5.5 *****/
ommpy 0:d383e2dee0f7 29
ommpy 0:d383e2dee0f7 30 #define ARM_DRIVER_VERSION_MAJOR_MINOR(major,minor) (((major) << 8) | (minor))
ommpy 0:d383e2dee0f7 31
ommpy 0:d383e2dee0f7 32 /**
ommpy 0:d383e2dee0f7 33 \brief Driver Version
ommpy 0:d383e2dee0f7 34 */
ommpy 0:d383e2dee0f7 35 typedef struct _ARM_DRIVER_VERSION {
ommpy 0:d383e2dee0f7 36 uint16_t api; ///< API version
ommpy 0:d383e2dee0f7 37 uint16_t drv; ///< Driver version
ommpy 0:d383e2dee0f7 38 } ARM_DRIVER_VERSION;
ommpy 0:d383e2dee0f7 39
ommpy 0:d383e2dee0f7 40 /* General return codes */
ommpy 0:d383e2dee0f7 41 #define ARM_DRIVER_OK 0 ///< Operation succeeded
ommpy 0:d383e2dee0f7 42 #define ARM_DRIVER_ERROR -1 ///< Unspecified error
ommpy 0:d383e2dee0f7 43 #define ARM_DRIVER_ERROR_BUSY -2 ///< Driver is busy
ommpy 0:d383e2dee0f7 44 #define ARM_DRIVER_ERROR_TIMEOUT -3 ///< Timeout occurred
ommpy 0:d383e2dee0f7 45 #define ARM_DRIVER_ERROR_UNSUPPORTED -4 ///< Operation not supported
ommpy 0:d383e2dee0f7 46 #define ARM_DRIVER_ERROR_PARAMETER -5 ///< Parameter error
ommpy 0:d383e2dee0f7 47 #define ARM_DRIVER_ERROR_SPECIFIC -6 ///< Start of driver specific errors
ommpy 0:d383e2dee0f7 48
ommpy 0:d383e2dee0f7 49 /**
ommpy 0:d383e2dee0f7 50 \brief General power states
ommpy 0:d383e2dee0f7 51 */
ommpy 0:d383e2dee0f7 52 typedef enum _ARM_POWER_STATE {
ommpy 0:d383e2dee0f7 53 ARM_POWER_OFF, ///< Power off: no operation possible
ommpy 0:d383e2dee0f7 54 ARM_POWER_LOW, ///< Low Power mode: retain state, detect and signal wake-up events
ommpy 0:d383e2dee0f7 55 ARM_POWER_FULL ///< Power on: full operation at maximum performance
ommpy 0:d383e2dee0f7 56 } ARM_POWER_STATE;
ommpy 0:d383e2dee0f7 57
ommpy 0:d383e2dee0f7 58 #endif /* __DRIVER_COMMON_H */
ommpy 0:d383e2dee0f7 59
ommpy 0:d383e2dee0f7 60 /** @}*/