no-OS
chibios_uart.h
Go to the documentation of this file.
1 /***************************************************************************/
39 #ifndef _CHIBIOS_UART_H_
40 #define _CHIBIOS_UART_H_
41 
42 /******************************************************************************/
43 /***************************** Include Files **********************************/
44 /******************************************************************************/
45 
46 #include "no_os_uart.h"
47 #include "hal.h"
48 
49 /******************************************************************************/
50 /*************************** Types Declarations *******************************/
51 /******************************************************************************/
52 
53 #if (HAL_USE_UART==TRUE)
54 
61  SerialDriver *huart;
63  SerialConfig *sdconfig;
64 };
65 
72  SerialDriver *huart;
74  SerialConfig *sdconfig;
75 };
76 
80 extern const struct no_os_uart_platform_ops chibios_uart_ops;
81 
82 #endif //HAL_USE_UART==TRUE
83 
84 #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:161
no_os_uart_init_param::extra
void * extra
Definition: no_os_uart.h:133
chibios_uart_init_param::huart
SerialDriver * huart
Definition: chibios_uart.h:61
chibios_uart_desc::sdconfig
SerialConfig * sdconfig
Definition: chibios_uart.h:74
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:163
chibios_uart_ops
const struct no_os_uart_platform_ops chibios_uart_ops
chibios specific UART platform ops structure
Definition: chibios_uart.c:188
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:60
chibios_uart_desc::huart
SerialDriver * huart
Definition: chibios_uart.h:72
chibios_uart_init_param::sdconfig
SerialConfig * sdconfig
Definition: chibios_uart.h:63
no_os_uart_desc
Stucture holding the UART descriptor.
Definition: no_os_uart.h:140
chibios_uart_desc
chibios platform specific UART descriptor
Definition: chibios_uart.h:70
no_os_error.h
Error codes definition.
no_os_uart_desc::extra
void * extra
Definition: no_os_uart.h:153
chibios_uart_ops
const struct no_os_uart_platform_ops chibios_uart_ops
chibios platform specific UART platform ops structure
Definition: chibios_uart.c:188
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:75
no_os_uart_init_param
Structure holding the parameters for UART initialization.
Definition: no_os_uart.h:116
no_os_uart.h
Header file of UART interface.
chibios_uart_init_param
Additional UART config parameters.
Definition: chibios_uart.h:59