NXP Touch Cursor example for LPCXpresso54608, modified for use with Mbed OS.
Embed:
(wiki syntax)
Show/hide line numbers
pin_mux.cpp
00001 /* 00002 * The Clear BSD License 00003 * Copyright (c) 2016, Freescale Semiconductor, Inc. 00004 * Copyright 2016-2017 NXP 00005 * All rights reserved. 00006 * 00007 * Redistribution and use in source and binary forms, with or without modification, 00008 * are permitted (subject to the limitations in the disclaimer below) provided 00009 * that the following conditions are met: 00010 * 00011 * o Redistributions of source code must retain the above copyright notice, this list 00012 * of conditions and the following disclaimer. 00013 * 00014 * o Redistributions in binary form must reproduce the above copyright notice, this 00015 * list of conditions and the following disclaimer in the documentation and/or 00016 * other materials provided with the distribution. 00017 * 00018 * o Neither the name of the copyright holder nor the names of its 00019 * contributors may be used to endorse or promote products derived from this 00020 * software without specific prior written permission. 00021 * 00022 * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE. 00023 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 00024 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 00025 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00026 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR 00027 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 00028 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 00029 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 00030 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00031 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00032 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00033 */ 00034 00035 /* clang-format off */ 00036 /* 00037 * TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* 00038 !!GlobalInfo 00039 product: Pins v3.0 00040 processor: LPC54608J512 00041 package_id: LPC54608J512ET180 00042 mcu_data: ksdk2_0 00043 processor_version: 0.0.11 00044 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS *********** 00045 */ 00046 /* clang-format on */ 00047 00048 #include "fsl_common.h" 00049 #include "fsl_iocon.h" 00050 #include "pin_mux.h" 00051 00052 00053 00054 /* clang-format off */ 00055 /* 00056 * TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* 00057 BOARD_InitPins: 00058 - options: {callFromInitBoot: 'true', coreID: core0, enableClock: 'true'} 00059 - pin_list: 00060 - {pin_num: A2, peripheral: FLEXCOMM0, signal: TXD_SCL_MISO, pin_signal: PIO0_30/FC0_TXD_SCL_MISO/CTIMER0_MAT0/SCT0_OUT9/TRACEDATA(1), mode: inactive, invert: disabled, 00061 glitch_filter: disabled, slew_rate: standard, open_drain: disabled} 00062 - {pin_num: B13, peripheral: FLEXCOMM0, signal: RXD_SDA_MOSI, pin_signal: PIO0_29/FC0_RXD_SDA_MOSI/CTIMER2_MAT3/SCT0_OUT8/TRACEDATA(2), mode: inactive, invert: disabled, 00063 glitch_filter: disabled, slew_rate: standard, open_drain: disabled} 00064 - {pin_num: L10, peripheral: LCD, signal: 'LCD_VD, 3', pin_signal: PIO2_21/LCD_VD(3)/FC3_CTS_SDA_SSEL0/MCLK/CTIMER3_MAT3, mode: inactive, invert: disabled, glitch_filter: disabled, 00065 slew_rate: standard, open_drain: disabled} 00066 - {pin_num: K10, peripheral: LCD, signal: 'LCD_VD, 4', pin_signal: PIO2_22/LCD_VD(4)/SCT0_OUT7/CTIMER2_CAP0, mode: inactive, invert: disabled, glitch_filter: disabled, 00067 slew_rate: standard, open_drain: disabled} 00068 - {pin_num: M14, peripheral: LCD, signal: 'LCD_VD, 5', pin_signal: PIO2_23/LCD_VD(5)/SCT0_OUT8, mode: inactive, invert: disabled, glitch_filter: disabled, slew_rate: standard, 00069 open_drain: disabled} 00070 - {pin_num: K14, peripheral: LCD, signal: 'LCD_VD, 6', pin_signal: PIO2_24/LCD_VD(6)/SCT0_OUT9, mode: inactive, invert: disabled, glitch_filter: disabled, slew_rate: standard, 00071 open_drain: disabled} 00072 - {pin_num: J11, peripheral: LCD, signal: 'LCD_VD, 7', pin_signal: PIO2_25/LCD_VD(7)/USB0_VBUS, mode: inactive, invert: disabled, glitch_filter: disabled, slew_rate: standard, 00073 open_drain: disabled} 00074 - {pin_num: G13, peripheral: LCD, signal: 'LCD_VD, 10', pin_signal: PIO2_28/LCD_VD(10)/FC7_CTS_SDA_SSEL0/CTIMER2_CAP2, mode: inactive, invert: disabled, glitch_filter: disabled, 00075 slew_rate: standard, open_drain: disabled} 00076 - {pin_num: G11, peripheral: LCD, signal: 'LCD_VD, 11', pin_signal: PIO2_29/LCD_VD(11)/FC7_RTS_SCL_SSEL1/FC8_TXD_SCL_MISO/CTIMER2_CAP3/CLKOUT, mode: inactive, invert: disabled, 00077 glitch_filter: disabled, slew_rate: standard, open_drain: disabled} 00078 - {pin_num: F12, peripheral: LCD, signal: 'LCD_VD, 12', pin_signal: PIO2_30/LCD_VD(12)/CTIMER2_MAT2, mode: inactive, invert: disabled, glitch_filter: disabled, 00079 slew_rate: standard, open_drain: disabled} 00080 - {pin_num: D14, peripheral: LCD, signal: 'LCD_VD, 13', pin_signal: PIO2_31/LCD_VD(13), mode: inactive, invert: disabled, glitch_filter: disabled, slew_rate: standard, 00081 open_drain: disabled} 00082 - {pin_num: D12, peripheral: LCD, signal: 'LCD_VD, 14', pin_signal: PIO3_0/LCD_VD(14)/PDM0_CLK/CTIMER1_MAT0, mode: inactive, invert: disabled, glitch_filter: disabled, 00083 slew_rate: standard, open_drain: disabled} 00084 - {pin_num: D11, peripheral: LCD, signal: 'LCD_VD, 15', pin_signal: PIO3_1/LCD_VD(15)/PDM0_DATA/CTIMER1_MAT1, mode: inactive, invert: disabled, glitch_filter: disabled, 00085 slew_rate: standard, open_drain: disabled} 00086 - {pin_num: B10, peripheral: LCD, signal: 'LCD_VD, 19', pin_signal: PIO3_5/LCD_VD(19)/FC8_RTS_SCL_SSEL1/CTIMER4_MAT1, mode: inactive, invert: disabled, glitch_filter: disabled, 00087 slew_rate: standard, open_drain: disabled} 00088 - {pin_num: C9, peripheral: LCD, signal: 'LCD_VD, 20', pin_signal: PIO3_6/LCD_VD(20)/LCD_VD(0)/CTIMER4_MAT2, mode: inactive, invert: disabled, glitch_filter: disabled, 00089 slew_rate: standard, open_drain: disabled} 00090 - {pin_num: B8, peripheral: LCD, signal: 'LCD_VD, 21', pin_signal: PIO3_7/LCD_VD(21)/LCD_VD(1)/CTIMER4_CAP2, mode: inactive, invert: disabled, glitch_filter: disabled, 00091 slew_rate: standard, open_drain: disabled} 00092 - {pin_num: A7, peripheral: LCD, signal: 'LCD_VD, 22', pin_signal: PIO3_8/LCD_VD(22)/LCD_VD(2)/CTIMER4_CAP3, mode: inactive, invert: disabled, glitch_filter: disabled, 00093 slew_rate: standard, open_drain: disabled} 00094 - {pin_num: C7, peripheral: LCD, signal: 'LCD_VD, 23', pin_signal: PIO3_9/LCD_VD(23)/LCD_VD(3)/CTIMER0_CAP2, mode: inactive, invert: disabled, glitch_filter: disabled, 00095 slew_rate: standard, open_drain: disabled} 00096 - {pin_num: K3, peripheral: LCD, signal: LCD_PWR, pin_signal: PIO2_11/LCD_PWR/SD_VOLT(0)/FC5_SCK, mode: inactive, invert: disabled, glitch_filter: disabled, slew_rate: standard, 00097 open_drain: disabled} 00098 - {pin_num: P7, peripheral: LCD, signal: LCD_DCLK, pin_signal: PIO2_13/LCD_DCLK/SD_VOLT(2)/FC5_TXD_SCL_MISO, mode: inactive, invert: disabled, glitch_filter: disabled, 00099 slew_rate: standard, open_drain: disabled} 00100 - {pin_num: L7, peripheral: LCD, signal: LCD_FP, pin_signal: PIO2_14/LCD_FP/USB0_FRAME/USB0_PORTPWRN/CTIMER0_MAT2/FC5_CTS_SDA_SSEL0, mode: inactive, invert: disabled, 00101 glitch_filter: disabled, slew_rate: standard, open_drain: disabled} 00102 - {pin_num: M8, peripheral: LCD, signal: LCD_AC, pin_signal: PIO2_15/LCD_AC/USB0_UP_LED/USB0_OVERCURRENTN/CTIMER0_MAT3/FC5_RTS_SCL_SSEL1, mode: inactive, invert: disabled, 00103 glitch_filter: disabled, slew_rate: standard, open_drain: disabled} 00104 - {pin_num: L8, peripheral: LCD, signal: LCD_LP, pin_signal: PIO2_16/LCD_LP/USB1_FRAME/USB1_PORTPWRN/CTIMER1_MAT3/FC8_SCK, mode: inactive, invert: disabled, glitch_filter: disabled, 00105 slew_rate: standard, open_drain: disabled} 00106 - {pin_num: C2, peripheral: FLEXCOMM2, signal: CTS_SDA_SSEL0, pin_signal: PIO3_23/FC2_CTS_SDA_SSEL0/UTICK_CAP3, invert: disabled, glitch_filter: disabled, i2c_slew: i2c, 00107 i2c_drive: high, i2c_filter: enabled} 00108 - {pin_num: E2, peripheral: FLEXCOMM2, signal: RTS_SCL_SSEL1, pin_signal: PIO3_24/FC2_RTS_SCL_SSEL1/CTIMER4_CAP0/USB0_VBUS, invert: disabled, glitch_filter: disabled, 00109 i2c_slew: i2c, i2c_drive: high, i2c_filter: enabled} 00110 - {pin_num: H14, peripheral: GPIO, signal: 'PIO2, 27', pin_signal: PIO2_27/LCD_VD(9)/FC9_SCK/FC3_SSEL2, mode: pullUp, invert: disabled, glitch_filter: disabled, 00111 slew_rate: standard, open_drain: disabled} 00112 - {pin_num: P2, peripheral: SWD, signal: SWO, pin_signal: PIO0_10/FC6_SCK/CTIMER2_CAP2/CTIMER2_MAT0/FC1_TXD_SCL_MISO/SWO/ADC0_0, mode: inactive, invert: disabled, 00113 glitch_filter: disabled, open_drain: disabled} 00114 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS *********** 00115 */ 00116 /* clang-format on */ 00117 00118 /* FUNCTION ************************************************************************************************************ 00119 * 00120 * Function Name : BOARD_InitPins 00121 * Description : Configures pin routing and optionally pin electrical features. 00122 * 00123 * END ****************************************************************************************************************/ 00124 /* Function assigned for the Core #0 (ARM Cortex-M4) */ 00125 void BOARD_InitPins(void) 00126 { 00127 /* Enables the clock for the IOCON block. 0 = Disable; 1 = Enable.: 0x01u */ 00128 CLOCK_EnableClock(kCLOCK_Iocon); 00129 00130 const uint32_t port0_pin10_config = (/* Pin is configured as SWO */ 00131 IOCON_PIO_FUNC6 | 00132 /* No addition pin function */ 00133 IOCON_PIO_MODE_INACT | 00134 /* Input function is not inverted */ 00135 IOCON_PIO_INV_DI | 00136 /* Enables digital function */ 00137 IOCON_PIO_DIGITAL_EN | 00138 /* Input filter disabled */ 00139 IOCON_PIO_INPFILT_OFF | 00140 /* Open drain is disabled */ 00141 IOCON_PIO_OPENDRAIN_DI); 00142 /* PORT0 PIN10 (coords: P2) is configured as SWO */ 00143 IOCON_PinMuxSet(IOCON, 0U, 10U, port0_pin10_config); 00144 00145 const uint32_t port0_pin29_config = (/* Pin is configured as FC0_RXD_SDA_MOSI */ 00146 IOCON_PIO_FUNC1 | 00147 /* No addition pin function */ 00148 IOCON_PIO_MODE_INACT | 00149 /* Input function is not inverted */ 00150 IOCON_PIO_INV_DI | 00151 /* Enables digital function */ 00152 IOCON_PIO_DIGITAL_EN | 00153 /* Input filter disabled */ 00154 IOCON_PIO_INPFILT_OFF | 00155 /* Standard mode, output slew rate control is enabled */ 00156 IOCON_PIO_SLEW_STANDARD | 00157 /* Open drain is disabled */ 00158 IOCON_PIO_OPENDRAIN_DI); 00159 /* PORT0 PIN29 (coords: B13) is configured as FC0_RXD_SDA_MOSI */ 00160 IOCON_PinMuxSet(IOCON, 0U, 29U, port0_pin29_config); 00161 00162 const uint32_t port0_pin30_config = (/* Pin is configured as FC0_TXD_SCL_MISO */ 00163 IOCON_PIO_FUNC1 | 00164 /* No addition pin function */ 00165 IOCON_PIO_MODE_INACT | 00166 /* Input function is not inverted */ 00167 IOCON_PIO_INV_DI | 00168 /* Enables digital function */ 00169 IOCON_PIO_DIGITAL_EN | 00170 /* Input filter disabled */ 00171 IOCON_PIO_INPFILT_OFF | 00172 /* Standard mode, output slew rate control is enabled */ 00173 IOCON_PIO_SLEW_STANDARD | 00174 /* Open drain is disabled */ 00175 IOCON_PIO_OPENDRAIN_DI); 00176 /* PORT0 PIN30 (coords: A2) is configured as FC0_TXD_SCL_MISO */ 00177 IOCON_PinMuxSet(IOCON, 0U, 30U, port0_pin30_config); 00178 00179 const uint32_t port2_pin11_config = (/* Pin is configured as LCD_PWR */ 00180 IOCON_PIO_FUNC1 | 00181 /* No addition pin function */ 00182 IOCON_PIO_MODE_INACT | 00183 /* Input function is not inverted */ 00184 IOCON_PIO_INV_DI | 00185 /* Enables digital function */ 00186 IOCON_PIO_DIGITAL_EN | 00187 /* Input filter disabled */ 00188 IOCON_PIO_INPFILT_OFF | 00189 /* Standard mode, output slew rate control is enabled */ 00190 IOCON_PIO_SLEW_STANDARD | 00191 /* Open drain is disabled */ 00192 IOCON_PIO_OPENDRAIN_DI); 00193 /* PORT2 PIN11 (coords: K3) is configured as LCD_PWR */ 00194 IOCON_PinMuxSet(IOCON, 2U, 11U, port2_pin11_config); 00195 00196 const uint32_t port2_pin13_config = (/* Pin is configured as LCD_DCLK */ 00197 IOCON_PIO_FUNC1 | 00198 /* No addition pin function */ 00199 IOCON_PIO_MODE_INACT | 00200 /* Input function is not inverted */ 00201 IOCON_PIO_INV_DI | 00202 /* Enables digital function */ 00203 IOCON_PIO_DIGITAL_EN | 00204 /* Input filter disabled */ 00205 IOCON_PIO_INPFILT_OFF | 00206 /* Standard mode, output slew rate control is enabled */ 00207 IOCON_PIO_SLEW_STANDARD | 00208 /* Open drain is disabled */ 00209 IOCON_PIO_OPENDRAIN_DI); 00210 /* PORT2 PIN13 (coords: P7) is configured as LCD_DCLK */ 00211 IOCON_PinMuxSet(IOCON, 2U, 13U, port2_pin13_config); 00212 00213 const uint32_t port2_pin14_config = (/* Pin is configured as LCD_FP */ 00214 IOCON_PIO_FUNC1 | 00215 /* No addition pin function */ 00216 IOCON_PIO_MODE_INACT | 00217 /* Input function is not inverted */ 00218 IOCON_PIO_INV_DI | 00219 /* Enables digital function */ 00220 IOCON_PIO_DIGITAL_EN | 00221 /* Input filter disabled */ 00222 IOCON_PIO_INPFILT_OFF | 00223 /* Standard mode, output slew rate control is enabled */ 00224 IOCON_PIO_SLEW_STANDARD | 00225 /* Open drain is disabled */ 00226 IOCON_PIO_OPENDRAIN_DI); 00227 /* PORT2 PIN14 (coords: L7) is configured as LCD_FP */ 00228 IOCON_PinMuxSet(IOCON, 2U, 14U, port2_pin14_config); 00229 00230 const uint32_t port2_pin15_config = (/* Pin is configured as LCD_AC */ 00231 IOCON_PIO_FUNC1 | 00232 /* No addition pin function */ 00233 IOCON_PIO_MODE_INACT | 00234 /* Input function is not inverted */ 00235 IOCON_PIO_INV_DI | 00236 /* Enables digital function */ 00237 IOCON_PIO_DIGITAL_EN | 00238 /* Input filter disabled */ 00239 IOCON_PIO_INPFILT_OFF | 00240 /* Standard mode, output slew rate control is enabled */ 00241 IOCON_PIO_SLEW_STANDARD | 00242 /* Open drain is disabled */ 00243 IOCON_PIO_OPENDRAIN_DI); 00244 /* PORT2 PIN15 (coords: M8) is configured as LCD_AC */ 00245 IOCON_PinMuxSet(IOCON, 2U, 15U, port2_pin15_config); 00246 00247 const uint32_t port2_pin16_config = (/* Pin is configured as LCD_LP */ 00248 IOCON_PIO_FUNC1 | 00249 /* No addition pin function */ 00250 IOCON_PIO_MODE_INACT | 00251 /* Input function is not inverted */ 00252 IOCON_PIO_INV_DI | 00253 /* Enables digital function */ 00254 IOCON_PIO_DIGITAL_EN | 00255 /* Input filter disabled */ 00256 IOCON_PIO_INPFILT_OFF | 00257 /* Standard mode, output slew rate control is enabled */ 00258 IOCON_PIO_SLEW_STANDARD | 00259 /* Open drain is disabled */ 00260 IOCON_PIO_OPENDRAIN_DI); 00261 /* PORT2 PIN16 (coords: L8) is configured as LCD_LP */ 00262 IOCON_PinMuxSet(IOCON, 2U, 16U, port2_pin16_config); 00263 00264 const uint32_t port2_pin21_config = (/* Pin is configured as LCD_VD(3) */ 00265 IOCON_PIO_FUNC1 | 00266 /* No addition pin function */ 00267 IOCON_PIO_MODE_INACT | 00268 /* Input function is not inverted */ 00269 IOCON_PIO_INV_DI | 00270 /* Enables digital function */ 00271 IOCON_PIO_DIGITAL_EN | 00272 /* Input filter disabled */ 00273 IOCON_PIO_INPFILT_OFF | 00274 /* Standard mode, output slew rate control is enabled */ 00275 IOCON_PIO_SLEW_STANDARD | 00276 /* Open drain is disabled */ 00277 IOCON_PIO_OPENDRAIN_DI); 00278 /* PORT2 PIN21 (coords: L10) is configured as LCD_VD(3) */ 00279 IOCON_PinMuxSet(IOCON, 2U, 21U, port2_pin21_config); 00280 00281 const uint32_t port2_pin22_config = (/* Pin is configured as LCD_VD(4) */ 00282 IOCON_PIO_FUNC1 | 00283 /* No addition pin function */ 00284 IOCON_PIO_MODE_INACT | 00285 /* Input function is not inverted */ 00286 IOCON_PIO_INV_DI | 00287 /* Enables digital function */ 00288 IOCON_PIO_DIGITAL_EN | 00289 /* Input filter disabled */ 00290 IOCON_PIO_INPFILT_OFF | 00291 /* Standard mode, output slew rate control is enabled */ 00292 IOCON_PIO_SLEW_STANDARD | 00293 /* Open drain is disabled */ 00294 IOCON_PIO_OPENDRAIN_DI); 00295 /* PORT2 PIN22 (coords: K10) is configured as LCD_VD(4) */ 00296 IOCON_PinMuxSet(IOCON, 2U, 22U, port2_pin22_config); 00297 00298 const uint32_t port2_pin23_config = (/* Pin is configured as LCD_VD(5) */ 00299 IOCON_PIO_FUNC1 | 00300 /* No addition pin function */ 00301 IOCON_PIO_MODE_INACT | 00302 /* Input function is not inverted */ 00303 IOCON_PIO_INV_DI | 00304 /* Enables digital function */ 00305 IOCON_PIO_DIGITAL_EN | 00306 /* Input filter disabled */ 00307 IOCON_PIO_INPFILT_OFF | 00308 /* Standard mode, output slew rate control is enabled */ 00309 IOCON_PIO_SLEW_STANDARD | 00310 /* Open drain is disabled */ 00311 IOCON_PIO_OPENDRAIN_DI); 00312 /* PORT2 PIN23 (coords: M14) is configured as LCD_VD(5) */ 00313 IOCON_PinMuxSet(IOCON, 2U, 23U, port2_pin23_config); 00314 00315 const uint32_t port2_pin24_config = (/* Pin is configured as LCD_VD(6) */ 00316 IOCON_PIO_FUNC1 | 00317 /* No addition pin function */ 00318 IOCON_PIO_MODE_INACT | 00319 /* Input function is not inverted */ 00320 IOCON_PIO_INV_DI | 00321 /* Enables digital function */ 00322 IOCON_PIO_DIGITAL_EN | 00323 /* Input filter disabled */ 00324 IOCON_PIO_INPFILT_OFF | 00325 /* Standard mode, output slew rate control is enabled */ 00326 IOCON_PIO_SLEW_STANDARD | 00327 /* Open drain is disabled */ 00328 IOCON_PIO_OPENDRAIN_DI); 00329 /* PORT2 PIN24 (coords: K14) is configured as LCD_VD(6) */ 00330 IOCON_PinMuxSet(IOCON, 2U, 24U, port2_pin24_config); 00331 00332 const uint32_t port2_pin25_config = (/* Pin is configured as LCD_VD(7) */ 00333 IOCON_PIO_FUNC1 | 00334 /* No addition pin function */ 00335 IOCON_PIO_MODE_INACT | 00336 /* Input function is not inverted */ 00337 IOCON_PIO_INV_DI | 00338 /* Enables digital function */ 00339 IOCON_PIO_DIGITAL_EN | 00340 /* Input filter disabled */ 00341 IOCON_PIO_INPFILT_OFF | 00342 /* Standard mode, output slew rate control is enabled */ 00343 IOCON_PIO_SLEW_STANDARD | 00344 /* Open drain is disabled */ 00345 IOCON_PIO_OPENDRAIN_DI); 00346 /* PORT2 PIN25 (coords: J11) is configured as LCD_VD(7) */ 00347 IOCON_PinMuxSet(IOCON, 2U, 25U, port2_pin25_config); 00348 00349 const uint32_t port2_pin27_config = (/* Pin is configured as PIO2_27 */ 00350 IOCON_PIO_FUNC0 | 00351 /* Selects pull-up function */ 00352 IOCON_PIO_MODE_PULLUP | 00353 /* Input function is not inverted */ 00354 IOCON_PIO_INV_DI | 00355 /* Enables digital function */ 00356 IOCON_PIO_DIGITAL_EN | 00357 /* Input filter disabled */ 00358 IOCON_PIO_INPFILT_OFF | 00359 /* Standard mode, output slew rate control is enabled */ 00360 IOCON_PIO_SLEW_STANDARD | 00361 /* Open drain is disabled */ 00362 IOCON_PIO_OPENDRAIN_DI); 00363 /* PORT2 PIN27 (coords: H14) is configured as PIO2_27 */ 00364 IOCON_PinMuxSet(IOCON, 2U, 27U, port2_pin27_config); 00365 00366 const uint32_t port2_pin28_config = (/* Pin is configured as LCD_VD(10) */ 00367 IOCON_PIO_FUNC1 | 00368 /* No addition pin function */ 00369 IOCON_PIO_MODE_INACT | 00370 /* Input function is not inverted */ 00371 IOCON_PIO_INV_DI | 00372 /* Enables digital function */ 00373 IOCON_PIO_DIGITAL_EN | 00374 /* Input filter disabled */ 00375 IOCON_PIO_INPFILT_OFF | 00376 /* Standard mode, output slew rate control is enabled */ 00377 IOCON_PIO_SLEW_STANDARD | 00378 /* Open drain is disabled */ 00379 IOCON_PIO_OPENDRAIN_DI); 00380 /* PORT2 PIN28 (coords: G13) is configured as LCD_VD(10) */ 00381 IOCON_PinMuxSet(IOCON, 2U, 28U, port2_pin28_config); 00382 00383 const uint32_t port2_pin29_config = (/* Pin is configured as LCD_VD(11) */ 00384 IOCON_PIO_FUNC1 | 00385 /* No addition pin function */ 00386 IOCON_PIO_MODE_INACT | 00387 /* Input function is not inverted */ 00388 IOCON_PIO_INV_DI | 00389 /* Enables digital function */ 00390 IOCON_PIO_DIGITAL_EN | 00391 /* Input filter disabled */ 00392 IOCON_PIO_INPFILT_OFF | 00393 /* Standard mode, output slew rate control is enabled */ 00394 IOCON_PIO_SLEW_STANDARD | 00395 /* Open drain is disabled */ 00396 IOCON_PIO_OPENDRAIN_DI); 00397 /* PORT2 PIN29 (coords: G11) is configured as LCD_VD(11) */ 00398 IOCON_PinMuxSet(IOCON, 2U, 29U, port2_pin29_config); 00399 00400 const uint32_t port2_pin30_config = (/* Pin is configured as LCD_VD(12) */ 00401 IOCON_PIO_FUNC1 | 00402 /* No addition pin function */ 00403 IOCON_PIO_MODE_INACT | 00404 /* Input function is not inverted */ 00405 IOCON_PIO_INV_DI | 00406 /* Enables digital function */ 00407 IOCON_PIO_DIGITAL_EN | 00408 /* Input filter disabled */ 00409 IOCON_PIO_INPFILT_OFF | 00410 /* Standard mode, output slew rate control is enabled */ 00411 IOCON_PIO_SLEW_STANDARD | 00412 /* Open drain is disabled */ 00413 IOCON_PIO_OPENDRAIN_DI); 00414 /* PORT2 PIN30 (coords: F12) is configured as LCD_VD(12) */ 00415 IOCON_PinMuxSet(IOCON, 2U, 30U, port2_pin30_config); 00416 00417 const uint32_t port2_pin31_config = (/* Pin is configured as LCD_VD(13) */ 00418 IOCON_PIO_FUNC1 | 00419 /* No addition pin function */ 00420 IOCON_PIO_MODE_INACT | 00421 /* Input function is not inverted */ 00422 IOCON_PIO_INV_DI | 00423 /* Enables digital function */ 00424 IOCON_PIO_DIGITAL_EN | 00425 /* Input filter disabled */ 00426 IOCON_PIO_INPFILT_OFF | 00427 /* Standard mode, output slew rate control is enabled */ 00428 IOCON_PIO_SLEW_STANDARD | 00429 /* Open drain is disabled */ 00430 IOCON_PIO_OPENDRAIN_DI); 00431 /* PORT2 PIN31 (coords: D14) is configured as LCD_VD(13) */ 00432 IOCON_PinMuxSet(IOCON, 2U, 31U, port2_pin31_config); 00433 00434 const uint32_t port3_pin0_config = (/* Pin is configured as LCD_VD(14) */ 00435 IOCON_PIO_FUNC1 | 00436 /* No addition pin function */ 00437 IOCON_PIO_MODE_INACT | 00438 /* Input function is not inverted */ 00439 IOCON_PIO_INV_DI | 00440 /* Enables digital function */ 00441 IOCON_PIO_DIGITAL_EN | 00442 /* Input filter disabled */ 00443 IOCON_PIO_INPFILT_OFF | 00444 /* Standard mode, output slew rate control is enabled */ 00445 IOCON_PIO_SLEW_STANDARD | 00446 /* Open drain is disabled */ 00447 IOCON_PIO_OPENDRAIN_DI); 00448 /* PORT3 PIN0 (coords: D12) is configured as LCD_VD(14) */ 00449 IOCON_PinMuxSet(IOCON, 3U, 0U, port3_pin0_config); 00450 00451 const uint32_t port3_pin1_config = (/* Pin is configured as LCD_VD(15) */ 00452 IOCON_PIO_FUNC1 | 00453 /* No addition pin function */ 00454 IOCON_PIO_MODE_INACT | 00455 /* Input function is not inverted */ 00456 IOCON_PIO_INV_DI | 00457 /* Enables digital function */ 00458 IOCON_PIO_DIGITAL_EN | 00459 /* Input filter disabled */ 00460 IOCON_PIO_INPFILT_OFF | 00461 /* Standard mode, output slew rate control is enabled */ 00462 IOCON_PIO_SLEW_STANDARD | 00463 /* Open drain is disabled */ 00464 IOCON_PIO_OPENDRAIN_DI); 00465 /* PORT3 PIN1 (coords: D11) is configured as LCD_VD(15) */ 00466 IOCON_PinMuxSet(IOCON, 3U, 1U, port3_pin1_config); 00467 00468 const uint32_t port3_pin23_config = (/* Pin is configured as FC2_CTS_SDA_SSEL0 */ 00469 IOCON_PIO_FUNC1 | 00470 /* I2C mode */ 00471 IOCON_PIO_I2CSLEW_I2C | 00472 /* Input function is not inverted */ 00473 IOCON_PIO_INV_DI | 00474 /* Enables digital function */ 00475 IOCON_PIO_DIGITAL_EN | 00476 /* Input filter disabled */ 00477 IOCON_PIO_INPFILT_OFF | 00478 /* High drive: 20 mA */ 00479 IOCON_PIO_I2CDRIVE_HIGH | 00480 /* I2C 50 ns glitch filter enabled */ 00481 IOCON_PIO_I2CFILTER_EN); 00482 /* PORT3 PIN23 (coords: C2) is configured as FC2_CTS_SDA_SSEL0 */ 00483 IOCON_PinMuxSet(IOCON, 3U, 23U, port3_pin23_config); 00484 00485 const uint32_t port3_pin24_config = (/* Pin is configured as FC2_RTS_SCL_SSEL1 */ 00486 IOCON_PIO_FUNC1 | 00487 /* I2C mode */ 00488 IOCON_PIO_I2CSLEW_I2C | 00489 /* Input function is not inverted */ 00490 IOCON_PIO_INV_DI | 00491 /* Enables digital function */ 00492 IOCON_PIO_DIGITAL_EN | 00493 /* Input filter disabled */ 00494 IOCON_PIO_INPFILT_OFF | 00495 /* High drive: 20 mA */ 00496 IOCON_PIO_I2CDRIVE_HIGH | 00497 /* I2C 50 ns glitch filter enabled */ 00498 IOCON_PIO_I2CFILTER_EN); 00499 /* PORT3 PIN24 (coords: E2) is configured as FC2_RTS_SCL_SSEL1 */ 00500 IOCON_PinMuxSet(IOCON, 3U, 24U, port3_pin24_config); 00501 00502 const uint32_t port3_pin5_config = (/* Pin is configured as LCD_VD(19) */ 00503 IOCON_PIO_FUNC1 | 00504 /* No addition pin function */ 00505 IOCON_PIO_MODE_INACT | 00506 /* Input function is not inverted */ 00507 IOCON_PIO_INV_DI | 00508 /* Enables digital function */ 00509 IOCON_PIO_DIGITAL_EN | 00510 /* Input filter disabled */ 00511 IOCON_PIO_INPFILT_OFF | 00512 /* Standard mode, output slew rate control is enabled */ 00513 IOCON_PIO_SLEW_STANDARD | 00514 /* Open drain is disabled */ 00515 IOCON_PIO_OPENDRAIN_DI); 00516 /* PORT3 PIN5 (coords: B10) is configured as LCD_VD(19) */ 00517 IOCON_PinMuxSet(IOCON, 3U, 5U, port3_pin5_config); 00518 00519 const uint32_t port3_pin6_config = (/* Pin is configured as LCD_VD(20) */ 00520 IOCON_PIO_FUNC1 | 00521 /* No addition pin function */ 00522 IOCON_PIO_MODE_INACT | 00523 /* Input function is not inverted */ 00524 IOCON_PIO_INV_DI | 00525 /* Enables digital function */ 00526 IOCON_PIO_DIGITAL_EN | 00527 /* Input filter disabled */ 00528 IOCON_PIO_INPFILT_OFF | 00529 /* Standard mode, output slew rate control is enabled */ 00530 IOCON_PIO_SLEW_STANDARD | 00531 /* Open drain is disabled */ 00532 IOCON_PIO_OPENDRAIN_DI); 00533 /* PORT3 PIN6 (coords: C9) is configured as LCD_VD(20) */ 00534 IOCON_PinMuxSet(IOCON, 3U, 6U, port3_pin6_config); 00535 00536 const uint32_t port3_pin7_config = (/* Pin is configured as LCD_VD(21) */ 00537 IOCON_PIO_FUNC1 | 00538 /* No addition pin function */ 00539 IOCON_PIO_MODE_INACT | 00540 /* Input function is not inverted */ 00541 IOCON_PIO_INV_DI | 00542 /* Enables digital function */ 00543 IOCON_PIO_DIGITAL_EN | 00544 /* Input filter disabled */ 00545 IOCON_PIO_INPFILT_OFF | 00546 /* Standard mode, output slew rate control is enabled */ 00547 IOCON_PIO_SLEW_STANDARD | 00548 /* Open drain is disabled */ 00549 IOCON_PIO_OPENDRAIN_DI); 00550 /* PORT3 PIN7 (coords: B8) is configured as LCD_VD(21) */ 00551 IOCON_PinMuxSet(IOCON, 3U, 7U, port3_pin7_config); 00552 00553 const uint32_t port3_pin8_config = (/* Pin is configured as LCD_VD(22) */ 00554 IOCON_PIO_FUNC1 | 00555 /* No addition pin function */ 00556 IOCON_PIO_MODE_INACT | 00557 /* Input function is not inverted */ 00558 IOCON_PIO_INV_DI | 00559 /* Enables digital function */ 00560 IOCON_PIO_DIGITAL_EN | 00561 /* Input filter disabled */ 00562 IOCON_PIO_INPFILT_OFF | 00563 /* Standard mode, output slew rate control is enabled */ 00564 IOCON_PIO_SLEW_STANDARD | 00565 /* Open drain is disabled */ 00566 IOCON_PIO_OPENDRAIN_DI); 00567 /* PORT3 PIN8 (coords: A7) is configured as LCD_VD(22) */ 00568 IOCON_PinMuxSet(IOCON, 3U, 8U, port3_pin8_config); 00569 00570 const uint32_t port3_pin9_config = (/* Pin is configured as LCD_VD(23) */ 00571 IOCON_PIO_FUNC1 | 00572 /* No addition pin function */ 00573 IOCON_PIO_MODE_INACT | 00574 /* Input function is not inverted */ 00575 IOCON_PIO_INV_DI | 00576 /* Enables digital function */ 00577 IOCON_PIO_DIGITAL_EN | 00578 /* Input filter disabled */ 00579 IOCON_PIO_INPFILT_OFF | 00580 /* Standard mode, output slew rate control is enabled */ 00581 IOCON_PIO_SLEW_STANDARD | 00582 /* Open drain is disabled */ 00583 IOCON_PIO_OPENDRAIN_DI); 00584 /* PORT3 PIN9 (coords: C7) is configured as LCD_VD(23) */ 00585 IOCON_PinMuxSet(IOCON, 3U, 9U, port3_pin9_config); 00586 } 00587 /*********************************************************************************************************************** 00588 * EOF 00589 **********************************************************************************************************************/
Generated on Sun Jul 17 2022 23:10:29 by
1.7.2
Jenny Plunkett