Skip to content

Commit e9a1bff

Browse files
committed
Update Source Code to 1.10 (Provided by Funnyplaying)
- Adds support for Bootleg GBA carts marked AGB-E05-01/02 that use these flash chips: M29W640 & 29LV128DBT2C - Provided by Funnyplaying
1 parent 3f0e97e commit e9a1bff

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+3965
-4739
lines changed

CartReaderApp/CMSIS_5/CMSIS/Core/Include/cachel1_armv7.h

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/******************************************************************************
22
* @file cachel1_armv7.h
33
* @brief CMSIS Level 1 Cache API for Armv7-M and later
4-
* @version V1.0.1
5-
* @date 19. April 2021
4+
* @version V1.0.0
5+
* @date 03. March 2020
66
******************************************************************************/
77
/*
8-
* Copyright (c) 2020-2021 Arm Limited. All rights reserved.
8+
* Copyright (c) 2020 Arm Limited. All rights reserved.
99
*
1010
* SPDX-License-Identifier: Apache-2.0
1111
*
@@ -48,7 +48,7 @@
4848

4949
#ifndef __SCB_ICACHE_LINE_SIZE
5050
#define __SCB_ICACHE_LINE_SIZE 32U /*!< Cortex-M7 cache line size is fixed to 32 bytes (8 words). See also register SCB_CCSIDR */
51-
#endif
51+
#endif
5252

5353
/**
5454
\brief Enable I-Cache
@@ -112,7 +112,7 @@ __STATIC_FORCEINLINE void SCB_InvalidateICache (void)
112112
\param[in] addr address
113113
\param[in] isize size of memory block (in number of bytes)
114114
*/
115-
__STATIC_FORCEINLINE void SCB_InvalidateICache_by_Addr (volatile void *addr, int32_t isize)
115+
__STATIC_FORCEINLINE void SCB_InvalidateICache_by_Addr (void *addr, int32_t isize)
116116
{
117117
#if defined (__ICACHE_PRESENT) && (__ICACHE_PRESENT == 1U)
118118
if ( isize > 0 ) {
@@ -325,13 +325,13 @@ __STATIC_FORCEINLINE void SCB_CleanInvalidateDCache (void)
325325
\param[in] addr address
326326
\param[in] dsize size of memory block (in number of bytes)
327327
*/
328-
__STATIC_FORCEINLINE void SCB_InvalidateDCache_by_Addr (volatile void *addr, int32_t dsize)
328+
__STATIC_FORCEINLINE void SCB_InvalidateDCache_by_Addr (void *addr, int32_t dsize)
329329
{
330330
#if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U)
331-
if ( dsize > 0 ) {
331+
if ( dsize > 0 ) {
332332
int32_t op_size = dsize + (((uint32_t)addr) & (__SCB_DCACHE_LINE_SIZE - 1U));
333333
uint32_t op_addr = (uint32_t)addr /* & ~(__SCB_DCACHE_LINE_SIZE - 1U) */;
334-
334+
335335
__DSB();
336336

337337
do {
@@ -355,13 +355,13 @@ __STATIC_FORCEINLINE void SCB_InvalidateDCache_by_Addr (volatile void *addr, int
355355
\param[in] addr address
356356
\param[in] dsize size of memory block (in number of bytes)
357357
*/
358-
__STATIC_FORCEINLINE void SCB_CleanDCache_by_Addr (volatile void *addr, int32_t dsize)
358+
__STATIC_FORCEINLINE void SCB_CleanDCache_by_Addr (uint32_t *addr, int32_t dsize)
359359
{
360360
#if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U)
361-
if ( dsize > 0 ) {
361+
if ( dsize > 0 ) {
362362
int32_t op_size = dsize + (((uint32_t)addr) & (__SCB_DCACHE_LINE_SIZE - 1U));
363363
uint32_t op_addr = (uint32_t)addr /* & ~(__SCB_DCACHE_LINE_SIZE - 1U) */;
364-
364+
365365
__DSB();
366366

367367
do {
@@ -385,13 +385,13 @@ __STATIC_FORCEINLINE void SCB_CleanDCache_by_Addr (volatile void *addr, int32_t
385385
\param[in] addr address (aligned to 32-byte boundary)
386386
\param[in] dsize size of memory block (in number of bytes)
387387
*/
388-
__STATIC_FORCEINLINE void SCB_CleanInvalidateDCache_by_Addr (volatile void *addr, int32_t dsize)
388+
__STATIC_FORCEINLINE void SCB_CleanInvalidateDCache_by_Addr (uint32_t *addr, int32_t dsize)
389389
{
390390
#if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U)
391-
if ( dsize > 0 ) {
391+
if ( dsize > 0 ) {
392392
int32_t op_size = dsize + (((uint32_t)addr) & (__SCB_DCACHE_LINE_SIZE - 1U));
393393
uint32_t op_addr = (uint32_t)addr /* & ~(__SCB_DCACHE_LINE_SIZE - 1U) */;
394-
394+
395395
__DSB();
396396

397397
do {

0 commit comments

Comments
 (0)