-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PHY configuration (Arduino IDE compatible)
- Loading branch information
Showing
7 changed files
with
260 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// USB Power Delivery for Arduino | ||
// Copyright (c) 2024 Manuel Bleichenbacher | ||
// | ||
// Licensed under MIT License | ||
// https://opensource.org/licenses/MIT | ||
// | ||
|
||
// Code that needs to be included in a single .cpp file as it is not just a header file | ||
// with declarations but provides actual implementation. | ||
|
||
#if USB_PD_PHY == USB_PD_PHY_UCPD1 || USB_PD_PHY == USB_PD_PHY_UCPD2 || USB_PD_PHY == USB_PD_PHY_UCPD1_2 | ||
|
||
#include "phy/STM32UCPD/STM32UCPDInterruptHandler.h" | ||
|
||
#elif USB_PD_PHY == USB_PD_PHY_FUSB302 | ||
|
||
// nothing further to include | ||
|
||
#else | ||
#error "Invalid or missing value for USB_PD_PHY. Please define USB_PD_PHY before including this file." | ||
#endif |
Oops, something went wrong.