HWA
Bare metal programming with style
occ_1.h
Go to the documentation of this file.
1
2
/* This file is part of the HWA project.
3
* Copyright (c) 2012,2015 Christophe Duparquet.
4
* All rights reserved. Read LICENSE.TXT for details.
5
*/
6
30
#define hw_class__occ
31
32
#define HW_BITS__occ , _hw_bits_occ
33
#define _hw_bits_occ(...) 16
34
35
/* Return the compare register of a _occ
36
*/
37
#define hw__occ_reg , _hw_occ_reg
38
#define _hw_occ_reg(oo,ct,cp) HW_XOR(ct,ocr##cp)
/* HW_CODR is blued */
39
40
41
#if !defined __ASSEMBLER__
42
43
/* HWA context
44
*/
45
typedef
struct
{
46
47
/* Registers used for high-level configuration
48
*/
49
struct
{
50
uint8_t update ;
51
uint8_t output ;
52
} config ;
53
54
/* Registers used for configuration resolution
55
*/
56
struct
{
57
uint8_t com ;
58
} solved ;
59
60
} hwa_occ_t ;
61
62
#endif
Generated for HWA by
1.8.6