Skip to content

Commit

Permalink
Fix comment typos, add to docs index, remove unnecessary defaulting o…
Browse files Browse the repository at this point in the history
…f XIP_CACHE assertions on FLASH
  • Loading branch information
Wren6991 committed Nov 5, 2024
1 parent 7c4aa24 commit 50e8188
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions docs/index.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
* \cond hardware_uart \defgroup hardware_uart hardware_uart \endcond
* \cond hardware_vreg \defgroup hardware_vreg hardware_vreg \endcond
* \cond hardware_watchdog \defgroup hardware_watchdog hardware_watchdog \endcond
* \cond hardware_xip_cache \defgroup hardware_xip_cache hardware_xip_cache \endcond
* \cond hardware_xosc \defgroup hardware_xosc hardware_xosc \endcond
* \cond hardware_powman hardware_powman
* \cond hardware_hazard3 hardware_hazard3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* These functions apply some maintenance operation to either the entire cache contents, or a range
* of offsets within the downstream address space. Offsets start from 0 (indicating the first byte
* pf flash), so pointers should have XIP_BASE subtracted before passing into one of these
* of flash), so pointers should have XIP_BASE subtracted before passing into one of these
* functions.
*
* \if rp2040-specific
Expand Down Expand Up @@ -55,14 +55,10 @@
*
*/

// 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
// 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
#ifndef PARAM_ASSERTIONS_ENABLED_HARDWARE_XIP_CACHE
#ifdef PARAM_ASSERTIONS_ENABLED_FLASH // backwards compatibility with SDK < 2.0.0
#define PARAM_ASSERTIONS_ENABLED_HARDWARE_XIP_CACHE PARAM_ASSERTIONS_ENABLED_FLASH
#else
#define PARAM_ASSERTIONS_ENABLED_HARDWARE_XIP_CACHE 0
#endif
#endif

#define XIP_CACHE_LINE_SIZE _u(8)

Expand Down Expand Up @@ -152,7 +148,6 @@ void xip_cache_invalidate_range(uintptr_t start_offset, uintptr_t size_bytes);
* \endif
*
*/

void xip_cache_clean_all(void);

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

0 comments on commit 50e8188

Please sign in to comment.