Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
hsi.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2024 Prime Controls, Inc.(R)
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
17
18
#ifdef __cplusplus
19
extern
"C"
{
20
#endif
21
22
#include "cpu_conf.h"
23
#include "
kernel_defines.h
"
24
25
#if IS_ACTIVE(CONFIG_USE_HSI_DIRECT) || IS_ACTIVE(CONFIG_USE_HSI_PLL)
26
# ifndef CONFIG_CLOCK_HSI
27
# error "CONFIG_CLOCK_HSI must be defined"
28
# endif
29
# ifndef CONFIG_CLOCK_HSI_DIV
30
# define CONFIG_CLOCK_HSI_DIV 1
31
# endif
32
# define CLOCK_HSI (CONFIG_CLOCK_HSI / CONFIG_CLOCK_HSI_DIV)
33
#endif
34
35
#ifdef __cplusplus
36
}
37
#endif
38
kernel_defines.h
Common macros and compiler attributes/pragmas configuration.
Generated on Thu Feb 26 2026 19:45:48 by
1.13.2