解决开机读不到IDbug
This reverts commit d339c9d6785412976ad2916257d10915b22453dd.
| | |
| | | /*------------------------------------ Variables ------------------------------------------*/ |
| | | /* Default communication configuration. We use here EVK1000's default mode (mode 3). */ |
| | | static dwt_config_t config = { |
| | | 5, /* Channel number. */ |
| | | 2, /* Channel number. */ |
| | | DWT_PRF_64M, /* Pulse repetition frequency. */ |
| | | DWT_PLEN_128, /* Preamble length. */ |
| | | DWT_PAC8, /* Preamble acquisition chunk size. Used in RX only. */ |
| | |
| | | g_com_map[COM_INTERVAL]=500; |
| | | save_com_map_to_flash(); |
| | | } |
| | | |
| | | dis_after_filter = 1000; //榛樿璺濈 |
| | | p_Dis_Filter = New_LP_Frac(0.3); |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | // Read and validate device ID return -1 if not recognised |
| | | dw1000local.deviceID = dwt_readdevid() ; |
| | | if (DWT_DEVICE_ID != dw1000local.deviceID) // MP IC ONLY (i.e. DW1000) FOR THIS CODE |
| | | while (DWT_DEVICE_ID != dw1000local.deviceID) // MP IC ONLY (i.e. DW1000) FOR THIS CODE |
| | | { |
| | | return DWT_ERROR ; |
| | | dw1000local.deviceID = dwt_readdevid() ; |
| | | } |
| | | |
| | | _dwt_enableclocks(FORCE_SYS_XTI); // NOTE: set system clock to XTI - this is necessary to make sure the values read by _dwt_otpread are reliable |