~ruther/uni-mam-arm

ref: caeaf90ea3a725420fc01749b89c61680403e627 uni-mam-arm/arm05/src/delay.c -rw-r--r-- 196 bytes
caeaf90e — Rutherther feat(arm07): reimplement short/long button press via updating timer mutliple times 1 year, 14 days 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;
}