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

#endif /* INC_SYSTICK_H_ */