Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion cores/piduino/raspberry_pi_revision.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,15 @@
// E - Memory - 2 (1024 MB)
// F - Endcoded flag - 1 (encoded cpu info)
//
// Revision : A020D3
//
// A - PCB Revision - 3 (first revision)
// B - Model Name - D (Model B Pi 3)
// C - Processor - 0 (BCM2835)
// D - Manufacturer - 0 (Sony)
// E - Memory - 2 (1024 MB)
// F - Endcoded flag - 1 (encoded cpu info)
//
//-------------------------------------------------------------------------

static RASPBERRY_PI_MEMORY_T revisionToMemory[] =
Expand Down Expand Up @@ -235,7 +244,8 @@ static RASPBERRY_PI_MODEL_T bitFieldToModel[] =
RPI_MODEL_ZERO, // 9
RPI_COMPUTE_MODULE_3, // A
RPI_MODEL_UNKNOWN, // B
RPI_MODEL_ZERO_W // C
RPI_MODEL_ZERO_W, // C
RPI_MODEL_B_PI_3_PLUS // D
};

static RASPBERRY_PI_MODEL_T revisionToModel[] =
Expand Down Expand Up @@ -734,6 +744,11 @@ raspberryPiModelToString(
string = "Model Zero W";
break;

case RPI_MODEL_B_PI_3_PLUS:

string = "Model B Pi 3+";
break;

default:

break;
Expand Down
3 changes: 2 additions & 1 deletion cores/piduino/raspberry_pi_revision.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ typedef enum
RPI_MODEL_ZERO,
RPI_MODEL_B_PI_3,
RPI_COMPUTE_MODULE_3,
RPI_MODEL_ZERO_W
RPI_MODEL_ZERO_W,
RPI_MODEL_B_PI_3_PLUS
}
RASPBERRY_PI_MODEL_T;

Expand Down
2 changes: 1 addition & 1 deletion cores/piduino/wiring.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ int init(){

uint32_t offset = info.peripheralBase - 0x20000000;

if (info.model == RPI_MODEL_B_PI_3 || info.model == RPI_MODEL_B_PI_2 || info.model == RPI_MODEL_ZERO || info.model == RPI_MODEL_ZERO_W) {
if (info.model == RPI_MODEL_B_PI_3 || info.model == RPI_MODEL_B_PI_2 || info.model == RPI_MODEL_ZERO || info.model == RPI_MODEL_ZERO_W || info.model == RPI_MODEL_B_PI_3_PLUS) {
info.revisionNumber = 0x10;
}
if(info.revisionNumber >= PINMASKS_LEN || !rpi_model_pinmasks[info.revisionNumber]){
Expand Down