HWA
Bare metal programming with style
hsia_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 
12 #define _hw_actions__hsia , (power,stat)
13 #define _hwa_actions__hsia , (power,stat)
14 
28 /* Implemented in stm32/hwa_2.h */
29 
43 /* Status of the HSI
44  */
45 typedef struct {
46  unsigned int _0 : 1 ;
47  unsigned int ready : 1 ;
48  unsigned int _2_31 : 30 ;
49 } _hw_sthsi_t ;
50 
51 #define hw_stat_t__hsia , _hw_stthsi
52 #define _hw_stthsi(o,a,...) _hw_sthsi_t HW_EOL(__VA_ARGS__)
53 
54 #define hw_stat__hsia , _hw_sthsi
55 #define _hw_sthsi(o,a,...) (*(volatile _hw_sthsi_t*)HW_ADDRESS((rcc,cr))) HW_EOL(__VA_ARGS__)