| | |
| | | #define MAX_RETRIES_FOR_PLL (6) |
| | | #define MAX_RETRIES_FOR_PGF (3) |
| | | |
| | | //DW1000 SLEEP and WAKEUP configuration parameters |
| | | #define DWT_PRESRV_SLEEP 0x0100 // PRES_SLEEP - on wakeup preserve sleep bit |
| | | #define DWT_LOADOPSET 0x0080 // ONW_L64P - on wakeup load operating parameter set for 64 PSR |
| | | #define DWT_CONFIG 0x0040 // ONW_LDC - on wakeup restore (load) the saved configurations (from AON array into HIF) |
| | | #define DWT_TANDV 0x0001 // ONW_RADC - on wakeup run ADC to sample temperature and voltage sensor values |
| | | ////DW1000 SLEEP and WAKEUP configuration parameters |
| | | //#define DWT_PRESRV_SLEEP 0x0100 // PRES_SLEEP - on wakeup preserve sleep bit |
| | | //#define DWT_LOADOPSET 0x0080 // ONW_L64P - on wakeup load operating parameter set for 64 PSR |
| | | //#define DWT_CONFIG 0x0040 // ONW_LDC - on wakeup restore (load) the saved configurations (from AON array into HIF) |
| | | //#define DWT_TANDV 0x0001 // ONW_RADC - on wakeup run ADC to sample temperature and voltage sensor values |
| | | |
| | | #define DWT_XTAL_EN 0x10 // keep XTAL running during sleep |
| | | #define DWT_WAKE_SLPCNT 0x8 // wake up after sleep count |
| | | #define DWT_WAKE_CS 0x4 // wake up on chip select |
| | | #define DWT_WAKE_WK 0x2 // wake up on WAKEUP PIN |
| | | #define DWT_SLP_EN 0x1 // enable sleep/deep sleep functionality |
| | | //#define DWT_XTAL_EN 0x10 // keep XTAL running during sleep |
| | | //#define DWT_WAKE_SLPCNT 0x8 // wake up after sleep count |
| | | //#define DWT_WAKE_CS 0x4 // wake up on chip select |
| | | //#define DWT_WAKE_WK 0x2 // wake up on WAKEUP PIN |
| | | //#define DWT_SLP_EN 0x1 // enable sleep/deep sleep functionality |
| | | typedef enum |
| | | { |
| | | AOA, |