mirror of
https://github.com/taubel/sdk-ameba-v4.0b-gcc.git
synced 2026-04-05 21:15:23 +00:00
Fixed enum typecasting issues when building with g++
This commit is contained in:
parent
e98a20c448
commit
bc7c607a66
1 changed files with 7 additions and 7 deletions
|
|
@ -23,9 +23,9 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
typedef enum {
|
||||
UART_0 = (int)UART0_DEV,
|
||||
UART_1 = (int)UART1_DEV,
|
||||
UART_2 = (int)UART2_DEV,
|
||||
UART_0 = UART0_REG_BASE,
|
||||
UART_1 = UART1_REG_BASE,
|
||||
UART_2 = UART2_REG_BASE,
|
||||
} UARTName;
|
||||
|
||||
typedef enum {
|
||||
|
|
@ -36,13 +36,13 @@ typedef enum {
|
|||
} ADCName;
|
||||
|
||||
typedef enum {
|
||||
SPI_0 = (int)SPI0_DEV,
|
||||
SPI_1 = (int)SPI1_DEV,
|
||||
SPI_0 = SPI0_REG_BASE,
|
||||
SPI_1 = SPI1_REG_BASE,
|
||||
} SPIName;
|
||||
|
||||
typedef enum {
|
||||
I2C_0 = (int)I2C0_DEV,
|
||||
I2C_1 = (int)I2C1_DEV,
|
||||
I2C_0 = I2C0_REG_BASE,
|
||||
I2C_1 = I2C1_REG_BASE,
|
||||
} I2CName;
|
||||
|
||||
typedef enum {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue