Changeset 71c5552f in rtems
- Timestamp:
- 03/12/18 15:43:28 (5 years ago)
- Branches:
- 5, master
- Children:
- 7c39cab
- Parents:
- 7633f5b
- git-author:
- Christian Mauderer <christian.mauderer@…> (03/12/18 15:43:28)
- git-committer:
- Christian Mauderer <christian.mauderer@…> (03/13/18 14:04:28)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
bsps/arm/atsam/include/libchip/include/pio.h
r7633f5b r71c5552f 210 210 211 211 extern uint32_t PIO_GetWriteProtectViolationInfo(const Pin *pin); 212 213 extern void PIO_SetDriveStrength(const Pin *pin, uint8_t strength); 212 214 #ifdef __cplusplus 213 215 } -
c/src/lib/libbsp/arm/atsam/libraries/libchip/source/pio.c
r7633f5b r71c5552f 482 482 } 483 483 484 /** 485 * \brief Set the drive strength of the pin. 486 * 487 * \param pin Pointer to a Pin instance describing one or more pins. 488 * \param strength 0 for low drive strength or 1 for high drive strength. 489 */ 490 void PIO_SetDriveStrength(const Pin *pin, uint8_t strength) 491 { 492 Pio *pio = pin->pio; 493 494 if (strength) { 495 pio->PIO_DRIVER |= pin->mask; 496 } else { 497 pio->PIO_DRIVER &= ~(pin->mask); 498 } 499 }
Note: See TracChangeset
for help on using the changeset viewer.