git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14575 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
8f8bad57f9
commit
2cbee868c9
|
@ -150,7 +150,7 @@
|
|||
* implementation defines its own version and the custom static
|
||||
* initializers.
|
||||
*/
|
||||
typedef struct {
|
||||
typedef struct hal_serial_config {
|
||||
/**
|
||||
* @brief Bit rate.
|
||||
*/
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
* @details An instance of this structure must be passed to @p sdStart()
|
||||
* in order to configure and start a serial driver operations.
|
||||
*/
|
||||
typedef struct {
|
||||
typedef struct hal_serial_config {
|
||||
/**
|
||||
* @brief Initialization value for the BRR register.
|
||||
*/
|
||||
|
|
|
@ -73,7 +73,7 @@ typedef uint32_t uartflags_t;
|
|||
/**
|
||||
* @brief Structure representing an UART driver.
|
||||
*/
|
||||
typedef struct UARTDriver UARTDriver;
|
||||
typedef struct hal_uart_driver UARTDriver;
|
||||
|
||||
/**
|
||||
* @brief Generic UART notification callback type.
|
||||
|
@ -99,10 +99,10 @@ typedef void (*uartccb_t)(UARTDriver *uartp, uint16_t c);
|
|||
typedef void (*uartecb_t)(UARTDriver *uartp, uartflags_t e);
|
||||
|
||||
/**
|
||||
* @brief Driver configuration structure.
|
||||
* @brief Type of an UART configuration structure.
|
||||
* @note It could be empty on some architectures.
|
||||
*/
|
||||
typedef struct {
|
||||
typedef struct hal_uart_config {
|
||||
/**
|
||||
* @brief End of transmission buffer callback.
|
||||
*/
|
||||
|
@ -133,7 +133,7 @@ typedef struct {
|
|||
/**
|
||||
* @brief Structure representing an UART driver.
|
||||
*/
|
||||
struct UARTDriver {
|
||||
struct hal_uart_driver {
|
||||
/**
|
||||
* @brief Driver state.
|
||||
*/
|
||||
|
|
|
@ -113,7 +113,7 @@ typedef enum {
|
|||
* implementation defines its own version and the custom static
|
||||
* initializers.
|
||||
*/
|
||||
typedef struct {
|
||||
typedef struct hal_serial_config {
|
||||
/**
|
||||
* @brief Bit rate.
|
||||
*/
|
||||
|
|
|
@ -229,9 +229,9 @@ typedef enum {
|
|||
typedef uint8_t uartflags_t;
|
||||
|
||||
/**
|
||||
* @brief Type of structure representing an UART driver.
|
||||
* @brief Type of an UART driver.
|
||||
*/
|
||||
typedef struct UARTDriver UARTDriver;
|
||||
typedef struct hal_uart_driver UARTDriver;
|
||||
|
||||
/**
|
||||
* @brief Generic UART notification callback type.
|
||||
|
@ -259,11 +259,11 @@ typedef void (*uartccb_t)(UARTDriver *uartp, uint16_t c);
|
|||
typedef void (*uartecb_t)(UARTDriver *uartp, uartflags_t e);
|
||||
|
||||
/**
|
||||
* @brief Driver configuration structure.
|
||||
* @brief Type of an UART configuration structure.
|
||||
* @note Implementations may extend this structure to contain more,
|
||||
* architecture dependent, fields.
|
||||
*/
|
||||
typedef struct {
|
||||
typedef struct hal_uart_config {
|
||||
/**
|
||||
* @brief End of transmission buffer callback.
|
||||
*/
|
||||
|
@ -324,7 +324,7 @@ typedef struct {
|
|||
* @note Implementations may extend this structure to contain more,
|
||||
* architecture dependent, fields.
|
||||
*/
|
||||
struct UARTDriver {
|
||||
struct hal_uart_driver {
|
||||
/**
|
||||
* @brief Driver state.
|
||||
*/
|
||||
|
|
|
@ -97,7 +97,7 @@
|
|||
* @details An instance of this structure must be passed to @p sdStart()
|
||||
* in order to configure and start a serial driver operations.
|
||||
*/
|
||||
typedef struct {
|
||||
typedef struct hal_serial_config {
|
||||
/**
|
||||
* @brief Bit rate.
|
||||
*/
|
||||
|
|
|
@ -128,7 +128,7 @@
|
|||
* implementation defines its own version and the custom static
|
||||
* initializers.
|
||||
*/
|
||||
typedef struct {
|
||||
typedef struct hal_serial_config {
|
||||
/**
|
||||
* @brief Bit rate.
|
||||
*/
|
||||
|
|
|
@ -488,7 +488,7 @@
|
|||
* implementation defines its own version and the custom static
|
||||
* initializers.
|
||||
*/
|
||||
typedef struct {
|
||||
typedef struct hal_serial_config {
|
||||
/**
|
||||
* @brief Bit rate.
|
||||
*/
|
||||
|
|
|
@ -187,9 +187,9 @@
|
|||
/*===========================================================================*/
|
||||
|
||||
/**
|
||||
* @brief Type of a structure representing an CAN driver.
|
||||
* @brief Type of a CAN driver.
|
||||
*/
|
||||
typedef struct CANDriver CANDriver;
|
||||
typedef struct hal_can_driver CANDriver;
|
||||
|
||||
/**
|
||||
* @brief Type of a transmission mailbox index.
|
||||
|
@ -303,9 +303,9 @@ typedef struct {
|
|||
} CANFilter;
|
||||
|
||||
/**
|
||||
* @brief Driver configuration structure.
|
||||
* @brief Type of a CAN configuration structure.
|
||||
*/
|
||||
typedef struct {
|
||||
typedef struct hal_can_config {
|
||||
/**
|
||||
* @brief CAN MCR register initialization data.
|
||||
* @note Some bits in this register are enforced by the driver regardless
|
||||
|
@ -323,7 +323,7 @@ typedef struct {
|
|||
/**
|
||||
* @brief Structure representing an CAN driver.
|
||||
*/
|
||||
struct CANDriver {
|
||||
struct hal_can_driver {
|
||||
/**
|
||||
* @brief Driver state.
|
||||
*/
|
||||
|
|
|
@ -148,9 +148,9 @@
|
|||
/*===========================================================================*/
|
||||
|
||||
/**
|
||||
* @brief Type of a structure representing an CAN driver.
|
||||
* @brief Type of a CAN driver.
|
||||
*/
|
||||
typedef struct CANDriver CANDriver;
|
||||
typedef struct hal_can_driver CANDriver;
|
||||
|
||||
/**
|
||||
* @brief Type of a transmission mailbox index.
|
||||
|
@ -313,9 +313,9 @@ typedef struct {
|
|||
|
||||
|
||||
/**
|
||||
* @brief Driver configuration structure.
|
||||
* @brief Type of a CAN configuration structure.
|
||||
*/
|
||||
typedef struct {
|
||||
typedef struct hal_can_config {
|
||||
/**
|
||||
* @brief Nominal bit timing and prescaler register.
|
||||
*/
|
||||
|
@ -341,7 +341,7 @@ typedef struct {
|
|||
/**
|
||||
* @brief Structure representing an CAN driver.
|
||||
*/
|
||||
struct CANDriver {
|
||||
struct hal_can_driver {
|
||||
/**
|
||||
* @brief Driver state.
|
||||
*/
|
||||
|
|
|
@ -395,7 +395,7 @@
|
|||
* implementation defines its own version and the custom static
|
||||
* initializers.
|
||||
*/
|
||||
typedef struct {
|
||||
typedef struct hal_serial_config {
|
||||
/**
|
||||
* @brief Bit rate.
|
||||
*/
|
||||
|
|
|
@ -746,9 +746,9 @@
|
|||
typedef uint32_t uartflags_t;
|
||||
|
||||
/**
|
||||
* @brief Structure representing an UART driver.
|
||||
* @brief Type of an UART driver.
|
||||
*/
|
||||
typedef struct UARTDriver UARTDriver;
|
||||
typedef struct hal_uart_driver UARTDriver;
|
||||
|
||||
/**
|
||||
* @brief Generic UART notification callback type.
|
||||
|
@ -774,10 +774,10 @@ typedef void (*uartccb_t)(UARTDriver *uartp, uint16_t c);
|
|||
typedef void (*uartecb_t)(UARTDriver *uartp, uartflags_t e);
|
||||
|
||||
/**
|
||||
* @brief Driver configuration structure.
|
||||
* @brief Type of an UART configuration structure.
|
||||
* @note It could be empty on some architectures.
|
||||
*/
|
||||
typedef struct {
|
||||
typedef struct hal_uart_config {
|
||||
/**
|
||||
* @brief End of transmission buffer callback.
|
||||
*/
|
||||
|
@ -826,7 +826,7 @@ typedef struct {
|
|||
/**
|
||||
* @brief Structure representing an UART driver.
|
||||
*/
|
||||
struct UARTDriver {
|
||||
struct hal_uart_driver {
|
||||
/**
|
||||
* @brief Driver state.
|
||||
*/
|
||||
|
|
|
@ -508,7 +508,7 @@
|
|||
* implementation defines its own version and the custom static
|
||||
* initializers.
|
||||
*/
|
||||
typedef struct {
|
||||
typedef struct hal_serial_config {
|
||||
/**
|
||||
* @brief Bit rate.
|
||||
*/
|
||||
|
|
|
@ -688,9 +688,9 @@
|
|||
typedef uint32_t uartflags_t;
|
||||
|
||||
/**
|
||||
* @brief Structure representing an UART driver.
|
||||
* @brief Type of an UART driver.
|
||||
*/
|
||||
typedef struct UARTDriver UARTDriver;
|
||||
typedef struct hal_uart_driver UARTDriver;
|
||||
|
||||
/**
|
||||
* @brief Generic UART notification callback type.
|
||||
|
@ -716,10 +716,10 @@ typedef void (*uartccb_t)(UARTDriver *uartp, uint16_t c);
|
|||
typedef void (*uartecb_t)(UARTDriver *uartp, uartflags_t e);
|
||||
|
||||
/**
|
||||
* @brief Driver configuration structure.
|
||||
* @brief Type of an UART configuration structure.
|
||||
* @note It could be empty on some architectures.
|
||||
*/
|
||||
typedef struct {
|
||||
typedef struct hal_uart_config {
|
||||
/**
|
||||
* @brief End of transmission buffer callback.
|
||||
*/
|
||||
|
@ -774,7 +774,7 @@ typedef struct {
|
|||
/**
|
||||
* @brief Structure representing an UART driver.
|
||||
*/
|
||||
struct UARTDriver {
|
||||
struct hal_uart_driver {
|
||||
/**
|
||||
* @brief Driver state.
|
||||
*/
|
||||
|
|
|
@ -88,7 +88,7 @@
|
|||
* implementation defines its own version and the custom static
|
||||
* initializers.
|
||||
*/
|
||||
typedef struct {
|
||||
typedef struct hal_serial_config {
|
||||
} SerialConfig;
|
||||
|
||||
/**
|
||||
|
|
|
@ -88,7 +88,7 @@
|
|||
* implementation defines its own version and the custom static
|
||||
* initializers.
|
||||
*/
|
||||
typedef struct {
|
||||
typedef struct hal_serial_config {
|
||||
} SerialConfig;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue