![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Color Oled(SSD1331) connect to STMicroelectronics Nucleo-F466
mbed-os/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL43Z/TARGET_FRDM/PeripheralNames.h@3:f3764f852aa8, 2018-10-11 (annotated)
- Committer:
- kadonotakashi
- Date:
- Thu Oct 11 02:27:46 2018 +0000
- Revision:
- 3:f3764f852aa8
- Parent:
- 0:8fdf9a60065b
Nucreo 446 + SSD1331 test version;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kadonotakashi | 0:8fdf9a60065b | 1 | /* mbed Microcontroller Library |
kadonotakashi | 0:8fdf9a60065b | 2 | * Copyright (c) 2006-2013 ARM Limited |
kadonotakashi | 0:8fdf9a60065b | 3 | * |
kadonotakashi | 0:8fdf9a60065b | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
kadonotakashi | 0:8fdf9a60065b | 5 | * you may not use this file except in compliance with the License. |
kadonotakashi | 0:8fdf9a60065b | 6 | * You may obtain a copy of the License at |
kadonotakashi | 0:8fdf9a60065b | 7 | * |
kadonotakashi | 0:8fdf9a60065b | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
kadonotakashi | 0:8fdf9a60065b | 9 | * |
kadonotakashi | 0:8fdf9a60065b | 10 | * Unless required by applicable law or agreed to in writing, software |
kadonotakashi | 0:8fdf9a60065b | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
kadonotakashi | 0:8fdf9a60065b | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
kadonotakashi | 0:8fdf9a60065b | 13 | * See the License for the specific language governing permissions and |
kadonotakashi | 0:8fdf9a60065b | 14 | * limitations under the License. |
kadonotakashi | 0:8fdf9a60065b | 15 | */ |
kadonotakashi | 0:8fdf9a60065b | 16 | #ifndef MBED_PERIPHERALNAMES_H |
kadonotakashi | 0:8fdf9a60065b | 17 | #define MBED_PERIPHERALNAMES_H |
kadonotakashi | 0:8fdf9a60065b | 18 | |
kadonotakashi | 0:8fdf9a60065b | 19 | #include "cmsis.h" |
kadonotakashi | 0:8fdf9a60065b | 20 | |
kadonotakashi | 0:8fdf9a60065b | 21 | #ifdef __cplusplus |
kadonotakashi | 0:8fdf9a60065b | 22 | extern "C" { |
kadonotakashi | 0:8fdf9a60065b | 23 | #endif |
kadonotakashi | 0:8fdf9a60065b | 24 | |
kadonotakashi | 0:8fdf9a60065b | 25 | typedef enum { |
kadonotakashi | 0:8fdf9a60065b | 26 | OSC32KCLK = 0, |
kadonotakashi | 0:8fdf9a60065b | 27 | } RTCName; |
kadonotakashi | 0:8fdf9a60065b | 28 | |
kadonotakashi | 0:8fdf9a60065b | 29 | /* LPUART */ |
kadonotakashi | 0:8fdf9a60065b | 30 | typedef enum { |
kadonotakashi | 0:8fdf9a60065b | 31 | LPUART_0 = 0, |
kadonotakashi | 0:8fdf9a60065b | 32 | LPUART_1 = 1, |
kadonotakashi | 0:8fdf9a60065b | 33 | } UARTName; |
kadonotakashi | 0:8fdf9a60065b | 34 | |
kadonotakashi | 0:8fdf9a60065b | 35 | #define STDIO_UART_TX USBTX |
kadonotakashi | 0:8fdf9a60065b | 36 | #define STDIO_UART_RX USBRX |
kadonotakashi | 0:8fdf9a60065b | 37 | #define STDIO_UART LPUART_0 |
kadonotakashi | 0:8fdf9a60065b | 38 | |
kadonotakashi | 0:8fdf9a60065b | 39 | typedef enum { |
kadonotakashi | 0:8fdf9a60065b | 40 | I2C_0 = 0, |
kadonotakashi | 0:8fdf9a60065b | 41 | I2C_1 = 1, |
kadonotakashi | 0:8fdf9a60065b | 42 | } I2CName; |
kadonotakashi | 0:8fdf9a60065b | 43 | |
kadonotakashi | 0:8fdf9a60065b | 44 | #define TPM_SHIFT 8 |
kadonotakashi | 0:8fdf9a60065b | 45 | typedef enum { |
kadonotakashi | 0:8fdf9a60065b | 46 | PWM_1 = (0 << TPM_SHIFT) | (0), // TPM0 CH0 |
kadonotakashi | 0:8fdf9a60065b | 47 | PWM_2 = (0 << TPM_SHIFT) | (1), // TPM0 CH1 |
kadonotakashi | 0:8fdf9a60065b | 48 | PWM_3 = (0 << TPM_SHIFT) | (2), // TPM0 CH2 |
kadonotakashi | 0:8fdf9a60065b | 49 | PWM_4 = (0 << TPM_SHIFT) | (3), // TPM0 CH3 |
kadonotakashi | 0:8fdf9a60065b | 50 | PWM_5 = (0 << TPM_SHIFT) | (4), // TPM0 CH4 |
kadonotakashi | 0:8fdf9a60065b | 51 | PWM_6 = (0 << TPM_SHIFT) | (5), // TPM0 CH5 |
kadonotakashi | 0:8fdf9a60065b | 52 | PWM_7 = (1 << TPM_SHIFT) | (0), // TPM1 CH0 |
kadonotakashi | 0:8fdf9a60065b | 53 | PWM_8 = (1 << TPM_SHIFT) | (1) // TPM1 CH1 |
kadonotakashi | 0:8fdf9a60065b | 54 | } PWMName; |
kadonotakashi | 0:8fdf9a60065b | 55 | |
kadonotakashi | 0:8fdf9a60065b | 56 | #define ADC_INSTANCE_SHIFT 8 |
kadonotakashi | 0:8fdf9a60065b | 57 | #define ADC_B_CHANNEL_SHIFT 5 |
kadonotakashi | 0:8fdf9a60065b | 58 | typedef enum { |
kadonotakashi | 0:8fdf9a60065b | 59 | ADC0_SE0 = (0 << ADC_INSTANCE_SHIFT) | 0, |
kadonotakashi | 0:8fdf9a60065b | 60 | ADC0_SE1 = (0 << ADC_INSTANCE_SHIFT) | 1, |
kadonotakashi | 0:8fdf9a60065b | 61 | ADC0_SE2 = (0 << ADC_INSTANCE_SHIFT) | 2, |
kadonotakashi | 0:8fdf9a60065b | 62 | ADC0_SE3 = (0 << ADC_INSTANCE_SHIFT) | 3, |
kadonotakashi | 0:8fdf9a60065b | 63 | ADC0_SE4a = (0 << ADC_INSTANCE_SHIFT) | 4, |
kadonotakashi | 0:8fdf9a60065b | 64 | ADC0_SE5a = (0 << ADC_INSTANCE_SHIFT) | 5, |
kadonotakashi | 0:8fdf9a60065b | 65 | ADC0_SE6a = (0 << ADC_INSTANCE_SHIFT) | 6, |
kadonotakashi | 0:8fdf9a60065b | 66 | ADC0_SE7a = (0 << ADC_INSTANCE_SHIFT) | 7, |
kadonotakashi | 0:8fdf9a60065b | 67 | ADC0_SE4b = (0 << ADC_INSTANCE_SHIFT) | (1 << ADC_B_CHANNEL_SHIFT) | 4, |
kadonotakashi | 0:8fdf9a60065b | 68 | ADC0_SE5b = (0 << ADC_INSTANCE_SHIFT) | (1 << ADC_B_CHANNEL_SHIFT) | 5, |
kadonotakashi | 0:8fdf9a60065b | 69 | ADC0_SE6b = (0 << ADC_INSTANCE_SHIFT) | (1 << ADC_B_CHANNEL_SHIFT) | 6, |
kadonotakashi | 0:8fdf9a60065b | 70 | ADC0_SE7b = (0 << ADC_INSTANCE_SHIFT) | (1 << ADC_B_CHANNEL_SHIFT) | 7, |
kadonotakashi | 0:8fdf9a60065b | 71 | ADC0_SE8 = (0 << ADC_INSTANCE_SHIFT) | 8, |
kadonotakashi | 0:8fdf9a60065b | 72 | ADC0_SE9 = (0 << ADC_INSTANCE_SHIFT) | 9, |
kadonotakashi | 0:8fdf9a60065b | 73 | ADC0_SE11 = (0 << ADC_INSTANCE_SHIFT) | 11, |
kadonotakashi | 0:8fdf9a60065b | 74 | ADC0_SE12 = (0 << ADC_INSTANCE_SHIFT) | 12, |
kadonotakashi | 0:8fdf9a60065b | 75 | ADC0_SE13 = (0 << ADC_INSTANCE_SHIFT) | 13, |
kadonotakashi | 0:8fdf9a60065b | 76 | ADC0_SE14 = (0 << ADC_INSTANCE_SHIFT) | 14, |
kadonotakashi | 0:8fdf9a60065b | 77 | ADC0_SE15 = (0 << ADC_INSTANCE_SHIFT) | 15, |
kadonotakashi | 0:8fdf9a60065b | 78 | ADC0_SE16 = (0 << ADC_INSTANCE_SHIFT) | 16, |
kadonotakashi | 0:8fdf9a60065b | 79 | ADC0_SE17 = (0 << ADC_INSTANCE_SHIFT) | 17, |
kadonotakashi | 0:8fdf9a60065b | 80 | ADC0_SE18 = (0 << ADC_INSTANCE_SHIFT) | 18, |
kadonotakashi | 0:8fdf9a60065b | 81 | ADC0_SE21 = (0 << ADC_INSTANCE_SHIFT) | 21, |
kadonotakashi | 0:8fdf9a60065b | 82 | ADC0_SE22 = (0 << ADC_INSTANCE_SHIFT) | 22, |
kadonotakashi | 0:8fdf9a60065b | 83 | ADC0_SE23 = (0 << ADC_INSTANCE_SHIFT) | 23, |
kadonotakashi | 0:8fdf9a60065b | 84 | } ADCName; |
kadonotakashi | 0:8fdf9a60065b | 85 | |
kadonotakashi | 0:8fdf9a60065b | 86 | typedef enum { |
kadonotakashi | 0:8fdf9a60065b | 87 | SPI_0 = 0, |
kadonotakashi | 0:8fdf9a60065b | 88 | SPI_1 = 1, |
kadonotakashi | 0:8fdf9a60065b | 89 | } SPIName; |
kadonotakashi | 0:8fdf9a60065b | 90 | |
kadonotakashi | 0:8fdf9a60065b | 91 | typedef enum { |
kadonotakashi | 0:8fdf9a60065b | 92 | DAC_0 = 0 |
kadonotakashi | 0:8fdf9a60065b | 93 | } DACName; |
kadonotakashi | 0:8fdf9a60065b | 94 | |
kadonotakashi | 0:8fdf9a60065b | 95 | #ifdef __cplusplus |
kadonotakashi | 0:8fdf9a60065b | 96 | } |
kadonotakashi | 0:8fdf9a60065b | 97 | #endif |
kadonotakashi | 0:8fdf9a60065b | 98 | |
kadonotakashi | 0:8fdf9a60065b | 99 | #endif |