[[ファームウェア関数一覧>ファームウェア関数一覧#k4f94425]] *RCC_WaitForHSEStartUp [#gbb46c91] #contents **ヘッダ宣言 [#q4339d25] **関数プロトタイプ [#z23984fb] ErrorStatus RCC_WaitForHSEStartUp(void) **動作 [#x84d1441] -HSEがスタートアップするまで待ちます。 **引数 [#q263316f] -無し **戻り値 [#q8e7d70d] -ErrorStatus |SUCCESS|HSE oscillator が安定し利用する用意が出来ました| |ERROR|HSE oscillator は準備が出来ていません| **場所 [#ee788e1d] **呼び出し関数 [#m59e0283] -無し **サンプル [#yfee163d] 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 */ } *参照 [#w30888fd]