Skip to content

Commit

Permalink
squash lpuart make uart_config.type into an enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Joakim Nohlgård committed Aug 5, 2017
1 parent 90ac680 commit cd94f6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpu/kinetis_common/include/periph_cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,10 @@ enum {
/**
* @brief UART hardware module types
*/
enum {
typedef enum {
KINETIS_UART, /**< Kinetis UART module type */
KINETIS_LPUART, /**< Kinetis Low-power UART (LPUART) module type */
};
} uart_type_t;

/**
* @brief UART module configuration options
Expand All @@ -337,7 +337,7 @@ typedef struct {
volatile uint32_t *scgc_addr; /**< Clock enable register, in SIM module */
uint8_t scgc_bit; /**< Clock enable bit, within the register */
uint8_t mode; /**< UART mode: data bits, parity, stop bits */
uint8_t type; /**< Hardware module type (KINETIS_UART or KINETIS_LPUART)*/
uart_type_t type; /**< Hardware module type (KINETIS_UART or KINETIS_LPUART)*/
} uart_conf_t;

#if !defined(KINETIS_HAVE_PLL)
Expand Down

0 comments on commit cd94f6f

Please sign in to comment.