fmc_11xx.h
Go to the documentation of this file.
1 /*
2  * @brief FLASH Memory Controller (FMC) registers and control functions
3  *
4  * @note
5  * Copyright(C) NXP Semiconductors, 2012
6  * All rights reserved.
7  *
8  * @par
9  * Software that is described herein is for illustrative purposes only
10  * which provides customers with programming information regarding the
11  * LPC products. This software is supplied "AS IS" without any warranties of
12  * any kind, and NXP Semiconductors and its licensor disclaim any and
13  * all warranties, express or implied, including all implied warranties of
14  * merchantability, fitness for a particular purpose and non-infringement of
15  * intellectual property rights. NXP Semiconductors assumes no responsibility
16  * or liability for the use of the software, conveys no license or rights under any
17  * patent, copyright, mask work right, or any other intellectual property rights in
18  * or to any products. NXP Semiconductors reserves the right to make changes
19  * in the software without notification. NXP Semiconductors also makes no
20  * representation or warranty that such application will be suitable for the
21  * specified use without further testing or modification.
22  *
23  * @par
24  * Permission to use, copy, modify, and distribute this software and its
25  * documentation is hereby granted, under NXP Semiconductors' and its
26  * licensor's relevant copyrights in the software, without fee, provided that it
27  * is used in conjunction with NXP Semiconductors microcontrollers. This
28  * copyright, permission, and disclaimer notice must appear in all copies of
29  * this code.
30  */
31 
32 #ifndef __FMC_11XX_H_
33 #define __FMC_11XX_H_
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
47 typedef struct {
48  __I uint32_t RESERVED1[4];
50  __I uint32_t RESERVED2[3];
54  __I uint32_t FMSW[4];
55  __I uint32_t RESERVED4[25];
56 #if defined(CHIP_LPC1125)
57  __I uint32_t RESERVED5[977];
58 #else
62  __I uint32_t RESERVED5[974];
63 #endif
67 } LPC_FMC_T;
68 
72 typedef enum {
77 
86 {
87  uint32_t tmp = LPC_FMC->FLASHTIM & (~(0x3));
88 
89  /* Don't alter upper bits */
90  LPC_FMC->FLASHTIM = tmp | clks;
91 }
92 
97 #ifdef __cplusplus
98 }
99 #endif
100 
101 #endif /* __FMC_11XX_H_ */
LPC_FMC_T::EEMSSTOP
__IO uint32_t EEMSSTOP
Definition: fmc_11xx.h:60
LPC_FMC_T::RESERVED6
__I uint32_t RESERVED6
Definition: fmc_11xx.h:65
LPC_FMC
#define LPC_FMC
Definition: chip.h:178
uavcan::uint32_t
std::uint32_t uint32_t
Definition: std.hpp:26
LPC_FMC_T::EEMSSIG
__I uint32_t EEMSSIG
Definition: fmc_11xx.h:61
__IO
#define __IO
Definition: core_cm0.h:154
LPC_FMC_T::FMSTATCLR
__O uint32_t FMSTATCLR
Definition: fmc_11xx.h:66
__I
#define __I
Definition: core_cm0.h:151
INLINE
#define INLINE
Definition: lpc_types.h:205
LPC_FMC_T::EEMSSTART
__IO uint32_t EEMSSTART
Definition: fmc_11xx.h:59
LPC_FMC_T::FMSTAT
__I uint32_t FMSTAT
Definition: fmc_11xx.h:64
FMC_FLASHTIM_T
FMC_FLASHTIM_T
FLASH Access time definitions.
Definition: fmc_11xx.h:72
LPC_FMC_T::RESERVED3
__I uint32_t RESERVED3
Definition: fmc_11xx.h:53
LPC_FMC_T::FMSSTART
__IO uint32_t FMSSTART
Definition: fmc_11xx.h:51
__O
#define __O
Definition: core_cm0.h:153
LPC_FMC_T::FMSSTOP
__IO uint32_t FMSSTOP
Definition: fmc_11xx.h:52
LPC_FMC_T::FLASHTIM
__IO uint32_t FLASHTIM
Definition: fmc_11xx.h:49
FLASHTIM_20MHZ_CPU
@ FLASHTIM_20MHZ_CPU
Definition: fmc_11xx.h:73
FLASHTIM_50MHZ_CPU
@ FLASHTIM_50MHZ_CPU
Definition: fmc_11xx.h:75
LPC_FMC_T
FLASH Memory Controller Unit register block structure.
Definition: fmc_11xx.h:47
Chip_FMC_SetFLASHAccess
STATIC INLINE void Chip_FMC_SetFLASHAccess(FMC_FLASHTIM_T clks)
Set FLASH access time in clocks.
Definition: fmc_11xx.h:85
STATIC
#define STATIC
Definition: lpc_types.h:140
FLASHTIM_40MHZ_CPU
@ FLASHTIM_40MHZ_CPU
Definition: fmc_11xx.h:74


uavcan_communicator
Author(s):
autogenerated on Fri Dec 13 2024 03:10:02