Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdad33e6

Browse files
committed
atmel-samd: Reset the DAC on soft reset.Fixesadafruit#80.
1 parentf74e477 commitdad33e6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎atmel-samd/main.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ void reset_samd21(void) {
161161

162162
analogin_reset();
163163

164+
// Wait for the DAC to sync.
165+
while (DAC->STATUS.reg&DAC_STATUS_SYNCBUSY) {}
166+
DAC->CTRLA.reg |=DAC_CTRLA_SWRST;
167+
164168
structsystem_pinmux_configconfig;
165169
system_pinmux_get_config_defaults(&config);
166170
config.powersave= true;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp