cmsis_nvic.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* mbed Microcontroller Library
  2. * SPDX-License-Identifier: BSD-3-Clause
  3. ******************************************************************************
  4. * @attention
  5. *
  6. * <h2><center>&copy; Copyright (c) 2016-2020 STMicroelectronics.
  7. * All rights reserved.</center></h2>
  8. *
  9. * This software component is licensed by ST under BSD 3-Clause license,
  10. * the "License"; You may not use this file except in compliance with the
  11. * License. You may obtain a copy of the License at:
  12. * opensource.org/licenses/BSD-3-Clause
  13. *
  14. ******************************************************************************
  15. */
  16. #ifndef MBED_CMSIS_NVIC_H
  17. #define MBED_CMSIS_NVIC_H
  18. #if !defined(MBED_ROM_START)
  19. #define MBED_ROM_START 0x8000000
  20. #endif
  21. #if !defined(MBED_ROM_SIZE)
  22. #define MBED_ROM_SIZE 0x80000 // 512 KB
  23. #endif
  24. #if !defined(MBED_RAM_START)
  25. #define MBED_RAM_START 0x20000000
  26. #endif
  27. #if !defined(MBED_RAM_SIZE)
  28. #define MBED_RAM_SIZE 0x40000 // 256 KB
  29. #endif
  30. #define NVIC_NUM_VECTORS 125
  31. #define NVIC_RAM_VECTOR_ADDRESS MBED_RAM_START
  32. #endif