AG903ライブラリリファレンス
Body Source
AG903_SSCPrmSetWdtOutputMode 関数
本文ソース
コピコード
1:
void
AG903_SSCPrmSetWdtOutputMode(uint8_t rst_ini, uint8_t rst_wdt, uint8_t wdt_ena, uint8_t wdt_od) 2: { 3: uint32_t val = 0; 4: 5:
if
(
true
== rst_ini) { 6: val |= (1 <<
AG903_SSC_WDTOUT_SETUP_INIT_POS
); 7: } 8:
if
(
true
== rst_wdt) { 9: val |= (1 <<
AG903_SSC_WDTOUT_SETUP_WDT_POS
); 10: } 11:
if
(
true
== wdt_ena) { 12: val |= (1 <<
AG903_SSC_WDTOUT_SETUP_OUT_POS
); 13: } 14:
if
(
true
== wdt_od) { 15: val |= (1 <<
AG903_SSC_WDTOUT_SETUP_OD_POS
); 16: } 17:
AG903_SSC
->WDTOUT_SETUP = val; 18: 19:
return
; 20: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.
内容
|
インデックス
|
ホーム