Skip to content

Commit 0294ccf

Browse files
authored
Merge pull request #8596 from jepler/obsolete-allocation-stuff
Remove some stuff about reserved psram & supervisor allocations
2 parents fd5373c + b47e23c commit 0294ccf

File tree

13 files changed

+0
-56
lines changed

13 files changed

+0
-56
lines changed

ports/espressif/bindings/espcamera/Camera.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@
6363
//| """
6464
//| Configure and initialize a camera with the given properties
6565
//|
66-
//| This driver requires that the ``CIRCUITPY_RESERVED_PSRAM`` in ``settings.toml`` be large enough to hold the camera framebuffer(s). Generally, boards with built-in cameras will have a default setting that is large enough. If the constructor raises a MemoryError or an IDFError, this probably indicates the setting is too small and should be increased.
67-
//|
68-
//|
6966
//| .. important::
7067
//|
7168
//| Not all supported sensors have all

ports/espressif/bindings/espidf/__init__.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ NORETURN void mp_raise_espidf_MemoryError(void);
4141
void raise_esp_error(esp_err_t err) NORETURN;
4242
#define CHECK_ESP_RESULT(x) do { int res = (x); if (res != ESP_OK) raise_esp_error(res); } while (0)
4343

44-
void common_hal_espidf_reserve_psram(void);
45-
bool common_hal_espidf_set_reserved_psram(size_t amount);
46-
size_t common_hal_espidf_get_reserved_psram(void);
4744
size_t common_hal_espidf_get_total_psram(void);
4845
intptr_t common_hal_espidf_get_psram_start(void);
4946
intptr_t common_hal_espidf_get_psram_end(void);

ports/espressif/boards/adafruit_esp32s3_camera/mpconfigboard.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,3 @@
4040
#define DEFAULT_SPI_BUS_MISO (&pin_GPIO37)
4141

4242
#define DOUBLE_TAP_PIN (&pin_GPIO42)
43-
44-
#define DEFAULT_RESERVED_PSRAM (1048576)

ports/espressif/boards/adafruit_qualia_s3_rgb666/mpconfigboard.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,3 @@
3737
#define DEFAULT_SPI_BUS_MOSI (&pin_GPIO7)
3838

3939
#define DOUBLE_TAP_PIN (&pin_GPIO4)
40-
41-
// a 1024x768 16BPP framebuffer + some breathing room
42-
#define DEFAULT_RESERVED_PSRAM (1024 * 1024 * 2)

ports/espressif/boards/espressif_esp32_eye/mpconfigboard.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,3 @@
3737
// UART pins attached to the USB-serial converter chip
3838
#define CIRCUITPY_CONSOLE_UART_TX (&pin_GPIO1)
3939
#define CIRCUITPY_CONSOLE_UART_RX (&pin_GPIO3)
40-
41-
#define DEFAULT_RESERVED_PSRAM (1048576)

ports/espressif/boards/espressif_esp32s3_devkitc_1_n8r8_hacktablet/mpconfigboard.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,3 @@
4040
// UART pins attached to the USB-serial converter chip
4141
#define CIRCUITPY_CONSOLE_UART_TX (&pin_GPIO43)
4242
#define CIRCUITPY_CONSOLE_UART_RX (&pin_GPIO44)
43-
44-
// a 800x480 16BPP framebuffer + some breathing room
45-
#define DEFAULT_RESERVED_PSRAM (800 * 800 * 2)

ports/espressif/boards/espressif_esp32s3_eye/mpconfigboard.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,3 @@
4343
{.clock = &pin_GPIO21, .mosi = &pin_GPIO47, .miso = NULL}, \
4444
{.clock = &pin_GPIO39, .mosi = &pin_GPIO40, .miso = &pin_GPIO38}, \
4545
}
46-
47-
#define DEFAULT_RESERVED_PSRAM (1048576)

ports/espressif/boards/espressif_esp32s3_lcd_ev/mpconfigboard.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,3 @@
3737
// UART pins attached to the USB-serial converter chip
3838
#define CIRCUITPY_CONSOLE_UART_TX (&pin_GPIO43)
3939
#define CIRCUITPY_CONSOLE_UART_RX (&pin_GPIO44)
40-
41-
// a 1024x768 16BPP framebuffer + some breathing room
42-
#define DEFAULT_RESERVED_PSRAM (1024 * 1024 * 2)

ports/espressif/boards/m5stack_timer_camera_x/mpconfigboard.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,3 @@
4343
#define CIRCUITPY_CONSOLE_UART_RX (&pin_GPIO3)
4444

4545
#define CIRCUITPY_I2C_ALLOW_INTERNAL_PULL_UP (1)
46-
47-
// espcamera.FrameSize.QXGA, half a megabyte result image.jpeg
48-
#define DEFAULT_RESERVED_PSRAM (1572864)

ports/espressif/boards/makerfabs_tft7/mpconfigboard.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,3 @@
3939
// UART pins attached to the USB-serial converter chip
4040
#define CIRCUITPY_CONSOLE_UART_TX (&pin_GPIO43)
4141
#define CIRCUITPY_CONSOLE_UART_RX (&pin_GPIO44)
42-
43-
// a 1024x768 16BPP framebuffer + some breathing room
44-
#define DEFAULT_RESERVED_PSRAM (1024 * 1024 * 2)

0 commit comments

Comments
 (0)