Newer
Older
mbed-os / targets / TARGET_STM / TARGET_STM32L1 / TARGET_STM32L151xB / cmsis_nvic.h
@jeromecoutant jeromecoutant on 9 Mar 2021 1 KB STM32L1 : STM32Cube_FW 1.10.2
/* mbed Microcontroller Library
 * SPDX-License-Identifier: BSD-3-Clause
 ******************************************************************************
 * @attention
 *
 * <h2><center>&copy; Copyright (c) 2016-2020 STMicroelectronics.
 * All rights reserved.</center></h2>
 *
 * This software component is licensed by ST under BSD 3-Clause license,
 * the "License"; You may not use this file except in compliance with the
 * License. You may obtain a copy of the License at:
 *                        opensource.org/licenses/BSD-3-Clause
 *
 ******************************************************************************
*/

#ifndef MBED_CMSIS_NVIC_H
#define MBED_CMSIS_NVIC_H

#if !defined(MBED_ROM_START)
#define MBED_ROM_START  0x8000000
#endif

#if !defined(MBED_ROM_SIZE)
#define MBED_ROM_SIZE  0x20000  // 128 KB
#endif

#if !defined(MBED_RAM_START)
#define MBED_RAM_START  0x20000000
#endif

#if !defined(MBED_RAM_SIZE)
#define MBED_RAM_SIZE  0x8000  // 32 KB
 //   0x4000 // 16 KB STM32L151CB STM32L151RB STM32L151VB
 //   0x8000 // 32 KB STM32L151CBxxA STM32L151RBxxA STM32L151VBxxA
#warning "check MBED_RAM_SIZE value in cmsis_nvic.h"
#endif

#define NVIC_NUM_VECTORS        61
#define NVIC_RAM_VECTOR_ADDRESS MBED_RAM_START

#endif