diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2012-05-08 16:24:42 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-05-08 16:24:42 -0400 |
commit | d7f698eef315fa5edc009ec6335fc41ad62dfc05 (patch) | |
tree | 44911c5a39d315056d84e40e9ef9929c74c940f2 /libmaple | |
parent | 99ca63216d9dd4985e0892dad6b3ddfe216c6b8c (diff) | |
download | librambutan-d7f698eef315fa5edc009ec6335fc41ad62dfc05.tar.gz librambutan-d7f698eef315fa5edc009ec6335fc41ad62dfc05.zip |
libmaple/flash.h: Doxygen for flash_enable_features().
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple')
-rw-r--r-- | libmaple/include/libmaple/flash.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/libmaple/include/libmaple/flash.h b/libmaple/include/libmaple/flash.h index 4ecfb77..d84ded1 100644 --- a/libmaple/include/libmaple/flash.h +++ b/libmaple/include/libmaple/flash.h @@ -60,10 +60,7 @@ extern "C"{ * -- FLASH_ICACHE: instruction cache * -- FLASH_DCACHE: data cache * - * If the target doesn't provide a feature (e.g. instruction and - * data caches on the STM32F1), the flag should be set to some no-op - * value. This allows using these flags unconditionally, with the - * desired effect taking place on series that support them. + * See that function's Doxygen for more restrictions. */ #include <series/flash.h> @@ -73,6 +70,19 @@ extern "C"{ void flash_set_latency(uint32 wait_states); +/** + * @brief Enable Flash memory features + * + * If the target MCU doesn't provide a feature (e.g. instruction and + * data caches on the STM32F1), the flag will be ignored. This allows + * using these flags unconditionally, with the desired effect taking + * place on targets that support them. + * + * @param feature_flags Bitwise OR of the following: + * FLASH_PREFETCH (turns on prefetcher), + * FLASH_ICACHE (turns on instruction cache), + * FLASH_DCACHE (turns on data cache). + */ static inline void flash_enable_features(uint32 feature_flags) { FLASH_BASE->ACR |= feature_flags; } |