guanjiao
2018-05-12 7bd852c98c52c306e3628acedc33149ebee3cff6
源码/核心板/Src/decadriver/deca_device.c
@@ -416,8 +416,10 @@
    case DWT_PLEN_512  :
    case DWT_PLEN_256  :
    case DWT_PLEN_128  :
    case DWT_PLEN_64   : break ; // all okay
    default            : return DWT_ERROR ; // not a good preamble length parameter
    case DWT_PLEN_64   :
        break ; // all okay
    default            :
        return DWT_ERROR ; // not a good preamble length parameter
    }
    if(config->phrMode > DWT_PHRMODE_EXT)
@@ -1361,7 +1363,8 @@
    dwt_writetodevice(OTP_IF_ID, OTP_CTRL+1,1,wr_buf);
    // Load data
    switch(mode&0x0f) {
    switch(mode & 0x0f)
    {
    case 0x0 :
        mr =0x0000;
        mra=0x0000;