-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doom: add I2S sound driver doom: do not set pins for I2S (it breaks select button) doom: add buzzer sound driver doom: add sound device menu on startup sdk: fix multiboot not resetting firmware path sdk: fix default Canvas size sdk: cleanup code alignment
- Loading branch information
Showing
17 changed files
with
693 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,39 @@ | ||
#ifndef D_ALLOC_H | ||
#define D_ALLOC_H | ||
|
||
#include <stdlib.h> | ||
#include "d_log.h" | ||
|
||
extern void D_AllocBuffers (void); | ||
extern void D_FreeBuffers (void); | ||
extern void D_AllocBuffers(void); | ||
extern void D_FreeBuffers(void); | ||
|
||
#ifndef MALLOC_CAP_EXEC | ||
|
||
#define MALLOC_CAP_EXEC (1 << 0) ///< Memory must be able to run executable code | ||
#define MALLOC_CAP_32BIT (1 << 1) ///< Memory must allow for aligned 32-bit data accesses | ||
#define MALLOC_CAP_8BIT (1 << 2) ///< Memory must allow for 8/16/...-bit data accesses | ||
#define MALLOC_CAP_DMA (1 << 3) ///< Memory must be able to accessed by DMA | ||
#define MALLOC_CAP_PID2 (1 << 4) ///< Memory must be mapped to PID2 memory space (PIDs are not currently used) | ||
#define MALLOC_CAP_PID3 (1 << 5) ///< Memory must be mapped to PID3 memory space (PIDs are not currently used) | ||
#define MALLOC_CAP_PID4 (1 << 6) ///< Memory must be mapped to PID4 memory space (PIDs are not currently used) | ||
#define MALLOC_CAP_PID5 (1 << 7) ///< Memory must be mapped to PID5 memory space (PIDs are not currently used) | ||
#define MALLOC_CAP_PID6 (1 << 8) ///< Memory must be mapped to PID6 memory space (PIDs are not currently used) | ||
#define MALLOC_CAP_PID7 (1 << 9) ///< Memory must be mapped to PID7 memory space (PIDs are not currently used) | ||
#define MALLOC_CAP_SPIRAM (1 << 10) ///< Memory must be in SPI RAM | ||
#define MALLOC_CAP_INTERNAL \ | ||
(1 << 11) ///< Memory must be internal; specifically it should not disappear when flash/spiram cache is switched off | ||
#define MALLOC_CAP_DEFAULT \ | ||
(1 << 12) ///< Memory can be returned in a non-capability-specific memory allocation (e.g. malloc(), calloc()) call | ||
#define MALLOC_CAP_IRAM_8BIT (1 << 13) ///< Memory must be in IRAM and allow unaligned access | ||
#define MALLOC_CAP_RETENTION (1 << 14) ///< Memory must be able to accessed by retention DMA | ||
#define MALLOC_CAP_RTCRAM (1 << 15) ///< Memory must be in RTC fast memory | ||
|
||
#define MALLOC_CAP_INVALID (1 << 31) ///< Memory can't be used / list end marker | ||
|
||
#endif | ||
|
||
// Including <esp_heap_caps.h> breaks some literals (like "false") | ||
extern void* heap_caps_malloc(size_t size, uint32_t caps); | ||
extern void* ps_malloc(size_t size); | ||
|
||
#endif // D_ALLOC_H |
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
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
Oops, something went wrong.