Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firmware: Ignore button with shared pin #46

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions firmware/src/boards/cynthion_d11/apollo_board.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,16 @@
#include <hal/include/hal_gpio.h>
#include <stdbool.h>

#define BOARD_HAS_PROGRAM_BUTTON

#if (((_BOARD_REVISION_MAJOR_ == 0) && (_BOARD_REVISION_MINOR_ >= 6)) || (_BOARD_REVISION_MAJOR_ == 1))
#define BOARD_HAS_USB_SWITCH
/*
* Hardware revisions r0.3 through r0.5 have a button, but its GPIO pin is
* shared with LED_A. We never needed to use the button on those revisions
* because they effectively had a dedicated USB port for Apollo. Sharing the
* pin is tricky, but we'll probably never need to implement that. Unless and
* until we implement it, pretend that the button does not exist.
*/
#define BOARD_HAS_PROGRAM_BUTTON
#endif

/**
Expand Down
Loading