ファームウェア関数一覧

RCC_WaitForHSEStartUp

ヘッダ宣言

関数プロトタイプ

ErrorStatus RCC_WaitForHSEStartUp(void)

動作

  • HSEがスタートアップするまで待ちます。タイムアウトが来た場合も終了します。

引数

  • 無し

戻り値

  • ErrorStatus

    ErrorStatus説明
    SUCCESSHSE oscillator が安定し利用する用意が出来ました
    ERRORHSE oscillator は準備が出来ていません

呼び出し関数

  • 無し

サンプル

ErrorStatus HSEStartUpStatus;
/* Enable HSE */
RCC_HSEConfig(RCC_HSE_ON);
/* Wait till HSE is ready and if Time out is reached exit */
HSEStartUpStatus = RCC_WaitForHSEStartUp();
if(HSEStartUpStatus == SUCCESS)
{
/* Add here PLL and system clock config */
}
else
{
/* Add here some code to deal with this error */
}

参照

  • STM32マイコン徹底入門 P.130

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2011-10-30 (日) 15:32:25