34,9 → 34,9 |
|
/*Pocet opakovani pro jednotlive faze odpalu (pocet = cas[s]*8) pro kompenzaci 8xrychlejsiho casovace na desce STM32F10xRxT01A */ |
#define POCET_VENTIL (5*8) |
#define POCET_LIS (15*8) |
#define POCET_ZATAVENI (5*8) |
#define POCET_STRECHA (8*8) |
#define POCET_LIS (1*8) |
#define POCET_ZATAVENI (2*8) |
#define POCET_STRECHA (5*8) |
#define CEKANI_NA_STRECHU (10*8) |
#define CEKANI_NA_LIS (10*8) |
|
46,7 → 46,7 |
|
extern NMEA_GPGGA GPGGA_informace; |
Thread *tp_odpal = NULL; |
uint8_t uvitaci_zprava[] = "\r\n\r\n* * * * * * * * * * * * * * * * * * * * * * * * * *\r\nVita vas Automaticky Vypoustec Meteobalonu 1.1\r\nZapojeni vyvodu:\r\n\tGPIOB10 - ventil\r\n\tGPIOB11 - lis\r\n\tGPIOB12 - zataveni balonu\r\n\tGPIOB13 - otevreni krytu\r\nPrikazy:\r\n\t<odpal> zahajeni sekvence vypousteni\n\r\t<zrus> zruseni vypousteni\n\r\t<help> napoveda\r\n* * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\r\n"; |
uint8_t uvitaci_zprava[] = "\r\n\r\n* * * * * * * * * * * * * * * * * * * * * * * * * *\r\nVita vas Automaticky Vypoustec Meteobalonu 1.1\r\nZapojeni vyvodu:\r\n\tGPIOB10 - strecha\r\n\tGPIOB11 - ventil\r\n\tGPIOB12 - lis\r\n\tGPIOB13 - zataveni/odpojeni\r\nPrikazy:\r\n\t<odpal> zahajeni sekvence vypousteni\n\r\t<zrus> zruseni vypousteni\n\r\t<help> napoveda\r\n* * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\r\n"; |
|
//static PWMConfig pwmcfg = { |
//10000, /* 10kHz PWM clock frequency. */ |
477,8 → 477,8 |
*GPS |
*/ |
sdStart(&SD2, &USART2_config); |
palSetPadMode(GPIOA, 2, PAL_MODE_STM32_ALTERNATE_OPENDRAIN); //TX |
palSetPadMode(GPIOA, 3, PAL_MODE_STM32_ALTERNATE_OPENDRAIN); //RX - overrides board.h PadValues |
palSetPadMode(GPIOA, 2, PAL_MODE_STM32_ALTERNATE_PUSHPULL); //TX |
//palSetPadMode(GPIOA, 3, PAL_MODE_STM32_ALTERNATE_OPENDRAIN); //RX - overrides board.h PadValues |
|
/* |
* LED na vyvojove desce |
546,6 → 546,16 |
prikaz[0] = 0; |
} |
/*Uklada prikaz*/ |
else if (znaky[0] == 's') // ukonci odpalovani |
{ |
chSysLockFromIsr(); |
if (tp_odpal != NULL) { |
tp_odpal->p_u.rdymsg = (msg_t)2; /* zakazano pokracovat v odpalovaci sekvenci*/ |
chSchReadyI(tp_odpal); |
tp_odpal = NULL; |
} |
chSysUnlockFromIsr(); |
} |
else |
{ |
prikaz[pocet_znaku + 1] = 0; |