hal_tick.h changed for the L432KC target in TARGET/../device/ in order to reassign the system ticker from TIM2 to TIM7, since TIM2 was needed as a 32bit encoder counter.
Dependents: Nucleo_L432KC_Quadrature_Decoder_with_ADC_and_DAC
Fork of mbed-dev by
targets/TARGET_NXP/TARGET_LPC13XX/PinNames.h@161:bd0311f1ad86, 2017-05-27 (annotated)
- Committer:
- tonnyleonard
- Date:
- Sat May 27 01:26:18 2017 +0000
- Revision:
- 161:bd0311f1ad86
- Parent:
- 149:156823d33999
Testing ADC with shunt
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
<> | 144:ef7eb2e8f9f7 | 1 | /* mbed Microcontroller Library |
<> | 144:ef7eb2e8f9f7 | 2 | * Copyright (c) 2006-2013 ARM Limited |
<> | 144:ef7eb2e8f9f7 | 3 | * |
<> | 144:ef7eb2e8f9f7 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
<> | 144:ef7eb2e8f9f7 | 5 | * you may not use this file except in compliance with the License. |
<> | 144:ef7eb2e8f9f7 | 6 | * You may obtain a copy of the License at |
<> | 144:ef7eb2e8f9f7 | 7 | * |
<> | 144:ef7eb2e8f9f7 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
<> | 144:ef7eb2e8f9f7 | 9 | * |
<> | 144:ef7eb2e8f9f7 | 10 | * Unless required by applicable law or agreed to in writing, software |
<> | 144:ef7eb2e8f9f7 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
<> | 144:ef7eb2e8f9f7 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
<> | 144:ef7eb2e8f9f7 | 13 | * See the License for the specific language governing permissions and |
<> | 144:ef7eb2e8f9f7 | 14 | * limitations under the License. |
<> | 144:ef7eb2e8f9f7 | 15 | */ |
<> | 144:ef7eb2e8f9f7 | 16 | #ifndef MBED_PINNAMES_H |
<> | 144:ef7eb2e8f9f7 | 17 | #define MBED_PINNAMES_H |
<> | 144:ef7eb2e8f9f7 | 18 | |
<> | 144:ef7eb2e8f9f7 | 19 | #include "cmsis.h" |
<> | 144:ef7eb2e8f9f7 | 20 | |
<> | 144:ef7eb2e8f9f7 | 21 | #ifdef __cplusplus |
<> | 144:ef7eb2e8f9f7 | 22 | extern "C" { |
<> | 144:ef7eb2e8f9f7 | 23 | #endif |
<> | 144:ef7eb2e8f9f7 | 24 | |
<> | 144:ef7eb2e8f9f7 | 25 | typedef enum { |
<> | 144:ef7eb2e8f9f7 | 26 | PIN_INPUT, |
<> | 144:ef7eb2e8f9f7 | 27 | PIN_OUTPUT |
<> | 144:ef7eb2e8f9f7 | 28 | } PinDirection; |
<> | 144:ef7eb2e8f9f7 | 29 | |
<> | 144:ef7eb2e8f9f7 | 30 | #define PORT_SHIFT 5 |
<> | 144:ef7eb2e8f9f7 | 31 | |
<> | 144:ef7eb2e8f9f7 | 32 | typedef enum { |
<> | 144:ef7eb2e8f9f7 | 33 | // LPC1347 Pin Names |
<> | 144:ef7eb2e8f9f7 | 34 | P0_0 = 0, |
<> | 144:ef7eb2e8f9f7 | 35 | P0_1 = 1, |
<> | 144:ef7eb2e8f9f7 | 36 | P0_2 = 2, |
<> | 144:ef7eb2e8f9f7 | 37 | P0_3 = 3, |
<> | 144:ef7eb2e8f9f7 | 38 | P0_4 = 4, |
<> | 144:ef7eb2e8f9f7 | 39 | P0_5 = 5, |
<> | 144:ef7eb2e8f9f7 | 40 | P0_6 = 6, |
<> | 144:ef7eb2e8f9f7 | 41 | P0_7 = 7, |
<> | 144:ef7eb2e8f9f7 | 42 | P0_8 = 8, |
<> | 144:ef7eb2e8f9f7 | 43 | P0_9 = 9, |
<> | 144:ef7eb2e8f9f7 | 44 | P0_10 = 10, |
<> | 144:ef7eb2e8f9f7 | 45 | P0_11 = 11, |
<> | 144:ef7eb2e8f9f7 | 46 | P0_12 = 12, |
<> | 144:ef7eb2e8f9f7 | 47 | P0_13 = 13, |
<> | 144:ef7eb2e8f9f7 | 48 | P0_14 = 14, |
<> | 144:ef7eb2e8f9f7 | 49 | P0_15 = 15, |
<> | 144:ef7eb2e8f9f7 | 50 | P0_16 = 16, |
<> | 144:ef7eb2e8f9f7 | 51 | P0_17 = 17, |
<> | 144:ef7eb2e8f9f7 | 52 | P0_18 = 18, |
<> | 144:ef7eb2e8f9f7 | 53 | P0_19 = 19, |
<> | 144:ef7eb2e8f9f7 | 54 | P0_20 = 20, |
<> | 144:ef7eb2e8f9f7 | 55 | P0_21 = 21, |
<> | 144:ef7eb2e8f9f7 | 56 | P0_22 = 22, |
<> | 144:ef7eb2e8f9f7 | 57 | P0_23 = 23, |
<> | 144:ef7eb2e8f9f7 | 58 | |
<> | 144:ef7eb2e8f9f7 | 59 | P1_13 = 45, |
<> | 144:ef7eb2e8f9f7 | 60 | P1_14 = 46, |
<> | 144:ef7eb2e8f9f7 | 61 | P1_15 = 47, |
<> | 144:ef7eb2e8f9f7 | 62 | P1_16 = 48, |
<> | 144:ef7eb2e8f9f7 | 63 | |
<> | 144:ef7eb2e8f9f7 | 64 | P1_19 = 51, |
<> | 144:ef7eb2e8f9f7 | 65 | P1_20 = 52, |
<> | 144:ef7eb2e8f9f7 | 66 | P1_21 = 53, |
<> | 144:ef7eb2e8f9f7 | 67 | P1_22 = 54, |
<> | 144:ef7eb2e8f9f7 | 68 | P1_23 = 55, |
<> | 144:ef7eb2e8f9f7 | 69 | P1_24 = 56, |
<> | 144:ef7eb2e8f9f7 | 70 | P1_25 = 57, |
<> | 144:ef7eb2e8f9f7 | 71 | P1_26 = 58, |
<> | 144:ef7eb2e8f9f7 | 72 | P1_27 = 59, |
<> | 144:ef7eb2e8f9f7 | 73 | P1_28 = 60, |
<> | 144:ef7eb2e8f9f7 | 74 | P1_29 = 61, |
<> | 144:ef7eb2e8f9f7 | 75 | |
<> | 144:ef7eb2e8f9f7 | 76 | P1_31 = 63, |
<> | 144:ef7eb2e8f9f7 | 77 | |
<> | 144:ef7eb2e8f9f7 | 78 | // DIP Pin Names |
<> | 144:ef7eb2e8f9f7 | 79 | p1 = P0_0, |
<> | 144:ef7eb2e8f9f7 | 80 | p2 = P0_11, |
<> | 144:ef7eb2e8f9f7 | 81 | p3 = P0_12, |
<> | 144:ef7eb2e8f9f7 | 82 | p4 = P0_13, |
<> | 144:ef7eb2e8f9f7 | 83 | p5 = P0_14, |
<> | 144:ef7eb2e8f9f7 | 84 | p6 = P1_31, |
<> | 144:ef7eb2e8f9f7 | 85 | p8 = P0_16, |
<> | 144:ef7eb2e8f9f7 | 86 | p9 = P0_22, |
<> | 144:ef7eb2e8f9f7 | 87 | p10 = P0_23, |
<> | 144:ef7eb2e8f9f7 | 88 | p13 = P1_29, |
<> | 144:ef7eb2e8f9f7 | 89 | p14 = P1_21, |
<> | 144:ef7eb2e8f9f7 | 90 | p15 = P0_8, |
<> | 144:ef7eb2e8f9f7 | 91 | p16 = P0_9, |
<> | 144:ef7eb2e8f9f7 | 92 | p17 = P1_24, |
<> | 144:ef7eb2e8f9f7 | 93 | p18 = P0_4, |
<> | 144:ef7eb2e8f9f7 | 94 | p19 = P1_13, |
<> | 144:ef7eb2e8f9f7 | 95 | p20 = P1_14, |
<> | 144:ef7eb2e8f9f7 | 96 | p21 = P1_22, |
<> | 144:ef7eb2e8f9f7 | 97 | p22 = P0_17, |
<> | 144:ef7eb2e8f9f7 | 98 | p23 = P0_5, |
<> | 144:ef7eb2e8f9f7 | 99 | p24 = P0_21, |
<> | 144:ef7eb2e8f9f7 | 100 | p25 = P0_19, |
<> | 144:ef7eb2e8f9f7 | 101 | p26 = P0_18, |
<> | 144:ef7eb2e8f9f7 | 102 | p27 = P1_15, |
<> | 144:ef7eb2e8f9f7 | 103 | p28 = P1_16, |
<> | 144:ef7eb2e8f9f7 | 104 | p29 = P1_25, |
<> | 144:ef7eb2e8f9f7 | 105 | p30 = P1_19, |
<> | 144:ef7eb2e8f9f7 | 106 | p33 = P0_20, |
<> | 144:ef7eb2e8f9f7 | 107 | p34 = P0_2, |
<> | 144:ef7eb2e8f9f7 | 108 | p35 = P1_26, |
<> | 144:ef7eb2e8f9f7 | 109 | p36 = P1_27, |
<> | 144:ef7eb2e8f9f7 | 110 | p37 = P1_20, |
<> | 144:ef7eb2e8f9f7 | 111 | p38 = P1_23, |
<> | 144:ef7eb2e8f9f7 | 112 | p39 = P0_7, |
<> | 144:ef7eb2e8f9f7 | 113 | p40 = P1_28, |
<> | 144:ef7eb2e8f9f7 | 114 | |
<> | 144:ef7eb2e8f9f7 | 115 | UART_TX = P0_19, |
<> | 144:ef7eb2e8f9f7 | 116 | UART_RX = P0_18, |
<> | 144:ef7eb2e8f9f7 | 117 | |
<> | 144:ef7eb2e8f9f7 | 118 | // Not connected |
<> | 144:ef7eb2e8f9f7 | 119 | NC = (int)0xFFFFFFFF, |
<> | 144:ef7eb2e8f9f7 | 120 | |
<> | 144:ef7eb2e8f9f7 | 121 | LED1 = p21, |
<> | 144:ef7eb2e8f9f7 | 122 | LED2 = p21, |
<> | 144:ef7eb2e8f9f7 | 123 | LED3 = p21, |
<> | 144:ef7eb2e8f9f7 | 124 | LED4 = p21, |
<> | 144:ef7eb2e8f9f7 | 125 | |
<> | 144:ef7eb2e8f9f7 | 126 | // Standard but not supported pins |
<> | 144:ef7eb2e8f9f7 | 127 | USBTX = NC, |
<> | 144:ef7eb2e8f9f7 | 128 | USBRX = NC, |
<> | 144:ef7eb2e8f9f7 | 129 | |
<> | 144:ef7eb2e8f9f7 | 130 | } PinName; |
<> | 144:ef7eb2e8f9f7 | 131 | |
<> | 144:ef7eb2e8f9f7 | 132 | typedef enum { |
<> | 144:ef7eb2e8f9f7 | 133 | CHANNEL0 = PIN_INT0_IRQn, |
<> | 144:ef7eb2e8f9f7 | 134 | CHANNEL1 = PIN_INT1_IRQn, |
<> | 144:ef7eb2e8f9f7 | 135 | CHANNEL2 = PIN_INT2_IRQn, |
<> | 144:ef7eb2e8f9f7 | 136 | CHANNEL3 = PIN_INT3_IRQn, |
<> | 144:ef7eb2e8f9f7 | 137 | CHANNEL4 = PIN_INT4_IRQn, |
<> | 144:ef7eb2e8f9f7 | 138 | CHANNEL5 = PIN_INT5_IRQn, |
<> | 144:ef7eb2e8f9f7 | 139 | CHANNEL6 = PIN_INT6_IRQn, |
<> | 144:ef7eb2e8f9f7 | 140 | CHANNEL7 = PIN_INT7_IRQn |
<> | 144:ef7eb2e8f9f7 | 141 | } Channel; |
<> | 144:ef7eb2e8f9f7 | 142 | |
<> | 144:ef7eb2e8f9f7 | 143 | typedef enum { |
<> | 144:ef7eb2e8f9f7 | 144 | PullUp = 2, |
<> | 144:ef7eb2e8f9f7 | 145 | PullDown = 1, |
<> | 144:ef7eb2e8f9f7 | 146 | PullNone = 0, |
<> | 144:ef7eb2e8f9f7 | 147 | Repeater = 3, |
<> | 144:ef7eb2e8f9f7 | 148 | OpenDrain = 4, |
<> | 144:ef7eb2e8f9f7 | 149 | PullDefault = PullDown |
<> | 144:ef7eb2e8f9f7 | 150 | } PinMode; |
<> | 144:ef7eb2e8f9f7 | 151 | |
<> | 144:ef7eb2e8f9f7 | 152 | #ifdef __cplusplus |
<> | 144:ef7eb2e8f9f7 | 153 | } |
<> | 144:ef7eb2e8f9f7 | 154 | #endif |
<> | 144:ef7eb2e8f9f7 | 155 | |
<> | 144:ef7eb2e8f9f7 | 156 | #endif |