Skip to content

Commit

Permalink
Tweaks and fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Sep 16, 2024
1 parent e109d7b commit bdf4da1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
10 changes: 4 additions & 6 deletions explorer/explorer.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,17 @@
// SHOULD ONLY CONSIST OF PREPROCESSOR DIRECTIVES
// -----------------------------------------------------

// This header may be included by other board headers as "boards/pimoroni_pga2350.h"
// This header may be included by other board headers as "boards/explorer.h"

// pico_cmake_set PICO_PLATFORM=rp2350

#ifndef _BOARDS_PIMORONI_PGA2350_H
#define _BOARDS_PIMORONI_PGA2350_H
#ifndef _BOARDS_PIMORONI_EXPLORER_H
#define _BOARDS_PIMORONI_EXPLORER_H

// For board detection
#define PIMORONI_PGA2350
#define PIMORONI_PGA2350_16MB
#define PIMORONI_EXPLORER

// --- BOARD SPECIFIC ---
#define PIMORONI_PGA2350_PSRAM_CS_PIN 47

// --- UART ---
#ifndef PICO_DEFAULT_UART
Expand Down
9 changes: 2 additions & 7 deletions explorer/mpconfigboard.h
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))
2 changes: 1 addition & 1 deletion modules/py_frozen/boot.py
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)

0 comments on commit bdf4da1

Please sign in to comment.