|
|
|
@ -1,6 +1,5 @@
|
|
|
|
|
#include "main.hpp"
|
|
|
|
|
#include "delay.h"
|
|
|
|
|
//#include "stm32f0xx_csl.h"
|
|
|
|
|
#include "deviceSetup.h"
|
|
|
|
|
#include "usart.h"
|
|
|
|
|
#include "ascii.h"
|
|
|
|
@ -9,14 +8,10 @@ int main(int argc, char *argv[])
|
|
|
|
|
{
|
|
|
|
|
uint8_t i = 0;
|
|
|
|
|
uint8_t a = '0';
|
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
=======
|
|
|
|
|
bool latch = false;
|
|
|
|
|
bool latch_old = false;
|
|
|
|
|
stmStart();
|
|
|
|
|
>>>>>>> 5e93624b4fad253de63e72bcd0e6f45ef3994daf
|
|
|
|
|
|
|
|
|
|
setupInit();
|
|
|
|
|
// setupInit();
|
|
|
|
|
|
|
|
|
|
delayInitMs(8000000, 1000);
|
|
|
|
|
// FreeRTOS_Delay dly;
|
|
|
|
@ -71,7 +66,6 @@ int main(int argc, char *argv[])
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
//test if the gpio port works as an input
|
|
|
|
|
if(pinRead(pinA0) && !latch_old)
|
|
|
|
|
{
|
|
|
|
@ -81,12 +75,7 @@ int main(int argc, char *argv[])
|
|
|
|
|
{
|
|
|
|
|
pinWrite(pinB3,0);
|
|
|
|
|
}
|
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
delayMs(100);
|
|
|
|
|
=======
|
|
|
|
|
*/
|
|
|
|
|
// delayMs(100);
|
|
|
|
|
>>>>>>> 5e93624b4fad253de63e72bcd0e6f45ef3994daf
|
|
|
|
|
}
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|