mavishak / cnss-embedded

1 stars 0 forks source link

Enabling timers #16

Open mavishak opened 3 years ago

mavishak commented 3 years ago

17/03/2021

We started implementing timer2. As of now, it seems that TIM2->CNT changes its value as expected. We couldn't be sure because it wouldn't print in UART. At first, ARR wouldn't change in debugging mode but then we set the (=) value rather than the |= operator. We decided to move forward and implement the timer interrupts.

Stm32 Intro To timers - YouTube Stm32 Delay Using Timers or Systick - YouTube

NaomiCreate commented 3 years ago

20/03/2021

We implemented timer 2 ,timer 3 and timer 4. We created for all of them delay functions and timeout functions. Timers 2 and 3 fire an interrupt once a milli second. Timer 4 fires an interrupt once a second.

mavishak commented 3 years ago

24/03/2021

recordAlert() is now working with timers. We changed the HTTP version to 1.0 to get a quicker CLOSING. When sending an image we will probably need version 1.1