HWA
Bare metal programming with style
ocb_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__ocb
31 
32 #define HW_BITS__ocb , _hw_bn_ocb
33 #define _hw_bn_ocb(o,a,...) 8
34 
35 /* Return the compare register of a _ocb
36  */
37 #define hw__ocb_reg , _hw_ocb_reg
38 #define _hw_ocb_reg(oo,ct,cp) HW_XOR(ct,ocr##cp) /* HW_CODR is blued */
39 
40 
41 #if !defined __ASSEMBLER__
42 
43 typedef struct {
44 
45  /* Registers used for high-level configuration
46  */
47  struct {
48  uint8_t outputh, outputl ;
49  } config ;
50 
51 } hwa_ocb_t ;
52 
53 #endif