2 * -------------------------------------------
3 * MSP432 DriverLib - v3_10_00_09
4 * -------------------------------------------
6 * --COPYRIGHT--,BSD,BSD
7 * Copyright (c) 2014, Texas Instruments Incorporated
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
14 * * Redistributions of source code must retain the above copyright
15 * notice, this list of conditions and the following disclaimer.
17 * * Redistributions in binary form must reproduce the above copyright
18 * notice, this list of conditions and the following disclaimer in the
19 * documentation and/or other materials provided with the distribution.
21 * * Neither the name of Texas Instruments Incorporated nor the names of
22 * its contributors may be used to endorse or promote products derived
23 * from this software without specific prior written permission.
25 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
27 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
28 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
29 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
30 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
31 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
32 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
33 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
34 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
35 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40 //*****************************************************************************
42 //! \addtogroup gpio_api
45 //*****************************************************************************
47 //*****************************************************************************
49 // If building with a C++ compiler, make all of the definitions in this header
52 //*****************************************************************************
61 #define GPIO_PORT_P1 1
62 #define GPIO_PORT_P2 2
63 #define GPIO_PORT_P3 3
64 #define GPIO_PORT_P4 4
65 #define GPIO_PORT_P5 5
66 #define GPIO_PORT_P6 6
67 #define GPIO_PORT_P7 7
68 #define GPIO_PORT_P8 8
69 #define GPIO_PORT_P9 9
70 #define GPIO_PORT_P10 10
71 #define GPIO_PORT_PA 1
72 #define GPIO_PORT_PB 3
73 #define GPIO_PORT_PC 5
74 #define GPIO_PORT_PD 7
75 #define GPIO_PORT_PE 9
76 #define GPIO_PORT_PJ 11
79 #define GPIO_PIN0 (0x0001)
80 #define GPIO_PIN1 (0x0002)
81 #define GPIO_PIN2 (0x0004)
82 #define GPIO_PIN3 (0x0008)
83 #define GPIO_PIN4 (0x0010)
84 #define GPIO_PIN5 (0x0020)
85 #define GPIO_PIN6 (0x0040)
86 #define GPIO_PIN7 (0x0080)
87 #define GPIO_PIN8 (0x0100)
88 #define GPIO_PIN9 (0x0200)
89 #define GPIO_PIN10 (0x0400)
90 #define GPIO_PIN11 (0x0800)
91 #define GPIO_PIN12 (0x1000)
92 #define GPIO_PIN13 (0x2000)
93 #define GPIO_PIN14 (0x4000)
94 #define GPIO_PIN15 (0x8000)
95 #define PIN_ALL8 (0xFF)
96 #define PIN_ALL16 (0xFFFF)
98 #define GPIO_PRIMARY_MODULE_FUNCTION (0x01)
99 #define GPIO_SECONDARY_MODULE_FUNCTION (0x02)
100 #define GPIO_TERTIARY_MODULE_FUNCTION (0x03)
102 #define GPIO_HIGH_TO_LOW_TRANSITION (0x01)
103 #define GPIO_LOW_TO_HIGH_TRANSITION (0x00)
105 #define GPIO_INPUT_PIN_HIGH (0x01)
106 #define GPIO_INPUT_PIN_LOW (0x00)
108 //*****************************************************************************
110 // Prototypes for the APIs.
112 //*****************************************************************************
114 //*****************************************************************************
116 //! \brief This function configures the selected Pin as output pin
118 //! This function selected pins on a selected port as output pins.
120 //! \param selectedPort is the selected port.
121 //! Valid values are:
122 //! - \b GPIO_PORT_P1
123 //! - \b GPIO_PORT_P2
124 //! - \b GPIO_PORT_P3
125 //! - \b GPIO_PORT_P4
126 //! - \b GPIO_PORT_P5
127 //! - \b GPIO_PORT_P6
128 //! - \b GPIO_PORT_P7
129 //! - \b GPIO_PORT_P8
130 //! - \b GPIO_PORT_P9
131 //! - \b GPIO_PORT_P10
132 //! - \b GPIO_PORT_P11
133 //! - \b GPIO_PORT_PJ
134 //! \param selectedPins is the specified pin in the selected port.
135 //! Mask value is the logical OR of any of the following:
153 //! Modified bits of \b PxDIR register and bits of \b PxSEL register.
157 //*****************************************************************************
158 extern void GPIO_setAsOutputPin(uint_fast8_t selectedPort,
159 uint_fast16_t selectedPins);
161 //*****************************************************************************
163 //! \brief This function configures the selected Pin as input pin
165 //! This function selected pins on a selected port as input pins.
167 //! \param selectedPort is the selected port.
168 //! Valid values are:
169 //! - \b GPIO_PORT_P1
170 //! - \b GPIO_PORT_P2
171 //! - \b GPIO_PORT_P3
172 //! - \b GPIO_PORT_P4
173 //! - \b GPIO_PORT_P5
174 //! - \b GPIO_PORT_P6
175 //! - \b GPIO_PORT_P7
176 //! - \b GPIO_PORT_P8
177 //! - \b GPIO_PORT_P9
178 //! - \b GPIO_PORT_P10
179 //! - \b GPIO_PORT_P11
180 //! - \b GPIO_PORT_PJ
181 //! \param selectedPins is the specified pin in the selected port.
182 //! Mask value is the logical OR of any of the following:
200 //! Modified bits of \b PxDIR register, bits of \b PxREN register and bits of
201 //! \b PxSEL register.
205 //*****************************************************************************
206 extern void GPIO_setAsInputPin(uint_fast8_t selectedPort,
207 uint_fast16_t selectedPins);
209 //*****************************************************************************
211 //! \brief This function configures the peripheral module function in the
212 //! output direction for the selected pin for either primary, secondary or
213 //! ternary module function modes
215 //! This function configures the peripheral module function in the output
216 //! direction for the selected pin for either primary, secondary or ternary
217 //! module function modes. Accepted values for mode are
218 //! GPIO_PRIMARY_MODULE_FUNCTION, GPIO_SECONDARY_MODULE_FUNCTION, and
219 //! GPIO_TERTIARY_MODULE_FUNCTION
221 //! \param selectedPort is the selected port.
222 //! Valid values are:
223 //! - \b GPIO_PORT_P1
224 //! - \b GPIO_PORT_P2
225 //! - \b GPIO_PORT_P3
226 //! - \b GPIO_PORT_P4
227 //! - \b GPIO_PORT_P5
228 //! - \b GPIO_PORT_P6
229 //! - \b GPIO_PORT_P7
230 //! - \b GPIO_PORT_P8
231 //! - \b GPIO_PORT_P9
232 //! - \b GPIO_PORT_P10
233 //! - \b GPIO_PORT_P11
234 //! - \b GPIO_PORT_PJ
235 //! \param selectedPins is the specified pin in the selected port.
236 //! Mask value is the logical OR of any of the following:
253 //! \param mode is the specified mode that the pin should be configured for the
255 //! Valid values are:
256 //! - \b GPIO_PRIMARY_MODULE_FUNCTION
257 //! - \b GPIO_SECONDARY_MODULE_FUNCTION
258 //! - \b GPIO_TERTIARY_MODULE_FUNCTION
260 //! Modified bits of \b PxDIR register and bits of \b PxSEL register.
264 //*****************************************************************************
265 extern void GPIO_setAsPeripheralModuleFunctionOutputPin(
266 uint_fast8_t selectedPort, uint_fast16_t selectedPins,
269 //*****************************************************************************
271 //! \brief This function configures the peripheral module function in the input
272 //! direction for the selected pin for either primary, secondary or ternary
273 //! module function modes.
275 //! This function configures the peripheral module function in the input
276 //! direction for the selected pin for either primary, secondary or ternary
277 //! module function modes. Accepted values for mode are
278 //! GPIO_PRIMARY_MODULE_FUNCTION, GPIO_SECONDARY_MODULE_FUNCTION, and
279 //! GPIO_TERTIARY_MODULE_FUNCTION
281 //! \param selectedPort is the selected port.
282 //! Valid values are:
283 //! - \b GPIO_PORT_P1
284 //! - \b GPIO_PORT_P2
285 //! - \b GPIO_PORT_P3
286 //! - \b GPIO_PORT_P4
287 //! - \b GPIO_PORT_P5
288 //! - \b GPIO_PORT_P6
289 //! - \b GPIO_PORT_P7
290 //! - \b GPIO_PORT_P8
291 //! - \b GPIO_PORT_P9
292 //! - \b GPIO_PORT_P10
293 //! - \b GPIO_PORT_P11
294 //! - \b GPIO_PORT_PJ
295 //! \param selectedPins is the specified pin in the selected port.
296 //! Mask value is the logical OR of any of the following:
313 //! \param mode is the specified mode that the pin should be configured for the
315 //! Valid values are:
316 //! - \b GPIO_PRIMARY_MODULE_FUNCTION
317 //! - \b GPIO_SECONDARY_MODULE_FUNCTION
318 //! - \b GPIO_TERTIARY_MODULE_FUNCTION
320 //! Modified bits of \b PxDIR register and bits of \b PxSEL register.
324 //*****************************************************************************
325 extern void GPIO_setAsPeripheralModuleFunctionInputPin(
326 uint_fast8_t selectedPort, uint_fast16_t selectedPins,
329 //*****************************************************************************
331 //! \brief This function sets output HIGH on the selected Pin
333 //! This function sets output HIGH on the selected port's pin.
335 //! \param selectedPort is the selected port.
336 //! Valid values are:
337 //! - \b GPIO_PORT_P1
338 //! - \b GPIO_PORT_P2
339 //! - \b GPIO_PORT_P3
340 //! - \b GPIO_PORT_P4
341 //! - \b GPIO_PORT_P5
342 //! - \b GPIO_PORT_P6
343 //! - \b GPIO_PORT_P7
344 //! - \b GPIO_PORT_P8
345 //! - \b GPIO_PORT_P9
346 //! - \b GPIO_PORT_P10
347 //! - \b GPIO_PORT_P11
348 //! - \b GPIO_PORT_PJ
349 //! \param selectedPins is the specified pin in the selected port.
350 //! Mask value is the logical OR of any of the following:
368 //! Modified bits of \b PxOUT register.
372 //*****************************************************************************
373 extern void GPIO_setOutputHighOnPin(uint_fast8_t selectedPort,
374 uint_fast16_t selectedPins);
376 //*****************************************************************************
378 //! \brief This function sets output LOW on the selected Pin
380 //! This function sets output LOW on the selected port's pin.
382 //! \param selectedPort is the selected port.
383 //! Valid values are:
384 //! - \b GPIO_PORT_P1
385 //! - \b GPIO_PORT_P2
386 //! - \b GPIO_PORT_P3
387 //! - \b GPIO_PORT_P4
388 //! - \b GPIO_PORT_P5
389 //! - \b GPIO_PORT_P6
390 //! - \b GPIO_PORT_P7
391 //! - \b GPIO_PORT_P8
392 //! - \b GPIO_PORT_P9
393 //! - \b GPIO_PORT_P10
394 //! - \b GPIO_PORT_P11
395 //! - \b GPIO_PORT_PJ
396 //! \param selectedPins is the specified pin in the selected port.
397 //! Mask value is the logical OR of any of the following:
417 //*****************************************************************************
418 extern void GPIO_setOutputLowOnPin(uint_fast8_t selectedPort,
419 uint_fast16_t selectedPins);
421 //*****************************************************************************
423 //! \brief This function toggles the output on the selected Pin
425 //! This function toggles the output on the selected port's pin.
427 //! \param selectedPort is the selected port.
428 //! Valid values are:
429 //! - \b GPIO_PORT_P1
430 //! - \b GPIO_PORT_P2
431 //! - \b GPIO_PORT_P3
432 //! - \b GPIO_PORT_P4
433 //! - \b GPIO_PORT_P5
434 //! - \b GPIO_PORT_P6
435 //! - \b GPIO_PORT_P7
436 //! - \b GPIO_PORT_P8
437 //! - \b GPIO_PORT_P9
438 //! - \b GPIO_PORT_P10
439 //! - \b GPIO_PORT_P11
440 //! - \b GPIO_PORT_PJ
441 //! \param selectedPins is the specified pin in the selected port.
442 //! Mask value is the logical OR of any of the following:
460 //! Modified bits of \b PxOUT register.
464 //*****************************************************************************
465 extern void GPIO_toggleOutputOnPin(uint_fast8_t selectedPort,
466 uint_fast16_t selectedPins);
468 //*****************************************************************************
470 //! \brief This function sets the selected Pin in input Mode with Pull Down
473 //! This function sets the selected Pin in input Mode with Pull Down resistor.
475 //! \param selectedPort is the selected port.
476 //! Valid values are:
477 //! - \b GPIO_PORT_P1
478 //! - \b GPIO_PORT_P2
479 //! - \b GPIO_PORT_P3
480 //! - \b GPIO_PORT_P4
481 //! - \b GPIO_PORT_P5
482 //! - \b GPIO_PORT_P6
483 //! - \b GPIO_PORT_P7
484 //! - \b GPIO_PORT_P8
485 //! - \b GPIO_PORT_P9
486 //! - \b GPIO_PORT_P10
487 //! - \b GPIO_PORT_P11
488 //! - \b GPIO_PORT_PJ
489 //! \param selectedPins is the specified pin in the selected port.
490 //! Mask value is the logical OR of any of the following:
508 //! Modified bits of \b PxDIR register, bits of \b PxOUT register and bits of
509 //! \b PxREN register.
513 //*****************************************************************************
514 extern void GPIO_setAsInputPinWithPullDownResistor(uint_fast8_t selectedPort,
515 uint_fast16_t selectedPins);
517 //*****************************************************************************
519 //! \brief This function sets the selected Pin in input Mode with Pull Up
522 //! This function sets the selected Pin in input Mode with Pull Up resistor.
524 //! \param selectedPort is the selected port.
525 //! Valid values are:
526 //! - \b GPIO_PORT_P1
527 //! - \b GPIO_PORT_P2
528 //! - \b GPIO_PORT_P3
529 //! - \b GPIO_PORT_P4
530 //! - \b GPIO_PORT_P5
531 //! - \b GPIO_PORT_P6
532 //! - \b GPIO_PORT_P7
533 //! - \b GPIO_PORT_P8
534 //! - \b GPIO_PORT_P9
535 //! - \b GPIO_PORT_P10
536 //! - \b GPIO_PORT_P11
537 //! - \b GPIO_PORT_PJ
538 //! \param selectedPins is the specified pin in the selected port.
539 //! Mask value is the logical OR of any of the following:
557 //! Modified bits of \b PxDIR register, bits of \b PxOUT register and bits of
558 //! \b PxREN register.
562 //*****************************************************************************
563 extern void GPIO_setAsInputPinWithPullUpResistor(uint_fast8_t selectedPort,
564 uint_fast16_t selectedPins);
566 //*****************************************************************************
568 //! \brief This function gets the input value on the selected pin
570 //! This function gets the input value on the selected pin.
572 //! \param selectedPort is the selected port.
573 //! Valid values are:
574 //! - \b GPIO_PORT_P1
575 //! - \b GPIO_PORT_P2
576 //! - \b GPIO_PORT_P3
577 //! - \b GPIO_PORT_P4
578 //! - \b GPIO_PORT_P5
579 //! - \b GPIO_PORT_P6
580 //! - \b GPIO_PORT_P7
581 //! - \b GPIO_PORT_P8
582 //! - \b GPIO_PORT_P9
583 //! - \b GPIO_PORT_P10
584 //! - \b GPIO_PORT_P11
585 //! - \b GPIO_PORT_PJ
586 //! \param selectedPins is the specified pin in the selected port.
587 //! Valid values are:
605 //! \return One of the following:
606 //! - \b GPIO_INPUT_PIN_HIGH
607 //! - \b GPIO_INPUT_PIN_LOW
608 //! \n indicating the status of the pin
610 //*****************************************************************************
611 extern uint8_t GPIO_getInputPinValue(uint_fast8_t selectedPort,
612 uint_fast16_t selectedPins);
614 //*****************************************************************************
616 //! \brief This function enables the port interrupt on the selected pin
618 //! This function enables the port interrupt on the selected pin. Note that
619 //! only Port 1,2, A have this capability.
621 //! \param selectedPort is the selected port.
622 //! Valid values are:
623 //! - \b GPIO_PORT_P1
624 //! - \b GPIO_PORT_P2
625 //! - \b GPIO_PORT_PA
626 //! \param selectedPins is the specified pin in the selected port.
627 //! Mask value is the logical OR of any of the following:
645 //! Modified bits of \b PxIE register.
649 //*****************************************************************************
650 extern void GPIO_enableInterrupt(uint_fast8_t selectedPort,
651 uint_fast16_t selectedPins);
653 //*****************************************************************************
655 //! \brief This function disables the port interrupt on the selected pin
657 //! This function disables the port interrupt on the selected pin. Note that
658 //! only Port 1,2, A have this capability.
660 //! \param selectedPort is the selected port.
661 //! Valid values are:
662 //! - \b GPIO_PORT_P1
663 //! - \b GPIO_PORT_P2
664 //! - \b GPIO_PORT_PA
665 //! \param selectedPins is the specified pin in the selected port.
666 //! Mask value is the logical OR of any of the following:
684 //! Modified bits of \b PxIE register.
688 //*****************************************************************************
689 extern void GPIO_disableInterrupt(uint_fast8_t selectedPort,
690 uint_fast16_t selectedPins);
692 //*****************************************************************************
694 //! \brief This function gets the interrupt status of the selected pin
696 //! This function gets the interrupt status of the selected pin. Note that only
697 //! Port 1,2, A have this capability.
699 //! \param selectedPort is the selected port.
700 //! Valid values are:
701 //! - \b GPIO_PORT_P1
702 //! - \b GPIO_PORT_P2
703 //! - \b GPIO_PORT_PA
704 //! \param selectedPins is the specified pin in the selected port.
705 //! Mask value is the logical OR of any of the following:
723 //! \return Logical OR of any of the following:
740 //! \n indicating the interrupt status of the selected pins [Default:
743 //*****************************************************************************
744 extern uint_fast16_t GPIO_getInterruptStatus(uint_fast8_t selectedPort,
745 uint_fast16_t selectedPins);
747 //*****************************************************************************
749 //! \brief This function clears the interrupt flag on the selected pin
751 //! This function clears the interrupt flag on the selected pin. Note that only
752 //! Port 1,2,A have this capability.
754 //! \param selectedPort is the selected port.
755 //! Valid values are:
756 //! - \b GPIO_PORT_P1
757 //! - \b GPIO_PORT_P2
758 //! - \b GPIO_PORT_PA
759 //! \param selectedPins is the specified pin in the selected port.
760 //! Mask value is the logical OR of any of the following:
778 //! Modified bits of \b PxIFG register.
782 //*****************************************************************************
783 extern void GPIO_clearInterruptFlag(uint_fast8_t selectedPort,
784 uint_fast16_t selectedPins);
786 //*****************************************************************************
788 //! \brief This function selects on what edge the port interrupt flag should be
789 //! set for a transition
791 //! This function selects on what edge the port interrupt flag should be set
792 //! for a transition. Values for edgeSelect should be
793 //! GPIO_LOW_TO_HIGH_TRANSITION or GPIO_HIGH_TO_LOW_TRANSITION.
795 //! \param selectedPort is the selected port.
796 //! Valid values are:
797 //! - \b GPIO_PORT_P1
798 //! - \b GPIO_PORT_P2
799 //! - \b GPIO_PORT_P3
800 //! - \b GPIO_PORT_P4
801 //! - \b GPIO_PORT_P5
802 //! - \b GPIO_PORT_P6
803 //! - \b GPIO_PORT_P7
804 //! - \b GPIO_PORT_P8
805 //! - \b GPIO_PORT_P9
806 //! - \b GPIO_PORT_P10
807 //! - \b GPIO_PORT_P11
808 //! - \b GPIO_PORT_PJ
809 //! \param selectedPins is the specified pin in the selected port.
810 //! Mask value is the logical OR of any of the following:
827 //! \param edgeSelect specifies what transition sets the interrupt flag
828 //! Valid values are:
829 //! - \b GPIO_HIGH_TO_LOW_TRANSITION
830 //! - \b GPIO_LOW_TO_HIGH_TRANSITION
832 //! Modified bits of \b PxIES register.
836 //*****************************************************************************
837 extern void GPIO_interruptEdgeSelect(uint_fast8_t selectedPort,
838 uint_fast16_t selectedPins, uint_fast8_t edgeSelect);
840 //*****************************************************************************
842 //! \brief This function gets the interrupt status of the provided PIN and
843 //! masks it with the interrupts that are actually enabled. This is
844 //! useful for inside ISRs where the status of only the enabled
845 //! interrupts needs to be checked.
847 //! \param selectedPort is the selected port.
848 //! Valid values are:
849 //! - \b GPIO_PORT_P1
850 //! - \b GPIO_PORT_P2
851 //! - \b GPIO_PORT_P3
852 //! - \b GPIO_PORT_P4
853 //! - \b GPIO_PORT_P5
854 //! - \b GPIO_PORT_P6
855 //! - \b GPIO_PORT_P7
856 //! - \b GPIO_PORT_P8
857 //! - \b GPIO_PORT_P9
858 //! - \b GPIO_PORT_P10
859 //! - \b GPIO_PORT_P11
860 //! - \b GPIO_PORT_PJ
862 //! \return Logical OR of any of the following:
881 //! \n indicating the interrupt status of the selected pins [Default:
884 //*****************************************************************************
885 extern uint_fast16_t GPIO_getEnabledInterruptStatus(uint_fast8_t selectedPort);
888 //*****************************************************************************
890 //! Registers an interrupt handler for the port interrupt.
892 //! \param selectedPort is the port to register the interrupt handler
894 //! \param intHandler is a pointer to the function to be called when the port
895 //! interrupt occurs.
897 //! This function registers the handler to be called when a port
898 //! interrupt occurs. This function enables the global interrupt in the
899 //! interrupt controller; specific GPIO interrupts must be enabled
900 //! via GPIO_enableInterrupt(). It is the interrupt handler's responsibility to
901 //! clear the interrupt source via GPIO_clearInterruptFlag().
903 //! Clock System can generate interrupts when
905 //! \sa Interrupt_registerInterrupt() for important information about
906 //! registering interrupt handlers.
910 //*****************************************************************************
911 extern void GPIO_registerInterrupt(uint_fast8_t selectedPort,
912 void (*intHandler)(void));
914 //*****************************************************************************
916 //! Unregisters the interrupt handler for the port.
918 //! \param selectedPort is the port to unregister the interrupt handler
920 //! This function unregisters the handler to be called when a port
921 //! interrupt occurs. This function also masks off the interrupt in the
922 //! interrupt controller so that the interrupt handler no longer is called.
924 //! \sa Interrupt_registerInterrupt() for important information about
925 //! registering interrupt handlers.
929 //*****************************************************************************
930 extern void GPIO_unregisterInterrupt(uint_fast8_t selectedPort);
932 //*****************************************************************************
934 //! This function sets the drive strength to high for the selected port
937 //! \param selectedPort is the selected port.
938 //! Valid values are:
939 //! - \b GPIO_PORT_P1,
940 //! - \b GPIO_PORT_P2,
941 //! - \b GPIO_PORT_P3,
942 //! - \b GPIO_PORT_P4,
943 //! - \b GPIO_PORT_P5,
944 //! - \b GPIO_PORT_P6,
945 //! - \b GPIO_PORT_P7,
946 //! - \b GPIO_PORT_P8,
947 //! - \b GPIO_PORT_P9,
948 //! - \b GPIO_PORT_P10,
949 //! - \b GPIO_PORT_PJ
950 //! \param selectedPins is the specified pin in the selected port.
951 //! Valid values are:
965 //*****************************************************************************
966 extern void GPIO_setDriveStrengthHigh(uint_fast8_t selectedPort,
967 uint_fast8_t selectedPins);
969 //*****************************************************************************
971 //! This function sets the drive strength to low for the selected port
974 //! \param selectedPort is the selected port.
975 //! Valid values are:
976 //! - \b GPIO_PORT_P1,
977 //! - \b GPIO_PORT_P2,
978 //! - \b GPIO_PORT_P3,
979 //! - \b GPIO_PORT_P4,
980 //! - \b GPIO_PORT_P5,
981 //! - \b GPIO_PORT_P6,
982 //! - \b GPIO_PORT_P7,
983 //! - \b GPIO_PORT_P8,
984 //! - \b GPIO_PORT_P9,
985 //! - \b GPIO_PORT_P10,
986 //! - \b GPIO_PORT_PJ
987 //! \param selectedPins is the specified pin in the selected port.
988 //! Valid values are:
1002 //*****************************************************************************
1003 extern void GPIO_setDriveStrengthLow(uint_fast8_t selectedPort,
1004 uint_fast8_t selectedPins);
1006 /* Backwards Compatibility Layer */
1007 #define GPIO_selectInterruptEdge GPIO_interruptEdgeSelect
1008 #define GPIO_clearInterrupt GPIO_clearInterruptFlag
1010 //*****************************************************************************
1012 // Mark the end of the C bindings section for C++ compilers.
1014 //*****************************************************************************
1019 //*****************************************************************************
1021 // Close the Doxygen group.
1024 //*****************************************************************************
1026 #endif // __GPIO_H__