Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 035c08d

Browse files
committed
[EFR32] Add initial support for EFR32
Adding target definitions and the HAL implementation for EFR32 Mighty Gecko
1 parent 214d1be commit 035c08d

File tree

69 files changed

+30606
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+30606
-0
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
/***************************************************************************//**
2+
* @file PeripheralNames.h
3+
*******************************************************************************
4+
* @section License
5+
* <b>(C) Copyright 2015 Silicon Labs, http://www.silabs.com</b>
6+
*******************************************************************************
7+
*
8+
* SPDX-License-Identifier: Apache-2.0
9+
*
10+
* Licensed under the Apache License, Version 2.0 (the "License"); you may
11+
* not use this file except in compliance with the License.
12+
* You may obtain a copy of the License at
13+
*
14+
* http://www.apache.org/licenses/LICENSE-2.0
15+
*
16+
* Unless required by applicable law or agreed to in writing, software
17+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
18+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19+
* See the License for the specific language governing permissions and
20+
* limitations under the License.
21+
*
22+
******************************************************************************/
23+
#ifndef MBED_PERIPHERALNAMES_H
24+
#define MBED_PERIPHERALNAMES_H
25+
26+
#include "em_adc.h"
27+
#include "em_usart.h"
28+
#include "em_i2c.h"
29+
30+
#ifdef __cplusplus
31+
extern "C" {
32+
#endif
33+
34+
typedef enum {
35+
ADC_0 = ADC0_BASE
36+
} ADCName;
37+
38+
typedef enum {
39+
I2C_0 = I2C0_BASE,
40+
} I2CName;
41+
42+
typedef enum {
43+
PWM_CH0 = 0,
44+
PWM_CH1 = 1,
45+
PWM_CH2 = 2,
46+
PWM_CH3 = 3
47+
} PWMName;
48+
49+
typedef enum {
50+
USART_0 = USART0_BASE,
51+
USART_1 = USART1_BASE,
52+
LEUART_0 = LEUART0_BASE,
53+
} UARTName;
54+
55+
typedef enum {
56+
SPI_0 = USART0_BASE,
57+
SPI_1 = USART1_BASE,
58+
} SPIName;
59+
60+
#ifdef __cplusplus
61+
}
62+
#endif
63+
64+
#endif

0 commit comments

Comments
 (0)