The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Committer:
AnnaBridge
Date:
Thu Nov 08 11:45:42 2018 +0000
Revision:
171:3a7713b1edbc
Parent:
TARGET_MAX32625PICO/TARGET_Maxim/TARGET_MAX32625/mxc/icc.h@169:a7c7b631e539
mbed library. Release version 164

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Anna Bridge 169:a7c7b631e539 1 /**
Anna Bridge 169:a7c7b631e539 2 * @file icc.h
Anna Bridge 169:a7c7b631e539 3 * @brief Instruction Cache Controller function prototypes and data types.
Anna Bridge 169:a7c7b631e539 4 */
Anna Bridge 169:a7c7b631e539 5
Anna Bridge 169:a7c7b631e539 6 /* ****************************************************************************
Anna Bridge 169:a7c7b631e539 7 * Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved.
Anna Bridge 169:a7c7b631e539 8 *
Anna Bridge 169:a7c7b631e539 9 * Permission is hereby granted, free of charge, to any person obtaining a
Anna Bridge 169:a7c7b631e539 10 * copy of this software and associated documentation files (the "Software"),
Anna Bridge 169:a7c7b631e539 11 * to deal in the Software without restriction, including without limitation
Anna Bridge 169:a7c7b631e539 12 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
Anna Bridge 169:a7c7b631e539 13 * and/or sell copies of the Software, and to permit persons to whom the
Anna Bridge 169:a7c7b631e539 14 * Software is furnished to do so, subject to the following conditions:
Anna Bridge 169:a7c7b631e539 15 *
Anna Bridge 169:a7c7b631e539 16 * The above copyright notice and this permission notice shall be included
Anna Bridge 169:a7c7b631e539 17 * in all copies or substantial portions of the Software.
Anna Bridge 169:a7c7b631e539 18 *
Anna Bridge 169:a7c7b631e539 19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
Anna Bridge 169:a7c7b631e539 20 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
Anna Bridge 169:a7c7b631e539 21 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
Anna Bridge 169:a7c7b631e539 22 * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES
Anna Bridge 169:a7c7b631e539 23 * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
Anna Bridge 169:a7c7b631e539 24 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
Anna Bridge 169:a7c7b631e539 25 * OTHER DEALINGS IN THE SOFTWARE.
Anna Bridge 169:a7c7b631e539 26 *
Anna Bridge 169:a7c7b631e539 27 * Except as contained in this notice, the name of Maxim Integrated
Anna Bridge 169:a7c7b631e539 28 * Products, Inc. shall not be used except as stated in the Maxim Integrated
Anna Bridge 169:a7c7b631e539 29 * Products, Inc. Branding Policy.
Anna Bridge 169:a7c7b631e539 30 *
Anna Bridge 169:a7c7b631e539 31 * The mere transfer of this software does not imply any licenses
Anna Bridge 169:a7c7b631e539 32 * of trade secrets, proprietary technology, copyrights, patents,
Anna Bridge 169:a7c7b631e539 33 * trademarks, maskwork rights, or any other form of intellectual
Anna Bridge 169:a7c7b631e539 34 * property whatsoever. Maxim Integrated Products, Inc. retains all
Anna Bridge 169:a7c7b631e539 35 * ownership rights.
Anna Bridge 169:a7c7b631e539 36 *
Anna Bridge 169:a7c7b631e539 37 * $Date: 2016-08-15 11:26:49 -0500 (Mon, 15 Aug 2016) $
Anna Bridge 169:a7c7b631e539 38 * $Revision: 24063 $
Anna Bridge 169:a7c7b631e539 39 *
Anna Bridge 169:a7c7b631e539 40 *************************************************************************** */
Anna Bridge 169:a7c7b631e539 41
Anna Bridge 169:a7c7b631e539 42 /* Define to prevent redundant inclusion */
Anna Bridge 169:a7c7b631e539 43 #ifndef _ICC_H_
Anna Bridge 169:a7c7b631e539 44 #define _ICC_H_
Anna Bridge 169:a7c7b631e539 45
Anna Bridge 169:a7c7b631e539 46 /* **** Includes **** */
Anna Bridge 169:a7c7b631e539 47 #include "icc_regs.h"
Anna Bridge 169:a7c7b631e539 48
Anna Bridge 169:a7c7b631e539 49 #ifdef __cplusplus
Anna Bridge 169:a7c7b631e539 50 extern "C" {
Anna Bridge 169:a7c7b631e539 51 #endif
Anna Bridge 169:a7c7b631e539 52
Anna Bridge 169:a7c7b631e539 53 /* Doxy group definition for this peripheral module */
Anna Bridge 169:a7c7b631e539 54
Anna Bridge 169:a7c7b631e539 55 /**
Anna Bridge 169:a7c7b631e539 56 * @defgroup icc Instruction Cache Controller (ICC)
Anna Bridge 169:a7c7b631e539 57 * @ingroup sysconfig
Anna Bridge 169:a7c7b631e539 58 * @{
Anna Bridge 169:a7c7b631e539 59 */
Anna Bridge 169:a7c7b631e539 60 /**
Anna Bridge 169:a7c7b631e539 61 * @brief Enable and flush the instruction cache controller.
Anna Bridge 169:a7c7b631e539 62 */
Anna Bridge 169:a7c7b631e539 63 void ICC_Enable(void);
Anna Bridge 169:a7c7b631e539 64
Anna Bridge 169:a7c7b631e539 65 /**
Anna Bridge 169:a7c7b631e539 66 * @brief Disable the instruction cache controller.
Anna Bridge 169:a7c7b631e539 67 */
Anna Bridge 169:a7c7b631e539 68 void ICC_Disable(void);
Anna Bridge 169:a7c7b631e539 69
Anna Bridge 169:a7c7b631e539 70 /**
Anna Bridge 169:a7c7b631e539 71 * @brief Flush the instruction cache controller.
Anna Bridge 169:a7c7b631e539 72 */
Anna Bridge 169:a7c7b631e539 73 __STATIC_INLINE void ICC_Flush()
Anna Bridge 169:a7c7b631e539 74 {
Anna Bridge 169:a7c7b631e539 75 ICC_Disable();
Anna Bridge 169:a7c7b631e539 76 ICC_Enable();
Anna Bridge 169:a7c7b631e539 77 }
Anna Bridge 169:a7c7b631e539 78 /**@} end of group icc */
Anna Bridge 169:a7c7b631e539 79 #ifdef __cplusplus
Anna Bridge 169:a7c7b631e539 80 }
Anna Bridge 169:a7c7b631e539 81 #endif
Anna Bridge 169:a7c7b631e539 82
Anna Bridge 169:a7c7b631e539 83 #endif /* _ICC_H_ */