px-fwlib
0.10.0
Cross-platform embedded library and documentation for 8/16/32-bit microcontrollers
generated with
Doxygen
1.9.2
px_sysclk_cfg_template.h
1
#ifndef __PX_SYSCLK_CFG_H__
2
#define __PX_SYSCLK_CFG_H__
3
/* =============================================================================
4
____ ___ ____ ___ _ _ ___ __ __ ___ __ __ TM
5
| _ \ |_ _| / ___| / _ \ | \ | | / _ \ | \/ | |_ _| \ \/ /
6
| |_) | | | | | | | | | | \| | | | | | | |\/| | | | \ /
7
| __/ | | | |___ | |_| | | |\ | | |_| | | | | | | | / \
8
|_| |___| \____| \___/ |_| \_| \___/ |_| |_| |___| /_/\_\
9
10
Copyright (c) 2018 Pieter Conradie <https://piconomix.com>
11
12
License: MIT
13
https://github.com/piconomix/px-fwlib/blob/master/LICENSE.md
14
15
Title: px_sysclk.h : System Clock using the SysTick peripheral
16
Author(s): Pieter Conradie
17
Creation Date: 2018-03-06
18
19
============================================================================= */
20
21
/* _____STANDARD INCLUDES____________________________________________________ */
22
23
/* _____PROJECT INCLUDES_____________________________________________________ */
24
#include "px_defs.h"
25
//#include "px_rtc.h"
26
27
/* _____DEFINITIONS__________________________________________________________ */
28
/// The number of system clock ticks per second
29
#define PX_SYSCLK_CFG_TICKS_PER_SEC 1000ul
30
31
/// Enable (1) or disable (0) support for STM32Cube HAL 1 ms SysTick timer functionality
32
#define PX_SYSCLK_CFG_STMCUBE_HAL_TMR 1
33
34
/// Specify periodic timeout (in sysclk ticks)
35
//#define PX_SYSCLK_CFG_TIMEOUT_PERIOD_TICKS PX_SYSCLK_CFG_TICKS_PER_SEC
36
37
/// Specify function to call on periodic timeout
38
//#define PX_SYSCLK_CFG_ON_PERIODIC_TIMEOUT() px_rtc_on_tick()
39
40
#endif