Initial commit

Dependencies:   FastPWM

Committer:
lypinator
Date:
Wed Sep 16 01:11:49 2020 +0000
Revision:
0:bb348c97df44
Added PWM

Who changed what in which revision?

UserRevisionLine numberNew contents of line
lypinator 0:bb348c97df44 1 /* mbed Microcontroller Library
lypinator 0:bb348c97df44 2 * Copyright (c) 2016 ARM Limited
lypinator 0:bb348c97df44 3 *
lypinator 0:bb348c97df44 4 * Licensed under the Apache License, Version 2.0 (the "License");
lypinator 0:bb348c97df44 5 * you may not use this file except in compliance with the License.
lypinator 0:bb348c97df44 6 * You may obtain a copy of the License at
lypinator 0:bb348c97df44 7 *
lypinator 0:bb348c97df44 8 * http://www.apache.org/licenses/LICENSE-2.0
lypinator 0:bb348c97df44 9 *
lypinator 0:bb348c97df44 10 * Unless required by applicable law or agreed to in writing, software
lypinator 0:bb348c97df44 11 * distributed under the License is distributed on an "AS IS" BASIS,
lypinator 0:bb348c97df44 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
lypinator 0:bb348c97df44 13 * See the License for the specific language governing permissions and
lypinator 0:bb348c97df44 14 * limitations under the License.
lypinator 0:bb348c97df44 15 */
lypinator 0:bb348c97df44 16 #ifndef MBED_PERIPHERALNAMES_H
lypinator 0:bb348c97df44 17 #define MBED_PERIPHERALNAMES_H
lypinator 0:bb348c97df44 18
lypinator 0:bb348c97df44 19 #include "cmsis.h"
lypinator 0:bb348c97df44 20
lypinator 0:bb348c97df44 21 #ifdef __cplusplus
lypinator 0:bb348c97df44 22 extern "C" {
lypinator 0:bb348c97df44 23 #endif
lypinator 0:bb348c97df44 24
lypinator 0:bb348c97df44 25 typedef enum {
lypinator 0:bb348c97df44 26 ADC_1 = (int)ADC1_BASE
lypinator 0:bb348c97df44 27 } ADCName;
lypinator 0:bb348c97df44 28
lypinator 0:bb348c97df44 29 typedef enum {
lypinator 0:bb348c97df44 30 DAC_1 = (int)DAC_BASE
lypinator 0:bb348c97df44 31 } DACName;
lypinator 0:bb348c97df44 32
lypinator 0:bb348c97df44 33 typedef enum {
lypinator 0:bb348c97df44 34 UART_1 = (int)USART1_BASE,
lypinator 0:bb348c97df44 35 UART_2 = (int)USART2_BASE,
lypinator 0:bb348c97df44 36 UART_3 = (int)USART3_BASE,
lypinator 0:bb348c97df44 37 UART_4 = (int)UART4_BASE,
lypinator 0:bb348c97df44 38 UART_5 = (int)UART5_BASE,
lypinator 0:bb348c97df44 39 UART_6 = (int)USART6_BASE,
lypinator 0:bb348c97df44 40 UART_7 = (int)UART7_BASE,
lypinator 0:bb348c97df44 41 UART_8 = (int)UART8_BASE,
lypinator 0:bb348c97df44 42 UART_9 = (int)UART9_BASE,
lypinator 0:bb348c97df44 43 UART_10 = (int)UART10_BASE
lypinator 0:bb348c97df44 44 } UARTName;
lypinator 0:bb348c97df44 45
lypinator 0:bb348c97df44 46 typedef enum {
lypinator 0:bb348c97df44 47 SPI_1 = (int)SPI1_BASE,
lypinator 0:bb348c97df44 48 SPI_2 = (int)SPI2_BASE,
lypinator 0:bb348c97df44 49 SPI_3 = (int)SPI3_BASE,
lypinator 0:bb348c97df44 50 SPI_4 = (int)SPI4_BASE,
lypinator 0:bb348c97df44 51 SPI_5 = (int)SPI5_BASE
lypinator 0:bb348c97df44 52 } SPIName;
lypinator 0:bb348c97df44 53
lypinator 0:bb348c97df44 54 typedef enum {
lypinator 0:bb348c97df44 55 I2C_1 = (int)I2C1_BASE,
lypinator 0:bb348c97df44 56 I2C_2 = (int)I2C2_BASE,
lypinator 0:bb348c97df44 57 I2C_3 = (int)I2C3_BASE,
lypinator 0:bb348c97df44 58 FMPI2C_1 = (int)FMPI2C1_BASE
lypinator 0:bb348c97df44 59 } I2CName;
lypinator 0:bb348c97df44 60
lypinator 0:bb348c97df44 61 typedef enum {
lypinator 0:bb348c97df44 62 PWM_1 = (int)TIM1_BASE,
lypinator 0:bb348c97df44 63 PWM_2 = (int)TIM2_BASE,
lypinator 0:bb348c97df44 64 PWM_3 = (int)TIM3_BASE,
lypinator 0:bb348c97df44 65 PWM_4 = (int)TIM4_BASE,
lypinator 0:bb348c97df44 66 PWM_5 = (int)TIM5_BASE,
lypinator 0:bb348c97df44 67 PWM_8 = (int)TIM8_BASE,
lypinator 0:bb348c97df44 68 PWM_9 = (int)TIM9_BASE,
lypinator 0:bb348c97df44 69 PWM_10 = (int)TIM10_BASE,
lypinator 0:bb348c97df44 70 PWM_11 = (int)TIM11_BASE,
lypinator 0:bb348c97df44 71 PWM_12 = (int)TIM12_BASE,
lypinator 0:bb348c97df44 72 PWM_13 = (int)TIM13_BASE,
lypinator 0:bb348c97df44 73 PWM_14 = (int)TIM14_BASE
lypinator 0:bb348c97df44 74 } PWMName;
lypinator 0:bb348c97df44 75
lypinator 0:bb348c97df44 76 typedef enum {
lypinator 0:bb348c97df44 77 CAN_1 = (int)CAN1_BASE,
lypinator 0:bb348c97df44 78 CAN_2 = (int)CAN2_BASE,
lypinator 0:bb348c97df44 79 CAN_3 = (int)CAN3_BASE
lypinator 0:bb348c97df44 80 } CANName;
lypinator 0:bb348c97df44 81
lypinator 0:bb348c97df44 82 #ifdef __cplusplus
lypinator 0:bb348c97df44 83 }
lypinator 0:bb348c97df44 84 #endif
lypinator 0:bb348c97df44 85
lypinator 0:bb348c97df44 86 #endif