no-OS
chibios_uart.h
Go to the documentation of this file.
1 /***************************************************************************/
33 #ifndef _CHIBIOS_UART_H_
34 #define _CHIBIOS_UART_H_
35 
36 /******************************************************************************/
37 /***************************** Include Files **********************************/
38 /******************************************************************************/
39 
40 #include "no_os_uart.h"
41 #include "hal.h"
42 
43 /******************************************************************************/
44 /*************************** Types Declarations *******************************/
45 /******************************************************************************/
46 
47 #if (HAL_USE_UART==TRUE)
48 
55  SerialDriver *huart;
57  SerialConfig *sdconfig;
58 };
59 
66  SerialDriver *huart;
68  SerialConfig *sdconfig;
69 };
70 
74 extern const struct no_os_uart_platform_ops chibios_uart_ops;
75 
76 #endif //HAL_USE_UART==TRUE
77 
78 #endif //_CHIBIOS_UART_H_
no_os_alloc.h
no_os_uart_platform_ops
Structure holding UART function pointers that point to the platform specific function.
Definition: no_os_uart.h:155
no_os_uart_init_param::extra
void * extra
Definition: no_os_uart.h:127
chibios_uart_init_param::huart
SerialDriver * huart
Definition: chibios_uart.h:55
chibios_uart_desc::sdconfig
SerialConfig * sdconfig
Definition: chibios_uart.h:68
no_os_uart_platform_ops::init
int32_t(* init)(struct no_os_uart_desc **, struct no_os_uart_init_param *)
Definition: no_os_uart.h:157
chibios_uart_ops
const struct no_os_uart_platform_ops chibios_uart_ops
chibios specific UART platform ops structure
Definition: chibios_uart.c:182
no_os_calloc
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:54
chibios_uart_desc::huart
SerialDriver * huart
Definition: chibios_uart.h:66
chibios_uart_init_param::sdconfig
SerialConfig * sdconfig
Definition: chibios_uart.h:57
no_os_uart_desc
Stucture holding the UART descriptor.
Definition: no_os_uart.h:134
chibios_uart_desc
chibios platform specific UART descriptor
Definition: chibios_uart.h:64
no_os_error.h
Error codes definition.
no_os_uart_desc::extra
void * extra
Definition: no_os_uart.h:147
chibios_uart_ops
const struct no_os_uart_platform_ops chibios_uart_ops
chibios platform specific UART platform ops structure
Definition: chibios_uart.c:182
chibios_uart.h
Header file of UART driver for chibiOS.
no_os_free
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
no_os_uart_init_param
Structure holding the parameters for UART initialization.
Definition: no_os_uart.h:110
no_os_uart.h
Header file of UART interface.
chibios_uart_init_param
Additional UART config parameters.
Definition: chibios_uart.h:53