~ruther/uni-mam-arm

ref: f65841ce311967a812404e6c06e30e013058e91c uni-mam-arm/arm01/src/delay.c -rw-r--r-- 176 bytes
f65841ce — Rutherther feat(arm03): pin_write uses sets/reset instead f writing to ODR 1 year, 1 month ago
                                                                                
1
2
3
4
5
6
7
#include "delay.h"
#include <stm32f4xx.h>

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