Skip to content

Commit

Permalink
firmware: Ignore button with shared pin
Browse files Browse the repository at this point in the history
  • Loading branch information
mossmann committed Apr 3, 2024
1 parent 171556d commit 7bec683
Showing 1 changed file with 8 additions and 2 deletions.
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

0 comments on commit 7bec683

Please sign in to comment.