-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #737 from Daft-Freak/user-itcm
ITCM for "user" code
- Loading branch information
Showing
4 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#pragma once | ||
|
||
#ifdef TARGET_32BLIT_HW | ||
#define blit_fast_code(fn) __attribute__((section(".itcm." #fn))) fn | ||
#define blit_no_inline_fast_code(fn) __attribute__((noinline)) blit_fast_code(fn) | ||
#elif defined(PICO_BUILD) | ||
#include <pico/platform.h> | ||
|
||
#define blit_fast_code(fn) __not_in_flash_func(fn) | ||
#define blit_no_inline_fast_code(fn) __no_inline_not_in_flash_func(fn) | ||
#else | ||
#define blit_fast_code(fn) fn | ||
#define blit_no_inline_fast_code(fn) fn | ||
#endif |