mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-25 13:13:44 +02:00
lib/cwtest.c (start_test_mode_231): don't insist on IRQ_PLL_LOCK
We seem to have a path where the PLL is already locked when we get there. We thus never get an interrupt and hang. Pending further investigation, just use a timeout that is longer than the worst-case PLL lock time.
This commit is contained in:
parent
39c37258c5
commit
8c00833542
@ -92,7 +92,7 @@ static void start_test_mode_231(struct atrf_dsc *dsc)
|
|||||||
atrf_reg_write(dsc, REG_PART_NUM, 0x46); /*14 */
|
atrf_reg_write(dsc, REG_PART_NUM, 0x46); /*14 */
|
||||||
|
|
||||||
atrf_reg_write(dsc, REG_TRX_STATE, TRX_CMD_PLL_ON); /*15 */
|
atrf_reg_write(dsc, REG_TRX_STATE, TRX_CMD_PLL_ON); /*15 */
|
||||||
wait_for_interrupt(dsc, IRQ_PLL_LOCK, IRQ_PLL_LOCK, 10, 0); /*16 */
|
wait_for_interrupt(dsc, IRQ_PLL_LOCK, IRQ_PLL_LOCK, 10, 20); /*16 */
|
||||||
|
|
||||||
atrf_reg_write(dsc, REG_TRX_STATE, TRX_CMD_TX_START); /*17 */
|
atrf_reg_write(dsc, REG_TRX_STATE, TRX_CMD_TX_START); /*17 */
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user