18#ifndef __VSF_REMAPPED_USART_H__
19#define __VSF_REMAPPED_USART_H__
25#if VSF_HAL_USE_USART == ENABLED
27#if VSF_USART_CFG_MULTI_CLASS == ENABLED
29#if defined(__VSF_REMAPPED_USART_CLASS_IMPLEMENT)
30# undef __VSF_REMAPPED_USART_CLASS_IMPLEMENT
31# define __VSF_CLASS_IMPLEMENT__
32#elif defined(__VSF_REMAPPED_USART_CLASS_INHERIT__)
33# undef __VSF_REMAPPED_USART_CLASS_INHERIT__
34# define __VSF_CLASS_INHERIT__
45#ifndef VSF_REMAPPED_USART_CFG_MULTI_CLASS
46# define VSF_REMAPPED_USART_CFG_MULTI_CLASS VSF_USART_CFG_MULTI_CLASS
49#if VSF_REMAPPED_USART_CFG_MULTI_CLASS == ENABLED
50# define __describe_remapped_usart_op() .op = &vsf_remapped_usart_op,
52# define __describe_remapped_usart_op()
55#define __describe_remapped_usart(__name, __usart) \
56 vsf_remapped_usart_t __name = { \
57 __describe_remapped_usart_op() \
58 .target = (vsf_usart_t *) & __usart, \
61#define describe_remapped_usart(__name, __usart) \
62 __describe_remapped_usart(__name, __usart)
68#if VSF_REMAPPED_USART_CFG_MULTI_CLASS == ENABLED
80#if VSF_REMAPPED_USART_CFG_MULTI_CLASS == ENABLED
88#define VSF_USART_CFG_DEC_PREFIX vsf_remapped
89#define VSF_USART_CFG_DEC_UPCASE_PREFIX VSF_REMAPPED
Definition vsf_remapped_usart.h:67
#define vsf_class(__name)
Definition ooc_class.h:48
Definition vsf_template_usart.h:718
Definition vsf_template_usart.h:726
const vsf_usart_op_t vsf_remapped_usart_op
Definition vsf_remapped_usart.c:37