Skip to content

Commit 50e8188

Browse files
committed
Fix comment typos, add to docs index, remove unnecessary defaulting of XIP_CACHE assertions on FLASH
1 parent 7c4aa24 commit 50e8188

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

docs/index.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
* \cond hardware_uart \defgroup hardware_uart hardware_uart \endcond
4747
* \cond hardware_vreg \defgroup hardware_vreg hardware_vreg \endcond
4848
* \cond hardware_watchdog \defgroup hardware_watchdog hardware_watchdog \endcond
49+
* \cond hardware_xip_cache \defgroup hardware_xip_cache hardware_xip_cache \endcond
4950
* \cond hardware_xosc \defgroup hardware_xosc hardware_xosc \endcond
5051
* \cond hardware_powman hardware_powman
5152
* \cond hardware_hazard3 hardware_hazard3

src/rp2_common/hardware_xip_cache/include/hardware/xip_cache.h

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
* These functions apply some maintenance operation to either the entire cache contents, or a range
1919
* of offsets within the downstream address space. Offsets start from 0 (indicating the first byte
20-
* pf flash), so pointers should have XIP_BASE subtracted before passing into one of these
20+
* of flash), so pointers should have XIP_BASE subtracted before passing into one of these
2121
* functions.
2222
*
2323
* \if rp2040-specific
@@ -55,14 +55,10 @@
5555
*
5656
*/
5757

58-
// PICO_CONFIG: PARAM_ASSERTIONS_ENABLED_HARDWARE_XIP_CACHE, Enable/disable assertions in the hardwdare_xip_cache module, type=bool, default=0, group=hardwdare_xip_cache
58+
// PICO_CONFIG: PARAM_ASSERTIONS_ENABLED_HARDWARE_XIP_CACHE, Enable/disable assertions in the hardware_xip_cache module, type=bool, default=0, group=hardware_xip_cache
5959
#ifndef PARAM_ASSERTIONS_ENABLED_HARDWARE_XIP_CACHE
60-
#ifdef PARAM_ASSERTIONS_ENABLED_FLASH // backwards compatibility with SDK < 2.0.0
61-
#define PARAM_ASSERTIONS_ENABLED_HARDWARE_XIP_CACHE PARAM_ASSERTIONS_ENABLED_FLASH
62-
#else
6360
#define PARAM_ASSERTIONS_ENABLED_HARDWARE_XIP_CACHE 0
6461
#endif
65-
#endif
6662

6763
#define XIP_CACHE_LINE_SIZE _u(8)
6864

@@ -152,7 +148,6 @@ void xip_cache_invalidate_range(uintptr_t start_offset, uintptr_t size_bytes);
152148
* \endif
153149
*
154150
*/
155-
156151
void xip_cache_clean_all(void);
157152

158153
/*! \brief Clean a range of offsets within the XIP address space

0 commit comments

Comments
 (0)