HWA
Bare metal programming with style
hsea_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__hsea , (power,stat)
13 #define _hwa_actions__hsea , (power,stat)
14 
28 /* Implemented in stm32/hwa_2.h */
29 
43 typedef struct {
44  unsigned int _0_16 : 17 ;
45  unsigned int ready : 1 ;
46  unsigned int _18_31 : 14 ;
47 } _hw_sthse_t ;
48 
49 #define hw_stat_t__hsea , _hw_stthse
50 #define _hw_stthse(o,a,...) _hw_sthse_t HW_EOL(__VA_ARGS__)
51 
52 #define hw_stat__hsea , _hw_sthse
53 #define _hw_sthse(o,a,...) (*(volatile _hw_sthse_t*)HW_ADDRESS((rcc,cr))) HW_EOL(__VA_ARGS__)