SiLabs Pearl: Remove configuration for HW not present in Pearl

Removed DAC/AnalogOut, I2C1, UART0/1, LEUART1, USART2,
GPIO Drive support and GPIO port E.
pull/1501/head
Mikko Polojarvi 2015-10-13 15:39:56 +03:00 committed by Steven Cooreman
parent dcc6b61ed5
commit 6e7589c5b8
4 changed files with 16 additions and 31 deletions

View File

@ -38,17 +38,12 @@
extern "C" {
#endif
typedef enum {
DAC_0 = DAC0_BASE
} DACName;
typedef enum {
ADC_0 = ADC0_BASE
} ADCName;
typedef enum {
I2C_0 = I2C0_BASE,
I2C_1 = I2C1_BASE
} I2CName;
typedef enum {
@ -59,12 +54,9 @@ typedef enum {
} PWMName;
typedef enum {
UART_0 = UART0_BASE,
UART_1 = UART1_BASE,
USART_0 = USART0_BASE,
USART_1 = USART1_BASE,
LEUART_0 = LEUART0_BASE,
LEUART_1 = LEUART1_BASE
} UARTName;
#define STDIO_UART_TX USBTX
@ -74,7 +66,6 @@ typedef enum {
typedef enum {
SPI_0 = USART0_BASE,
SPI_1 = USART1_BASE,
SPI_2 = USART2_BASE
} SPIName;
#ifdef __cplusplus

View File

@ -84,26 +84,21 @@ typedef enum {
/* 0x10 represents setting the DOUT register (see efm32 modes in ref. manual) */
typedef enum {
/* EFM32 pin modes */
Disabled = gpioModeDisabled,
DisabledPullUp = gpioModeDisabled | 0x10,
Input = gpioModeInput,
InputFilter = gpioModeInput | 0x10,
InputPullDown = gpioModeInputPull,
InputPullUp = gpioModeInputPull | 0x10,
InputPullFilterDown = gpioModeInputPullFilter,
InputPullFilterUp = gpioModeInputPullFilter | 0x10,
PushPull = gpioModePushPull,
PushPullDrive = gpioModePushPullDrive,
WiredOr = gpioModeWiredOr,
WiredOrPullDown = gpioModeWiredOrPullDown,
WiredAnd = gpioModeWiredAnd,
WiredAndFilter = gpioModeWiredAndFilter,
WiredAndPullUp = gpioModeWiredAndPullUp,
Disabled = gpioModeDisabled,
DisabledPullUp = gpioModeDisabled | 0x10,
Input = gpioModeInput,
InputFilter = gpioModeInput | 0x10,
InputPullDown = gpioModeInputPull,
InputPullUp = gpioModeInputPull | 0x10,
InputPullFilterDown = gpioModeInputPullFilter,
InputPullFilterUp = gpioModeInputPullFilter | 0x10,
PushPull = gpioModePushPull,
WiredOr = gpioModeWiredOr,
WiredOrPullDown = gpioModeWiredOrPullDown,
WiredAnd = gpioModeWiredAnd,
WiredAndFilter = gpioModeWiredAndFilter,
WiredAndPullUp = gpioModeWiredAndPullUp,
WiredAndPullUpFilter = gpioModeWiredAndPullUpFilter,
WiredAndDrive = gpioModeWiredAndDrive,
WiredAndDriveFilter = gpioModeWiredAndDriveFilter,
WiredAndDrivePullUp = gpioModeWiredAndDrivePullUp,
WiredAndDrivePullUpFilter = gpioModeWiredAndDrivePullUpFilter,
/* mbed modes:
* PullUp, PullDown, PullNone, OpenDrain

View File

@ -41,8 +41,7 @@ typedef enum {
PortB = gpioPortB, /**< Port B */
PortC = gpioPortC, /**< Port C */
PortD = gpioPortD, /**< Port D */
PortE = gpioPortE, /**< Port E */
PortF = gpioPortF /**< Port F */
PortF = gpioPortF /**< Port F */
} PortName;
#ifdef __cplusplus

View File

@ -37,7 +37,7 @@
#define DEVICE_INTERRUPTIN 1
#define DEVICE_ANALOGIN 1
#define DEVICE_ANALOGOUT 1
#define DEVICE_ANALOGOUT 0
#define DEVICE_SERIAL 1
#define DEVICE_SERIAL_ASYNCH 1