From bc7c607a667d14f2604d0477615666c87700c218 Mon Sep 17 00:00:00 2001 From: Tautvydas Belgeras Date: Fri, 14 Dec 2018 16:21:24 +0200 Subject: [PATCH] Fixed enum typecasting issues when building with g++ --- .../mbed/targets/hal/rtl8711b/PeripheralNames.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/component/common/mbed/targets/hal/rtl8711b/PeripheralNames.h b/component/common/mbed/targets/hal/rtl8711b/PeripheralNames.h index a16da02..707a101 100644 --- a/component/common/mbed/targets/hal/rtl8711b/PeripheralNames.h +++ b/component/common/mbed/targets/hal/rtl8711b/PeripheralNames.h @@ -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 {