~ruther/vhdl-spi-2

ref: 9ec022e5f06bb1d572c435809c0614e8e33fadde vhdl-spi-2/stm_spi_funduino/src/delay.c -rw-r--r-- 196 bytes
9ec022e5 — Rutherther fix: csn was rising too soon for divisors > 2 11 months 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;
}