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.
TARGET_K66F/TOOLCHAIN_IAR/fsl_flexbus.h@172:65be27845400, 2019-02-20 (annotated)
- Committer:
- AnnaBridge
- Date:
- Wed Feb 20 20:53:29 2019 +0000
- Revision:
- 172:65be27845400
- Parent:
- 171:3a7713b1edbc
mbed library release version 165
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AnnaBridge | 143:86740a56073b | 1 | /* |
AnnaBridge | 143:86740a56073b | 2 | * Copyright (c) 2015, Freescale Semiconductor, Inc. |
AnnaBridge | 143:86740a56073b | 3 | * Copyright 2016-2017 NXP |
AnnaBridge | 143:86740a56073b | 4 | * |
AnnaBridge | 143:86740a56073b | 5 | * Redistribution and use in source and binary forms, with or without modification, |
AnnaBridge | 143:86740a56073b | 6 | * are permitted provided that the following conditions are met: |
AnnaBridge | 143:86740a56073b | 7 | * |
AnnaBridge | 143:86740a56073b | 8 | * o Redistributions of source code must retain the above copyright notice, this list |
AnnaBridge | 143:86740a56073b | 9 | * of conditions and the following disclaimer. |
AnnaBridge | 143:86740a56073b | 10 | * |
AnnaBridge | 143:86740a56073b | 11 | * o Redistributions in binary form must reproduce the above copyright notice, this |
AnnaBridge | 143:86740a56073b | 12 | * list of conditions and the following disclaimer in the documentation and/or |
AnnaBridge | 143:86740a56073b | 13 | * other materials provided with the distribution. |
AnnaBridge | 143:86740a56073b | 14 | * |
AnnaBridge | 143:86740a56073b | 15 | * o Neither the name of the copyright holder nor the names of its |
AnnaBridge | 143:86740a56073b | 16 | * contributors may be used to endorse or promote products derived from this |
AnnaBridge | 143:86740a56073b | 17 | * software without specific prior written permission. |
AnnaBridge | 143:86740a56073b | 18 | * |
AnnaBridge | 143:86740a56073b | 19 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
AnnaBridge | 143:86740a56073b | 20 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
AnnaBridge | 143:86740a56073b | 21 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
AnnaBridge | 143:86740a56073b | 22 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR |
AnnaBridge | 143:86740a56073b | 23 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
AnnaBridge | 143:86740a56073b | 24 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
AnnaBridge | 143:86740a56073b | 25 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
AnnaBridge | 143:86740a56073b | 26 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
AnnaBridge | 143:86740a56073b | 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
AnnaBridge | 143:86740a56073b | 28 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
AnnaBridge | 143:86740a56073b | 29 | */ |
AnnaBridge | 143:86740a56073b | 30 | |
AnnaBridge | 143:86740a56073b | 31 | #ifndef _FSL_FLEXBUS_H_ |
AnnaBridge | 143:86740a56073b | 32 | #define _FSL_FLEXBUS_H_ |
AnnaBridge | 143:86740a56073b | 33 | |
AnnaBridge | 143:86740a56073b | 34 | #include "fsl_common.h" |
AnnaBridge | 143:86740a56073b | 35 | |
AnnaBridge | 143:86740a56073b | 36 | /*! |
AnnaBridge | 143:86740a56073b | 37 | * @addtogroup flexbus |
AnnaBridge | 143:86740a56073b | 38 | * @{ |
AnnaBridge | 143:86740a56073b | 39 | */ |
AnnaBridge | 143:86740a56073b | 40 | |
AnnaBridge | 143:86740a56073b | 41 | |
AnnaBridge | 143:86740a56073b | 42 | /******************************************************************************* |
AnnaBridge | 143:86740a56073b | 43 | * Definitions |
AnnaBridge | 143:86740a56073b | 44 | ******************************************************************************/ |
AnnaBridge | 143:86740a56073b | 45 | |
AnnaBridge | 143:86740a56073b | 46 | /*! @name Driver version */ |
AnnaBridge | 143:86740a56073b | 47 | /*@{*/ |
AnnaBridge | 143:86740a56073b | 48 | #define FSL_FLEXBUS_DRIVER_VERSION (MAKE_VERSION(2, 0, 1)) /*!< Version 2.0.1. */ |
AnnaBridge | 143:86740a56073b | 49 | /*@}*/ |
AnnaBridge | 143:86740a56073b | 50 | |
AnnaBridge | 143:86740a56073b | 51 | /*! |
AnnaBridge | 143:86740a56073b | 52 | * @brief Defines port size for FlexBus peripheral. |
AnnaBridge | 143:86740a56073b | 53 | */ |
AnnaBridge | 143:86740a56073b | 54 | typedef enum _flexbus_port_size |
AnnaBridge | 143:86740a56073b | 55 | { |
AnnaBridge | 143:86740a56073b | 56 | kFLEXBUS_4Bytes = 0x00U, /*!< 32-bit port size */ |
AnnaBridge | 143:86740a56073b | 57 | kFLEXBUS_1Byte = 0x01U, /*!< 8-bit port size */ |
AnnaBridge | 143:86740a56073b | 58 | kFLEXBUS_2Bytes = 0x02U /*!< 16-bit port size */ |
AnnaBridge | 143:86740a56073b | 59 | } flexbus_port_size_t; |
AnnaBridge | 143:86740a56073b | 60 | |
AnnaBridge | 143:86740a56073b | 61 | /*! |
AnnaBridge | 143:86740a56073b | 62 | * @brief Defines number of cycles to hold address and attributes for FlexBus peripheral. |
AnnaBridge | 143:86740a56073b | 63 | */ |
AnnaBridge | 143:86740a56073b | 64 | typedef enum _flexbus_write_address_hold |
AnnaBridge | 143:86740a56073b | 65 | { |
AnnaBridge | 143:86740a56073b | 66 | kFLEXBUS_Hold1Cycle = 0x00U, /*!< Hold address and attributes one cycles after FB_CSn negates on writes */ |
AnnaBridge | 143:86740a56073b | 67 | kFLEXBUS_Hold2Cycles = 0x01U, /*!< Hold address and attributes two cycles after FB_CSn negates on writes */ |
AnnaBridge | 143:86740a56073b | 68 | kFLEXBUS_Hold3Cycles = 0x02U, /*!< Hold address and attributes three cycles after FB_CSn negates on writes */ |
AnnaBridge | 143:86740a56073b | 69 | kFLEXBUS_Hold4Cycles = 0x03U /*!< Hold address and attributes four cycles after FB_CSn negates on writes */ |
AnnaBridge | 143:86740a56073b | 70 | } flexbus_write_address_hold_t; |
AnnaBridge | 143:86740a56073b | 71 | |
AnnaBridge | 143:86740a56073b | 72 | /*! |
AnnaBridge | 143:86740a56073b | 73 | * @brief Defines number of cycles to hold address and attributes for FlexBus peripheral. |
AnnaBridge | 143:86740a56073b | 74 | */ |
AnnaBridge | 143:86740a56073b | 75 | typedef enum _flexbus_read_address_hold |
AnnaBridge | 143:86740a56073b | 76 | { |
AnnaBridge | 143:86740a56073b | 77 | kFLEXBUS_Hold1Or0Cycles = 0x00U, /*!< Hold address and attributes 1 or 0 cycles on reads */ |
AnnaBridge | 143:86740a56073b | 78 | kFLEXBUS_Hold2Or1Cycles = 0x01U, /*!< Hold address and attributes 2 or 1 cycles on reads */ |
AnnaBridge | 143:86740a56073b | 79 | kFLEXBUS_Hold3Or2Cycle = 0x02U, /*!< Hold address and attributes 3 or 2 cycles on reads */ |
AnnaBridge | 143:86740a56073b | 80 | kFLEXBUS_Hold4Or3Cycle = 0x03U /*!< Hold address and attributes 4 or 3 cycles on reads */ |
AnnaBridge | 143:86740a56073b | 81 | } flexbus_read_address_hold_t; |
AnnaBridge | 143:86740a56073b | 82 | |
AnnaBridge | 143:86740a56073b | 83 | /*! |
AnnaBridge | 143:86740a56073b | 84 | * @brief Address setup for FlexBus peripheral. |
AnnaBridge | 143:86740a56073b | 85 | */ |
AnnaBridge | 143:86740a56073b | 86 | typedef enum _flexbus_address_setup |
AnnaBridge | 143:86740a56073b | 87 | { |
AnnaBridge | 143:86740a56073b | 88 | kFLEXBUS_FirstRisingEdge = 0x00U, /*!< Assert FB_CSn on first rising clock edge after address is asserted */ |
AnnaBridge | 143:86740a56073b | 89 | kFLEXBUS_SecondRisingEdge = 0x01U, /*!< Assert FB_CSn on second rising clock edge after address is asserted */ |
AnnaBridge | 143:86740a56073b | 90 | kFLEXBUS_ThirdRisingEdge = 0x02U, /*!< Assert FB_CSn on third rising clock edge after address is asserted */ |
AnnaBridge | 143:86740a56073b | 91 | kFLEXBUS_FourthRisingEdge = 0x03U, /*!< Assert FB_CSn on fourth rising clock edge after address is asserted */ |
AnnaBridge | 143:86740a56073b | 92 | } flexbus_address_setup_t; |
AnnaBridge | 143:86740a56073b | 93 | |
AnnaBridge | 143:86740a56073b | 94 | /*! |
AnnaBridge | 143:86740a56073b | 95 | * @brief Defines byte-lane shift for FlexBus peripheral. |
AnnaBridge | 143:86740a56073b | 96 | */ |
AnnaBridge | 143:86740a56073b | 97 | typedef enum _flexbus_bytelane_shift |
AnnaBridge | 143:86740a56073b | 98 | { |
AnnaBridge | 143:86740a56073b | 99 | kFLEXBUS_NotShifted = 0x00U, /*!< Not shifted. Data is left-justified on FB_AD */ |
AnnaBridge | 143:86740a56073b | 100 | kFLEXBUS_Shifted = 0x01U, /*!< Shifted. Data is right justified on FB_AD */ |
AnnaBridge | 143:86740a56073b | 101 | } flexbus_bytelane_shift_t; |
AnnaBridge | 143:86740a56073b | 102 | |
AnnaBridge | 143:86740a56073b | 103 | /*! |
AnnaBridge | 143:86740a56073b | 104 | * @brief Defines multiplex group1 valid signals. |
AnnaBridge | 143:86740a56073b | 105 | */ |
AnnaBridge | 143:86740a56073b | 106 | typedef enum _flexbus_multiplex_group1_signal |
AnnaBridge | 143:86740a56073b | 107 | { |
AnnaBridge | 143:86740a56073b | 108 | kFLEXBUS_MultiplexGroup1_FB_ALE = 0x00U, /*!< FB_ALE */ |
AnnaBridge | 143:86740a56073b | 109 | kFLEXBUS_MultiplexGroup1_FB_CS1 = 0x01U, /*!< FB_CS1 */ |
AnnaBridge | 143:86740a56073b | 110 | kFLEXBUS_MultiplexGroup1_FB_TS = 0x02U, /*!< FB_TS */ |
AnnaBridge | 143:86740a56073b | 111 | } flexbus_multiplex_group1_t; |
AnnaBridge | 143:86740a56073b | 112 | |
AnnaBridge | 143:86740a56073b | 113 | /*! |
AnnaBridge | 143:86740a56073b | 114 | * @brief Defines multiplex group2 valid signals. |
AnnaBridge | 143:86740a56073b | 115 | */ |
AnnaBridge | 143:86740a56073b | 116 | typedef enum _flexbus_multiplex_group2_signal |
AnnaBridge | 143:86740a56073b | 117 | { |
AnnaBridge | 143:86740a56073b | 118 | kFLEXBUS_MultiplexGroup2_FB_CS4 = 0x00U, /*!< FB_CS4 */ |
AnnaBridge | 143:86740a56073b | 119 | kFLEXBUS_MultiplexGroup2_FB_TSIZ0 = 0x01U, /*!< FB_TSIZ0 */ |
AnnaBridge | 143:86740a56073b | 120 | kFLEXBUS_MultiplexGroup2_FB_BE_31_24 = 0x02U, /*!< FB_BE_31_24 */ |
AnnaBridge | 143:86740a56073b | 121 | } flexbus_multiplex_group2_t; |
AnnaBridge | 143:86740a56073b | 122 | |
AnnaBridge | 143:86740a56073b | 123 | /*! |
AnnaBridge | 143:86740a56073b | 124 | * @brief Defines multiplex group3 valid signals. |
AnnaBridge | 143:86740a56073b | 125 | */ |
AnnaBridge | 143:86740a56073b | 126 | typedef enum _flexbus_multiplex_group3_signal |
AnnaBridge | 143:86740a56073b | 127 | { |
AnnaBridge | 143:86740a56073b | 128 | kFLEXBUS_MultiplexGroup3_FB_CS5 = 0x00U, /*!< FB_CS5 */ |
AnnaBridge | 143:86740a56073b | 129 | kFLEXBUS_MultiplexGroup3_FB_TSIZ1 = 0x01U, /*!< FB_TSIZ1 */ |
AnnaBridge | 143:86740a56073b | 130 | kFLEXBUS_MultiplexGroup3_FB_BE_23_16 = 0x02U, /*!< FB_BE_23_16 */ |
AnnaBridge | 143:86740a56073b | 131 | } flexbus_multiplex_group3_t; |
AnnaBridge | 143:86740a56073b | 132 | |
AnnaBridge | 143:86740a56073b | 133 | /*! |
AnnaBridge | 143:86740a56073b | 134 | * @brief Defines multiplex group4 valid signals. |
AnnaBridge | 143:86740a56073b | 135 | */ |
AnnaBridge | 143:86740a56073b | 136 | typedef enum _flexbus_multiplex_group4_signal |
AnnaBridge | 143:86740a56073b | 137 | { |
AnnaBridge | 143:86740a56073b | 138 | kFLEXBUS_MultiplexGroup4_FB_TBST = 0x00U, /*!< FB_TBST */ |
AnnaBridge | 143:86740a56073b | 139 | kFLEXBUS_MultiplexGroup4_FB_CS2 = 0x01U, /*!< FB_CS2 */ |
AnnaBridge | 143:86740a56073b | 140 | kFLEXBUS_MultiplexGroup4_FB_BE_15_8 = 0x02U, /*!< FB_BE_15_8 */ |
AnnaBridge | 143:86740a56073b | 141 | } flexbus_multiplex_group4_t; |
AnnaBridge | 143:86740a56073b | 142 | |
AnnaBridge | 143:86740a56073b | 143 | /*! |
AnnaBridge | 143:86740a56073b | 144 | * @brief Defines multiplex group5 valid signals. |
AnnaBridge | 143:86740a56073b | 145 | */ |
AnnaBridge | 143:86740a56073b | 146 | typedef enum _flexbus_multiplex_group5_signal |
AnnaBridge | 143:86740a56073b | 147 | { |
AnnaBridge | 143:86740a56073b | 148 | kFLEXBUS_MultiplexGroup5_FB_TA = 0x00U, /*!< FB_TA */ |
AnnaBridge | 143:86740a56073b | 149 | kFLEXBUS_MultiplexGroup5_FB_CS3 = 0x01U, /*!< FB_CS3 */ |
AnnaBridge | 143:86740a56073b | 150 | kFLEXBUS_MultiplexGroup5_FB_BE_7_0 = 0x02U, /*!< FB_BE_7_0 */ |
AnnaBridge | 143:86740a56073b | 151 | } flexbus_multiplex_group5_t; |
AnnaBridge | 143:86740a56073b | 152 | |
AnnaBridge | 143:86740a56073b | 153 | /*! |
AnnaBridge | 143:86740a56073b | 154 | * @brief Configuration structure that the user needs to set. |
AnnaBridge | 143:86740a56073b | 155 | */ |
AnnaBridge | 143:86740a56073b | 156 | typedef struct _flexbus_config |
AnnaBridge | 143:86740a56073b | 157 | { |
AnnaBridge | 143:86740a56073b | 158 | uint8_t chip; /*!< Chip FlexBus for validation */ |
AnnaBridge | 143:86740a56073b | 159 | uint8_t waitStates; /*!< Value of wait states */ |
AnnaBridge | 143:86740a56073b | 160 | uint32_t chipBaseAddress; /*!< Chip base address for using FlexBus */ |
AnnaBridge | 143:86740a56073b | 161 | uint32_t chipBaseAddressMask; /*!< Chip base address mask */ |
AnnaBridge | 143:86740a56073b | 162 | bool writeProtect; /*!< Write protected */ |
AnnaBridge | 143:86740a56073b | 163 | bool burstWrite; /*!< Burst-Write enable */ |
AnnaBridge | 143:86740a56073b | 164 | bool burstRead; /*!< Burst-Read enable */ |
AnnaBridge | 143:86740a56073b | 165 | bool byteEnableMode; /*!< Byte-enable mode support */ |
AnnaBridge | 143:86740a56073b | 166 | bool autoAcknowledge; /*!< Auto acknowledge setting */ |
AnnaBridge | 143:86740a56073b | 167 | bool extendTransferAddress; /*!< Extend transfer start/extend address latch enable */ |
AnnaBridge | 143:86740a56073b | 168 | bool secondaryWaitStates; /*!< Secondary wait states number */ |
AnnaBridge | 143:86740a56073b | 169 | flexbus_port_size_t portSize; /*!< Port size of transfer */ |
AnnaBridge | 143:86740a56073b | 170 | flexbus_bytelane_shift_t byteLaneShift; /*!< Byte-lane shift enable */ |
AnnaBridge | 143:86740a56073b | 171 | flexbus_write_address_hold_t writeAddressHold; /*!< Write address hold or deselect option */ |
AnnaBridge | 143:86740a56073b | 172 | flexbus_read_address_hold_t readAddressHold; /*!< Read address hold or deselect option */ |
AnnaBridge | 143:86740a56073b | 173 | flexbus_address_setup_t addressSetup; /*!< Address setup setting */ |
AnnaBridge | 143:86740a56073b | 174 | flexbus_multiplex_group1_t group1MultiplexControl; /*!< FlexBus Signal Group 1 Multiplex control */ |
AnnaBridge | 143:86740a56073b | 175 | flexbus_multiplex_group2_t group2MultiplexControl; /*!< FlexBus Signal Group 2 Multiplex control */ |
AnnaBridge | 143:86740a56073b | 176 | flexbus_multiplex_group3_t group3MultiplexControl; /*!< FlexBus Signal Group 3 Multiplex control */ |
AnnaBridge | 143:86740a56073b | 177 | flexbus_multiplex_group4_t group4MultiplexControl; /*!< FlexBus Signal Group 4 Multiplex control */ |
AnnaBridge | 143:86740a56073b | 178 | flexbus_multiplex_group5_t group5MultiplexControl; /*!< FlexBus Signal Group 5 Multiplex control */ |
AnnaBridge | 143:86740a56073b | 179 | } flexbus_config_t; |
AnnaBridge | 143:86740a56073b | 180 | |
AnnaBridge | 143:86740a56073b | 181 | /******************************************************************************* |
AnnaBridge | 143:86740a56073b | 182 | * API |
AnnaBridge | 143:86740a56073b | 183 | ******************************************************************************/ |
AnnaBridge | 143:86740a56073b | 184 | |
AnnaBridge | 143:86740a56073b | 185 | #if defined(__cplusplus) |
AnnaBridge | 143:86740a56073b | 186 | extern "C" { |
AnnaBridge | 143:86740a56073b | 187 | #endif /* __cplusplus */ |
AnnaBridge | 143:86740a56073b | 188 | |
AnnaBridge | 143:86740a56073b | 189 | /*! |
AnnaBridge | 143:86740a56073b | 190 | * @name FlexBus functional operation |
AnnaBridge | 143:86740a56073b | 191 | * @{ |
AnnaBridge | 143:86740a56073b | 192 | */ |
AnnaBridge | 143:86740a56073b | 193 | |
AnnaBridge | 143:86740a56073b | 194 | /*! |
AnnaBridge | 143:86740a56073b | 195 | * @brief Initializes and configures the FlexBus module. |
AnnaBridge | 143:86740a56073b | 196 | * |
AnnaBridge | 143:86740a56073b | 197 | * This function enables the clock gate for FlexBus module. |
AnnaBridge | 143:86740a56073b | 198 | * Only chip 0 is validated and set to known values. Other chips are disabled. |
AnnaBridge | 143:86740a56073b | 199 | * Note that in this function, certain parameters, depending on external memories, must |
AnnaBridge | 143:86740a56073b | 200 | * be set before using the FLEXBUS_Init() function. |
AnnaBridge | 143:86740a56073b | 201 | * This example shows how to set up the uart_state_t and the |
AnnaBridge | 143:86740a56073b | 202 | * flexbus_config_t parameters and how to call the FLEXBUS_Init function by passing |
AnnaBridge | 143:86740a56073b | 203 | * in these parameters. |
AnnaBridge | 143:86740a56073b | 204 | @code |
AnnaBridge | 143:86740a56073b | 205 | flexbus_config_t flexbusConfig; |
AnnaBridge | 143:86740a56073b | 206 | FLEXBUS_GetDefaultConfig(&flexbusConfig); |
AnnaBridge | 143:86740a56073b | 207 | flexbusConfig.waitStates = 2U; |
AnnaBridge | 143:86740a56073b | 208 | flexbusConfig.chipBaseAddress = 0x60000000U; |
AnnaBridge | 143:86740a56073b | 209 | flexbusConfig.chipBaseAddressMask = 7U; |
AnnaBridge | 143:86740a56073b | 210 | FLEXBUS_Init(FB, &flexbusConfig); |
AnnaBridge | 143:86740a56073b | 211 | @endcode |
AnnaBridge | 143:86740a56073b | 212 | * |
AnnaBridge | 143:86740a56073b | 213 | * @param base FlexBus peripheral address. |
AnnaBridge | 143:86740a56073b | 214 | * @param config Pointer to the configuration structure |
AnnaBridge | 143:86740a56073b | 215 | */ |
AnnaBridge | 143:86740a56073b | 216 | void FLEXBUS_Init(FB_Type *base, const flexbus_config_t *config); |
AnnaBridge | 143:86740a56073b | 217 | |
AnnaBridge | 143:86740a56073b | 218 | /*! |
AnnaBridge | 143:86740a56073b | 219 | * @brief De-initializes a FlexBus instance. |
AnnaBridge | 143:86740a56073b | 220 | * |
AnnaBridge | 143:86740a56073b | 221 | * This function disables the clock gate of the FlexBus module clock. |
AnnaBridge | 143:86740a56073b | 222 | * |
AnnaBridge | 143:86740a56073b | 223 | * @param base FlexBus peripheral address. |
AnnaBridge | 143:86740a56073b | 224 | */ |
AnnaBridge | 143:86740a56073b | 225 | void FLEXBUS_Deinit(FB_Type *base); |
AnnaBridge | 143:86740a56073b | 226 | |
AnnaBridge | 143:86740a56073b | 227 | /*! |
AnnaBridge | 143:86740a56073b | 228 | * @brief Initializes the FlexBus configuration structure. |
AnnaBridge | 143:86740a56073b | 229 | * |
AnnaBridge | 143:86740a56073b | 230 | * This function initializes the FlexBus configuration structure to default value. The default |
AnnaBridge | 143:86740a56073b | 231 | * values are. |
AnnaBridge | 143:86740a56073b | 232 | @code |
AnnaBridge | 143:86740a56073b | 233 | fbConfig->chip = 0; |
AnnaBridge | 143:86740a56073b | 234 | fbConfig->writeProtect = 0; |
AnnaBridge | 143:86740a56073b | 235 | fbConfig->burstWrite = 0; |
AnnaBridge | 143:86740a56073b | 236 | fbConfig->burstRead = 0; |
AnnaBridge | 143:86740a56073b | 237 | fbConfig->byteEnableMode = 0; |
AnnaBridge | 143:86740a56073b | 238 | fbConfig->autoAcknowledge = true; |
AnnaBridge | 143:86740a56073b | 239 | fbConfig->extendTransferAddress = 0; |
AnnaBridge | 143:86740a56073b | 240 | fbConfig->secondaryWaitStates = 0; |
AnnaBridge | 143:86740a56073b | 241 | fbConfig->byteLaneShift = kFLEXBUS_NotShifted; |
AnnaBridge | 143:86740a56073b | 242 | fbConfig->writeAddressHold = kFLEXBUS_Hold1Cycle; |
AnnaBridge | 143:86740a56073b | 243 | fbConfig->readAddressHold = kFLEXBUS_Hold1Or0Cycles; |
AnnaBridge | 143:86740a56073b | 244 | fbConfig->addressSetup = kFLEXBUS_FirstRisingEdge; |
AnnaBridge | 143:86740a56073b | 245 | fbConfig->portSize = kFLEXBUS_1Byte; |
AnnaBridge | 143:86740a56073b | 246 | fbConfig->group1MultiplexControl = kFLEXBUS_MultiplexGroup1_FB_ALE; |
AnnaBridge | 143:86740a56073b | 247 | fbConfig->group2MultiplexControl = kFLEXBUS_MultiplexGroup2_FB_CS4 ; |
AnnaBridge | 143:86740a56073b | 248 | fbConfig->group3MultiplexControl = kFLEXBUS_MultiplexGroup3_FB_CS5; |
AnnaBridge | 143:86740a56073b | 249 | fbConfig->group4MultiplexControl = kFLEXBUS_MultiplexGroup4_FB_TBST; |
AnnaBridge | 143:86740a56073b | 250 | fbConfig->group5MultiplexControl = kFLEXBUS_MultiplexGroup5_FB_TA; |
AnnaBridge | 143:86740a56073b | 251 | @endcode |
AnnaBridge | 143:86740a56073b | 252 | * @param config Pointer to the initialization structure. |
AnnaBridge | 143:86740a56073b | 253 | * @see FLEXBUS_Init |
AnnaBridge | 143:86740a56073b | 254 | */ |
AnnaBridge | 143:86740a56073b | 255 | void FLEXBUS_GetDefaultConfig(flexbus_config_t *config); |
AnnaBridge | 143:86740a56073b | 256 | |
AnnaBridge | 143:86740a56073b | 257 | /*! @}*/ |
AnnaBridge | 143:86740a56073b | 258 | |
AnnaBridge | 143:86740a56073b | 259 | #if defined(__cplusplus) |
AnnaBridge | 143:86740a56073b | 260 | } |
AnnaBridge | 143:86740a56073b | 261 | #endif /* __cplusplus */ |
AnnaBridge | 143:86740a56073b | 262 | |
AnnaBridge | 143:86740a56073b | 263 | /*! @}*/ |
AnnaBridge | 143:86740a56073b | 264 | |
AnnaBridge | 143:86740a56073b | 265 | #endif /* _FSL_FLEXBUS_H_ */ |