• Alexander Aring's avatar
    at86rf230: add support for calibration timeout · dce481e6
    Alexander Aring authored
    This patch adds a handling for calibration if we are 5 minutes in PLL
    state. I first tried to implement the calibration functionality in
    TX_ON state via register values CF_START and DCU_START, but this occurs
    a one second delay at each calibration time.
    
    An another solution to start a calibration is to switch from TRX_OFF
    state into TX_ON, then a calibration is done automatically by
    transceiver. This method will be used in this patch, after each transmit
    of a frame we check with jiffies if the PLL is set 5 minutes without
    doing a TRX_OFF->(TX_ON || RX_AACK_ON) or channel switch. The worst case
    would be a transceiver in receiving mode only, but this is under normal
    operation very unlikely.
    Signed-off-by: default avatarAlexander Aring <alex.aring@gmail.com>
    Cc: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
    Cc: Werner Almesberger <werner@almesberger.net>
    Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
    dce481e6
at86rf230.c 43.7 KB