Git did some weird things, small correction

interrupts
key 4 years ago
parent 1ed71f9f14
commit 5c4b21d476

@ -82,12 +82,12 @@ void setupMemory()
if(SYS_CLK <= 24000000) if(SYS_CLK <= 24000000)
{ {
FLASH->ACR = (((FLASH->ACR) & (~(FLASH_ACR_LATENCY_Msk))) | 0); FLASH->ACR = (((FLASH->ACR) & (~(FLASH_ACR_LATENCY_Msk))) | 0);
while( (FLASH->ACR) & (FLASH_ACR_LATENCY_Msk) != 0){} while( ((FLASH->ACR) & (FLASH_ACR_LATENCY_Msk)) != 0){}
} }
else else
{ {
FLASH->ACR = (((FLASH->ACR) & (~(FLASH_ACR_LATENCY_Msk))) | 1); FLASH->ACR = (((FLASH->ACR) & (~(FLASH_ACR_LATENCY_Msk))) | 1);
while( (FLASH->ACR) & (FLASH_ACR_LATENCY_Msk) != 1){} while( ((FLASH->ACR) & (FLASH_ACR_LATENCY_Msk)) != 1){}
} }
} }

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

Loading…
Cancel
Save