HWA
Bare metal programming with style
sclka_2.h
Go to the documentation of this file.
1
2
/* This file is part of the HWA project.
3
* Copyright (c) 2017 Christophe Duparquet.
4
* All rights reserved. Read LICENSE.TXT for details.
5
*/
6
11
#define hw_class__sclka
12
13
#define hw_sysclk _sclka, 0
14
29
#define hw_connect__sclka , _hw_cnsysclka
30
#define _hw_cnsysclka(o,a,v,...) HW_BV(_hwx_cnsysclka,cnsysclka_,v,_hw,o,__VA_ARGS__)
31
32
#define hwa_connect__sclka , _hwa_cnsysclka
33
#define _hwa_cnsysclka(o,a,v,...) HW_BV(_hwx_cnsysclka,cnsysclka_,v,_hwa,o,__VA_ARGS__)
34
35
#define _hw_cnsysclka_hsi , 0
36
#define _hw_cnsysclka_hse , 1
37
#define _hw_cnsysclka_pll , 2
38
39
#define _hwx_cnsysclka_(v,...) HW_E(HW_EM_VL(v,(hsi,hse,pll)))
40
#define _hwx_cnsysclka0(v,...) HW_E(HW_EM_VL(v,(hsi,hse,pll)))
41
#define _hwx_cnsysclka1(r,h,o,...) h##_write(rcc,sw,r)
Generated for HWA by
1.8.6