summaryrefslogtreecommitdiff
path: root/project/Core/Inc/System/systick.h
blob: bb5454dcb194faedafee29e366835f9bf305a9f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * systick.h
 *
 *  Created on: Jan 8, 2023
 *      Author: bruce
 */

#ifndef INC_SYSTICK_H_
#define INC_SYSTICK_H_

#include <stdint.h>

typedef struct {
	uint32_t CSR;
	uint32_t RVR;
	uint32_t CVR;
	uint32_t CALIB;
} systick_t;

// This function is to Initialize SysTick registers
void init_systick();

// This fuction is to create delay using SysTick timer counter
void delay_systick();

int check_systick();

#endif /* INC_SYSTICK_H_ */