micropython/ports/rp2/boards/WEACTSTUDIO/weactstudio_4MiB.h
Jim Mussared 45845acf6d rp2: Use uppercase variant names.
This is to support a future change to add the variant name to the build
directory and therefore should be the same style as the board name.

This only affects the WEACTSTUDIO board. Also standardises on a convention
for naming flash-size variants. Normally we would write e.g. 2MiB, but in
uppercase, it's awkward to write 2MIB, so instead use 2M, 512K, etc for
variant names, but use 2MiB when not constrained by case (e.g. a regular
filename).

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2023-08-23 13:54:37 +10:00

19 lines
447 B
C

// A pico-sdk board definition is required since the WeAct Studio boards are
// not officially supported.
//
// Officially supported boards:
// https://github.com/raspberrypi/pico-sdk/tree/master/src/boards/include/boards
#ifndef _BOARDS_WEACTSTUDIO_4MB_H
#define _BOARDS_WEACTSTUDIO_4MB_H
#include "weactstudio_common.h"
#define WEACTSTUDIO_4MB
#ifndef PICO_FLASH_SIZE_BYTES
#define PICO_FLASH_SIZE_BYTES (4 * 1024 * 1024)
#endif
#endif