icache.c 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* USER CODE BEGIN Header */
  2. /**
  3. ******************************************************************************
  4. * @file icache.c
  5. * @brief This file provides code for the configuration
  6. * of the ICACHE instances.
  7. ******************************************************************************
  8. * @attention
  9. *
  10. * Copyright (c) 2026 STMicroelectronics.
  11. * All rights reserved.
  12. *
  13. * This software is licensed under terms that can be found in the LICENSE file
  14. * in the root directory of this software component.
  15. * If no LICENSE file comes with this software, it is provided AS-IS.
  16. *
  17. ******************************************************************************
  18. */
  19. /* USER CODE END Header */
  20. /* Includes ------------------------------------------------------------------*/
  21. #include "icache.h"
  22. /* USER CODE BEGIN 0 */
  23. /* USER CODE END 0 */
  24. /* ICACHE init function */
  25. void MX_ICACHE_Init(void)
  26. {
  27. /* USER CODE BEGIN ICACHE_Init 0 */
  28. /* USER CODE END ICACHE_Init 0 */
  29. /* USER CODE BEGIN ICACHE_Init 1 */
  30. /* USER CODE END ICACHE_Init 1 */
  31. /** Enable instruction cache (default 2-ways set associative cache)
  32. */
  33. if (HAL_ICACHE_Enable() != HAL_OK)
  34. {
  35. Error_Handler();
  36. }
  37. /* USER CODE BEGIN ICACHE_Init 2 */
  38. /* USER CODE END ICACHE_Init 2 */
  39. }
  40. /* USER CODE BEGIN 1 */
  41. /* USER CODE END 1 */