generated from pimoroni/pga
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
7 additions
and
14 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,11 +1,6 @@ | ||
// Board and hardware specific configuration | ||
|
||
// Board and hardware specific configuration | ||
#ifndef MICROPY_HW_BOARD_NAME | ||
// Might be defined by mpconfigvariant_VARIANT.cmake | ||
#define MICROPY_HW_BOARD_NAME "Pimoroni Explorer" | ||
#endif | ||
|
||
// Portion of onboard flash to reserve for the user filesystem | ||
// PGA2350 has 16MB flash, so reserve 2MiB for the firmware and leave 14MiB | ||
#define MICROPY_HW_FLASH_STORAGE_BYTES (14 * 1024 * 1024) | ||
// Reserve 2MB for MicroPython, leaving the rest for the user filesystem | ||
#define MICROPY_HW_FLASH_STORAGE_BYTES (PICO_FLASH_SIZE_BYTES - (2 * 1024 * 1024)) |
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,3 +1,3 @@ | ||
import cppmem | ||
# Switch C++ memory allocations to use MicroPython's heap | ||
cppmem.set_mode(cppmem.MICROPYTHON) | ||
cppmem.set_mode(cppmem.MICROPYTHON) |