-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2baf437
commit b5664cd
Showing
6 changed files
with
79 additions
and
17 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
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,38 @@ | ||
/** | ||
* FPGA advertisement pin handling code. | ||
* | ||
* This file is part of Apollo. | ||
* | ||
* Copyright (c) 2023 Great Scott Gadgets <[email protected]> | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
#include <stdbool.h> | ||
|
||
/** | ||
* Initialize FPGA_ADV receive-only serial port | ||
*/ | ||
void fpga_adv_init(void) | ||
{ | ||
} | ||
|
||
/** | ||
* Task for things related with the advertisement pin | ||
*/ | ||
void fpga_adv_task(void) | ||
{ | ||
} | ||
|
||
/** | ||
* Allow FPGA takeover of the USB port | ||
*/ | ||
void allow_fpga_takeover_usb(bool allow) | ||
{ | ||
} | ||
|
||
/** | ||
* True if we received an advertisement message within the last time window. | ||
*/ | ||
bool fpga_requesting_port(void) | ||
{ | ||
return false; | ||
} |
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