2014-01-10 16:46:18 +00:00
|
|
|
/* mbed Microcontroller Library
|
2021-02-17 16:41:19 +00:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
******************************************************************************
|
2014-01-10 16:46:18 +00:00
|
|
|
*
|
2021-02-17 16:41:19 +00:00
|
|
|
* Copyright (c) 2016-2020 STMicroelectronics.
|
|
|
|
* All rights reserved.
|
2014-01-10 16:46:18 +00:00
|
|
|
*
|
2021-02-17 16:41:19 +00:00
|
|
|
* This software component is licensed by ST under BSD 3-Clause license,
|
|
|
|
* the "License"; You may not use this file except in compliance with the
|
|
|
|
* License. You may obtain a copy of the License at:
|
|
|
|
* opensource.org/licenses/BSD-3-Clause
|
2014-01-10 16:46:18 +00:00
|
|
|
*
|
2021-02-17 16:41:19 +00:00
|
|
|
******************************************************************************
|
2014-01-10 16:46:18 +00:00
|
|
|
*/
|
2021-02-17 16:41:19 +00:00
|
|
|
|
2014-01-10 16:46:18 +00:00
|
|
|
#ifndef MBED_PERIPHERALNAMES_H
|
|
|
|
#define MBED_PERIPHERALNAMES_H
|
|
|
|
|
|
|
|
#include "cmsis.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef enum {
|
2014-03-20 10:32:29 +00:00
|
|
|
ADC_1 = (int)ADC1_BASE
|
2014-01-10 16:46:18 +00:00
|
|
|
} ADCName;
|
|
|
|
|
2014-01-22 07:22:01 +00:00
|
|
|
typedef enum {
|
|
|
|
DAC_1 = (int)DAC_BASE
|
|
|
|
} DACName;
|
|
|
|
|
2014-01-10 16:46:18 +00:00
|
|
|
typedef enum {
|
2014-04-29 08:12:59 +00:00
|
|
|
UART_1 = (int)USART1_BASE,
|
2014-03-13 22:38:09 +00:00
|
|
|
UART_2 = (int)USART2_BASE,
|
|
|
|
UART_3 = (int)USART3_BASE,
|
2021-02-17 15:25:27 +00:00
|
|
|
#if defined UART4_BASE
|
2014-03-13 22:38:09 +00:00
|
|
|
UART_4 = (int)UART4_BASE,
|
2021-02-17 15:25:27 +00:00
|
|
|
#endif
|
|
|
|
#if defined UART5_BASE
|
2014-03-13 22:38:09 +00:00
|
|
|
UART_5 = (int)UART5_BASE
|
2021-02-17 15:25:27 +00:00
|
|
|
#endif
|
2014-01-10 16:46:18 +00:00
|
|
|
} UARTName;
|
|
|
|
|
2019-06-14 12:15:56 +00:00
|
|
|
#define DEVICE_SPI_COUNT 3
|
2014-01-10 16:46:18 +00:00
|
|
|
typedef enum {
|
|
|
|
SPI_1 = (int)SPI1_BASE,
|
2014-03-13 22:38:09 +00:00
|
|
|
SPI_2 = (int)SPI2_BASE,
|
|
|
|
SPI_3 = (int)SPI3_BASE
|
2014-01-10 16:46:18 +00:00
|
|
|
} SPIName;
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
I2C_1 = (int)I2C1_BASE,
|
|
|
|
I2C_2 = (int)I2C2_BASE
|
|
|
|
} I2CName;
|
|
|
|
|
|
|
|
typedef enum {
|
2014-03-20 10:32:29 +00:00
|
|
|
PWM_2 = (int)TIM2_BASE,
|
|
|
|
PWM_3 = (int)TIM3_BASE,
|
|
|
|
PWM_4 = (int)TIM4_BASE,
|
|
|
|
PWM_5 = (int)TIM5_BASE,
|
|
|
|
PWM_9 = (int)TIM9_BASE,
|
|
|
|
PWM_10 = (int)TIM10_BASE,
|
|
|
|
PWM_11 = (int)TIM11_BASE
|
2014-01-10 16:46:18 +00:00
|
|
|
} PWMName;
|
|
|
|
|
2019-09-06 15:17:37 +00:00
|
|
|
typedef enum {
|
|
|
|
USB_FS = (int)USB_BASE,
|
|
|
|
} USBName;
|
|
|
|
|
2014-01-10 16:46:18 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|