Setup some useful defaults for the RaspberryPi.

This commit is contained in:
David Betz 2015-01-27 19:49:42 -05:00
parent df1907fbea
commit 4e1dbe2bb6
2 changed files with 9 additions and 1 deletions

View File

@ -55,11 +55,15 @@ static int continue_terminal = 1;
#ifdef RASPBERRY_PI
static int propellerResetGpioPin = 17;
static int propellerResetGpioLevel = 1;
static int propellerResetGpioLevel = 0;
#endif
/* Normally we use DTR for reset */
#ifdef RASPBERRY_PI
static reset_method_t reset_method = RESET_WITH_GPIO;
#else
static reset_method_t reset_method = RESET_WITH_DTR;
#endif
int use_reset_method(char* method)
{

View File

@ -68,7 +68,11 @@ int main(int argc, char *argv[])
/* initialize */
baudRate = baudRate2 = BAUD_RATE;
verbose = terminalMode = pstMode = FALSE;
#ifdef RASPBERRY_PI
port = "/dev/ttyAMA0";
#else
port = NULL;
#endif
/* initialize the loader */
PL_Init(&state, &serial, NULL);