aboutsummaryrefslogtreecommitdiff
path: root/hw/thefreeman/avr32dd20-devkit/hwdef.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2024-02-02 23:24:50 -0700
committerSelene ToyKeeper2024-02-02 23:24:50 -0700
commitd5149d654a0e6e53d41e41c9adae92523276e720 (patch)
tree7b2e0bba333b11bfbddc73f27577c34d5d663f63 /hw/thefreeman/avr32dd20-devkit/hwdef.h
parentavr32dd20-devkit: use unimplemented "CH" pin as a boost bypass control (diff)
downloadanduril-d5149d654a0e6e53d41e41c9adae92523276e720.tar.gz
anduril-d5149d654a0e6e53d41e41c9adae92523276e720.tar.bz2
anduril-d5149d654a0e6e53d41e41c9adae92523276e720.zip
thefreeman-avr32dd20-devkit: enable boost bypass at boot, so AA/NiMH can boot
Diffstat (limited to 'hw/thefreeman/avr32dd20-devkit/hwdef.h')
-rw-r--r--hw/thefreeman/avr32dd20-devkit/hwdef.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/thefreeman/avr32dd20-devkit/hwdef.h b/hw/thefreeman/avr32dd20-devkit/hwdef.h
index 231f74a..38b508d 100644
--- a/hw/thefreeman/avr32dd20-devkit/hwdef.h
+++ b/hw/thefreeman/avr32dd20-devkit/hwdef.h
@@ -155,6 +155,7 @@ inline void hwdef_setup() {
//PORTA.PIN2CTRL = PORT_PULLUPEN_bm; // B
#ifdef USE_BST_BYPASS
PORTA.PIN3CTRL = PORT_PULLUPEN_bm; // BBY
+ BST_BYPASS_PORT |= (1 << BST_BYPASS_PIN);
#endif
PORTA.PIN4CTRL = PORT_PULLUPEN_bm;
PORTA.PIN5CTRL = PORT_PULLUPEN_bm;