Files
mbed-os/targets/TARGET_GigaDevice/TARGET_GD32F4XX/TARGET_GD32F450ZI/PeripheralNames.h
Beslan 0ef1717155
Some checks failed
Basic Checks / license-check (push) Has been cancelled
Basic Checks / include-check (push) Has been cancelled
Basic Checks / style-check (push) Has been cancelled
Basic Checks / docs-check (push) Has been cancelled
Basic Checks / python-tests (push) Has been cancelled
Basic Checks / pin-validation (push) Has been cancelled
Basic Checks / cmake-checks (push) Has been cancelled
Basic Checks / frozen-tools-check (push) Has been cancelled
Publish or Update docker image for head of branch / prepare-tags (push) Has been cancelled
Release or update docker image for a released mbed-os version / prepare-tags (push) Has been cancelled
Publish or Update docker image for head of branch / build-container (push) Has been cancelled
Publish or Update docker image for head of branch / test-container (linux/amd64) (push) Has been cancelled
Publish or Update docker image for head of branch / test-container (linux/arm64) (push) Has been cancelled
Publish or Update docker image for head of branch / deploy-container (push) Has been cancelled
Release or update docker image for a released mbed-os version / build-container (push) Has been cancelled
Release or update docker image for a released mbed-os version / test-container (linux/amd64) (push) Has been cancelled
Release or update docker image for a released mbed-os version / test-container (linux/arm64) (push) Has been cancelled
Release or update docker image for a released mbed-os version / deploy-container (push) Has been cancelled
Prune temporary docker images / prune-images (push) Has been cancelled
Mirror mbed-os-6.15.0
2026-07-10 18:42:39 +03:00

103 lines
2.2 KiB
C

/* mbed Microcontroller Library
* Copyright (c) 2018 GigaDevice Semiconductor Inc.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef MBED_PERIPHERALNAMES_H
#define MBED_PERIPHERALNAMES_H
#include "cmsis.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
ADC_0 = (int)ADC0,
ADC_1 = (int)ADC1,
ADC_2 = (int)ADC2
} ADCName;
typedef enum {
DAC_0 = (int)DAC,
} DACName;
typedef enum {
UART_0 = (int)USART0,
UART_1 = (int)USART1,
UART_2 = (int)USART2,
UART_3 = (int)UART3,
UART_4 = (int)UART4,
UART_5 = (int)USART5,
UART_6 = (int)UART6,
UART_7 = (int)UART7
} UARTName;
#if defined(MBED_CONF_TARGET_STDIO_UART_TX)
#define STDIO_UART_TX MBED_CONF_TARGET_STDIO_UART_TX
#else
#define STDIO_UART_TX PORTC_12
#endif
#if defined(MBED_CONF_TARGET_STDIO_UART_RX)
#define STDIO_UART_RX MBED_CONF_TARGET_STDIO_UART_RX
#else
#define STDIO_UART_RX PORTD_2
#endif
#define STDIO_UART UART_4
typedef enum {
SPI_0 = (int)SPI0,
SPI_1 = (int)SPI1,
SPI_2 = (int)SPI2,
SPI_3 = (int)SPI3,
SPI_4 = (int)SPI4,
SPI_5 = (int)SPI5
} SPIName;
typedef enum {
I2C_0 = (int)I2C0,
I2C_1 = (int)I2C1,
I2C_2 = (int)I2C2,
} I2CName;
typedef enum {
PWM_0 = (int)TIMER0,
PWM_1 = (int)TIMER1,
PWM_2 = (int)TIMER2,
PWM_3 = (int)TIMER3,
PWM_4 = (int)TIMER4,
PWM_5 = (int)TIMER5,
PWM_6 = (int)TIMER6,
PWM_7 = (int)TIMER7,
PWM_8 = (int)TIMER8,
PWM_9 = (int)TIMER9,
PWM_10 = (int)TIMER10,
PWM_11 = (int)TIMER11,
PWM_12 = (int)TIMER12,
PWM_13 = (int)TIMER13
} PWMName;
typedef enum {
CAN_0 = (int)CAN0,
CAN_1 = (int)CAN1
} CANName;
#ifdef __cplusplus
}
#endif
#endif