]> begriffs open source - freertos/commit
Allow application to override TEX,S,C and B bits for Flash and RAM (#113)
authorGaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
Sun, 9 Aug 2020 01:37:14 +0000 (18:37 -0700)
committerGitHub <noreply@github.com>
Sun, 9 Aug 2020 01:37:14 +0000 (18:37 -0700)
commit287361091bee44770704ffa2b4ce2b7580ad716b
tree8d1bd1caa8974791f371d770eb0d29035e44ad28
parenta2e00f0c6b19326b67d386d9f5d76b2a43f08c75
Allow application to override TEX,S,C and B bits for Flash and RAM (#113)

The TEX,  Shareable (S), Cacheable (C) and Bufferable (B) bits define
the memory type, and where necessary the cacheable and shareable
properties of the memory region.

The default values for these bits, as configured in our MPU ports, are
sometimes not suitable for application. One such example is when the MCU
has a cache, the application writer may not want to mark the memory as
shareable to avoid disabling the cache. This change allows the
application writer to override default vales for TEX, S C and B bits for
Flash and RAM in their FreeRTOSConfig.h. The following two new
configurations are introduced:

- configTEX_S_C_B_FLASH
- configTEX_S_C_B_SRAM

If undefined, the default values for the above configurations are
TEX=000, S=1, C=1, B=1. This ensures backward compatibility.

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
portable/GCC/ARM_CM4_MPU/port.c
portable/GCC/ARM_CM4_MPU/portmacro.h
portable/IAR/ARM_CM4F_MPU/port.c
portable/IAR/ARM_CM4F_MPU/portmacro.h
portable/RVDS/ARM_CM4_MPU/port.c
portable/RVDS/ARM_CM4_MPU/portmacro.h