~ruther/vhdl-spi-2

ref: 3d1c611fcc77144659c6e510169d4a6c79792986 vhdl-spi-2/stm_spi_funduino/src/delay.c -rw-r--r-- 196 bytes
3d1c611f — Rutherther tests: add spi_peripheral 'application' testcase 1 year, 1 day 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;
}