summaryrefslogtreecommitdiff
path: root/project/Core/Inc/System/systick.h
blob: 294cf3382d48000a7d12c8cc099c93d49c0f86d8 (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
29
30
/*
 * 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();

uint32_t systick_get_count();

#endif /* INC_SYSTICK_H_ */