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 UART_1 = (int)USART1_BASE,
lypinator 0:bb348c97df44 31 UART_2 = (int)USART2_BASE,
lypinator 0:bb348c97df44 32 UART_3 = (int)USART3_BASE,
lypinator 0:bb348c97df44 33 UART_6 = (int)USART6_BASE
lypinator 0:bb348c97df44 34 } UARTName;
lypinator 0:bb348c97df44 35
lypinator 0:bb348c97df44 36 typedef enum {
lypinator 0:bb348c97df44 37 SPI_1 = (int)SPI1_BASE,
lypinator 0:bb348c97df44 38 SPI_2 = (int)SPI2_BASE,
lypinator 0:bb348c97df44 39 SPI_3 = (int)SPI3_BASE,
lypinator 0:bb348c97df44 40 SPI_4 = (int)SPI4_BASE,
lypinator 0:bb348c97df44 41 SPI_5 = (int)SPI5_BASE
lypinator 0:bb348c97df44 42 } SPIName;
lypinator 0:bb348c97df44 43
lypinator 0:bb348c97df44 44 typedef enum {
lypinator 0:bb348c97df44 45 I2C_1 = (int)I2C1_BASE,
lypinator 0:bb348c97df44 46 I2C_2 = (int)I2C2_BASE,
lypinator 0:bb348c97df44 47 I2C_3 = (int)I2C3_BASE,
lypinator 0:bb348c97df44 48 FMPI2C_1 = (int)FMPI2C1_BASE
lypinator 0:bb348c97df44 49 } I2CName;
lypinator 0:bb348c97df44 50
lypinator 0:bb348c97df44 51 typedef enum {
lypinator 0:bb348c97df44 52 PWM_1 = (int)TIM1_BASE,
lypinator 0:bb348c97df44 53 PWM_2 = (int)TIM2_BASE,
lypinator 0:bb348c97df44 54 PWM_3 = (int)TIM3_BASE,
lypinator 0:bb348c97df44 55 PWM_4 = (int)TIM4_BASE,
lypinator 0:bb348c97df44 56 PWM_5 = (int)TIM5_BASE,
lypinator 0:bb348c97df44 57 PWM_8 = (int)TIM8_BASE,
lypinator 0:bb348c97df44 58 PWM_9 = (int)TIM9_BASE,
lypinator 0:bb348c97df44 59 PWM_10 = (int)TIM10_BASE,
lypinator 0:bb348c97df44 60 PWM_11 = (int)TIM11_BASE,
lypinator 0:bb348c97df44 61 PWM_12 = (int)TIM12_BASE,
lypinator 0:bb348c97df44 62 PWM_13 = (int)TIM13_BASE,
lypinator 0:bb348c97df44 63 PWM_14 = (int)TIM14_BASE
lypinator 0:bb348c97df44 64 } PWMName;
lypinator 0:bb348c97df44 65
lypinator 0:bb348c97df44 66 typedef enum {
lypinator 0:bb348c97df44 67 CAN_1 = (int)CAN1_BASE,
lypinator 0:bb348c97df44 68 CAN_2 = (int)CAN2_BASE
lypinator 0:bb348c97df44 69 } CANName;
lypinator 0:bb348c97df44 70
lypinator 0:bb348c97df44 71 #ifdef __cplusplus
lypinator 0:bb348c97df44 72 }
lypinator 0:bb348c97df44 73 #endif
lypinator 0:bb348c97df44 74
lypinator 0:bb348c97df44 75 #endif