* arch/arm/src/kl/hardware/kl_memorymap.h
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/
#ifndef __ARCH_ARM_SRC_KL_HARDWARE_KL_MEMORYMAP_H
#define __ARCH_ARM_SRC_KL_HARDWARE_KL_MEMORYMAP_H
* Included Files
****************************************************************************/
#include <nuttx/config.h>
#include "chip.h"
* Pre-processor Definitions
****************************************************************************/
*
* The memory map for the following parts is defined in Freescale document
* K40P144M100SF2RM
*/
# define KL_FLASH_BASE 0x00000000
* only data (Includes exception
* vectors in first 1024 bytes) */
# define KL_SRAML_BASE 0x18000000
* (ICODE/DCODE) */
# define KL_SRAMU_BASE 0x20000000
* region */
# define KIP_AIPS_BASE 0x40000000
# define KL_GPIO_BASE(n) (0x400ff000 + ((n) << 6))
# define KL_BME_BASE 0x44000000
* to AIPS Peripherals for slots 0-127 */
# define KL_PERIPH_BASE 0xe0000000
# define KL_MTB_BASE 0xf0000000
# define KL_DMAC_BASE 0x40008000
# define KL_AIPSGPIO_BASE 0x4000f000
# define KL_FTFL_BASE 0x40020000
# define KL_DMAMUX0_BASE 0x40021000
# define KL_PIT_BASE 0x40037000
# define KL_TPM0_BASE 0x40038000
# define KL_TPM1_BASE 0x40039000
# define KL_TPM2_BASE 0x4003a000
# define KL_ADC0_BASE 0x4003b000
# define KL_RTC_BASE 0x4003d000
# define KL_DAC0_BASE 0x4003f000
# define KL_LPTMR_BASE 0x40040000
# define KL_TSI_BASE 0x40045000
# define KL_SIMLP_BASE 0x40047000
# define KL_SIM_BASE 0x40048000
# define KL_PORT_BASE(n) (0x40049000 + ((n) << 12))
# define KL_PORTA_BASE 0x40049000
# define KL_PORTB_BASE 0x4004a000
# define KL_PORTC_BASE 0x4004b000
# define KL_PORTD_BASE 0x4004c000
# define KL_PORTE_BASE 0x4004d000
# define KL_MCG_BASE 0x40064000
# define KL_OSC_BASE 0x40065000
# define KL_I2C0_BASE 0x40066000
# define KL_I2C1_BASE 0x40067000
# define KL_UART0_BASE 0x4006a000
# define KL_UART1_BASE 0x4006b000
# define KL_UART2_BASE 0x4006c000
# define KL_USB0_BASE 0x40072000
# define KL_CMP_BASE 0x40073000
# define KL_SPI0_BASE 0x40076000
# define KL_SPI1_BASE 0x40077000
# define KL_LLWU_BASE 0x4007c000
# define KL_PMC_BASE 0x4007d000
# define KL_SMC_BASE 0x4007e000
# define KL_RCM_BASE 0x4007f000
# define KL_GPIOn_BASE(n) (0x400ff000 + ((n) << 6))
# define KL_GPIOA_BASE 0x400ff000
# define KL_GPIOB_BASE 0x400ff040
# define KL_GPIOC_BASE 0x400ff080
# define KL_GPIOD_BASE 0x400ff0c0
# define KL_GPIOE_BASE 0x400ff100
# define KL_SCS_BASE 0xe000e000
# define KL_ROMTAB_BASE 0xe00ff000
* Public Types
****************************************************************************/
* Public Data
****************************************************************************/
* Public Functions Prototypes
****************************************************************************/
#endif