~ruther/uni-mam-arm

ref: 91359abb1abbbf56f187591cc3b4b818fa64ffdf uni-mam-arm/arm03/src/delay.c -rw-r--r-- 196 bytes
91359abb — Rutherther feat(arm03): add debouncer timer for startstop button 1 year, 1 month ago
                                                                                
1
2
3
4
5
6
7
8
#include "delay.h"
#include <stdint.h>
#include <stm32f4xx.h>

void systick_configure() {
  SysTick->LOAD = SYSTICK_LOAD;
  SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_ENABLE_Msk;
}