HWA
Bare metal programming with style
uarta_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 
22 #define hw_class__uarta
23 
24 
25 #if !defined __ASSEMBLER__
26 
27 typedef struct {
28  hwa_r16_t ubrr ;
29  hwa_r8_t csra, csrb, csrc/* , dr */ ;
30 
31  struct {
32  uint16_t brr ;
33  uint8_t csz, pm, sbs, rxen, txen, u2x ;
34  } config ;
35 } hwa_uarta_t ;
36 
37 #endif