src/apps/callback_handler.c
static void factoryDefaultSetting() {
        T_STORAGE_buff *ptr;
        
        eepromReadFactoryDefaultBuffer( &storageBuff[TYPE_DEVEUI] ); 
    
        eepromReadFactoryDefaultBuffer( &storageBuff[TYPE_APPEUI] );
    
        eepromReadFactoryDefaultBuffer( &storageBuff[TYPE_APPKEY] );
    
        eepromReadFactoryDefaultBuffer( &storageBuff[TYPE_APPSKEY] );
    
        eepromReadFactoryDefaultBuffer( &storageBuff[TYPE_NWKSKEY] );
    
        eepromReadFactoryDefaultBuffer( &storageBuff[TYPE_DEVADDR] );
    
        eepromReadFactoryDefaultBuffer( &storageBuff[TYPE_VERSION] ); 
        
        eepromReadFactoryDefaultBuffer( &storageBuff[TYPE_ADRSTATUS] );
        
        eepromReadFactoryDefaultBuffer( &storageBuff[TYPE_APPPORT] );
        
        eepromReadFactoryDefaultBuffer( &storageBuff[TYPE_DATARATE] );
        
        ptr = &storageBuff[TYPE_DEVEUI];
        eepromWriteBuffer(ptr);
        
        ptr = &storageBuff[TYPE_APPEUI];
        eepromWriteBuffer(ptr);
        
        ptr = &storageBuff[TYPE_APPKEY];
        eepromWriteBuffer(ptr);
        
        ptr = &storageBuff[TYPE_APPSKEY];
        eepromWriteBuffer(ptr);
        
        ptr = &storageBuff[TYPE_NWKSKEY];
        eepromWriteBuffer(ptr);
        
        ptr = &storageBuff[TYPE_DEVADDR];
        eepromWriteBuffer(ptr);
        
        ptr = &storageBuff[TYPE_VERSION];
        eepromWriteBuffer(ptr);
        
        ptr = &storageBuff[TYPE_ADRSTATUS];
        eepromWriteBuffer(ptr);
        
        ptr = &storageBuff[TYPE_APPPORT];
        eepromWriteBuffer(ptr);
        
        ptr = &storageBuff[TYPE_DATARATE];
        eepromWriteBuffer(ptr);
}
/* factoryDefaultSetting , Reset to factory default configuration
 * first step , read buffer from factory default flash address to different kind array of buffBase address
 * second step, storage this arrays to flash address.
 */
factoryDefaultSetting , Reset to factory default configuration
first step , read buffer from factory default flash address to different kind array of buffBase address
second step, storage this arrays to flash address.
factoryDefaultSetting Reset to factory default configuration first step read buffer from factory default flash address to different kind array of buffBase address second step storage this arrays to flash address .
static void factoryDefaultSetting() {
        T_STORAGE_buff *ptr;
        eepromReadFactoryDefaultBuffer( &storageBuff[TYPE_DEVEUI] ); 
        eepromReadFactoryDefaultBuffer( &storageBuff[TYPE_APPEUI] );
        eepromReadFactoryDefaultBuffer( &storageBuff[TYPE_APPKEY] );
        eepromReadFactoryDefaultBuffer( &storageBuff[TYPE_APPSKEY] );
        eepromReadFactoryDefaultBuffer( &storageBuff[TYPE_NWKSKEY] );
        eepromReadFactoryDefaultBuffer( &storageBuff[TYPE_DEVADDR] );
        eepromReadFactoryDefaultBuffer( &storageBuff[TYPE_VERSION] ); 
        eepromReadFactoryDefaultBuffer( &storageBuff[TYPE_ADRSTATUS] );
        eepromReadFactoryDefaultBuffer( &storageBuff[TYPE_APPPORT] );
        eepromReadFactoryDefaultBuffer( &storageBuff[TYPE_DATARATE] );
        ptr = &storageBuff[TYPE_DEVEUI];
        eepromWriteBuffer(ptr);
        ptr = &storageBuff[TYPE_APPEUI];
        eepromWriteBuffer(ptr);
        ptr = &storageBuff[TYPE_APPKEY];
        eepromWriteBuffer(ptr);
        ptr = &storageBuff[TYPE_APPSKEY];
        eepromWriteBuffer(ptr);
        ptr = &storageBuff[TYPE_NWKSKEY];
        eepromWriteBuffer(ptr);
        ptr = &storageBuff[TYPE_DEVADDR];
        eepromWriteBuffer(ptr);
        ptr = &storageBuff[TYPE_VERSION];
        eepromWriteBuffer(ptr);
        ptr = &storageBuff[TYPE_ADRSTATUS];
        eepromWriteBuffer(ptr);
        ptr = &storageBuff[TYPE_APPPORT];
        eepromWriteBuffer(ptr);
        ptr = &storageBuff[TYPE_DATARATE];
        eepromWriteBuffer(ptr);
}
static void factoryDefaultSetting ( ) { T_STORAGE_buff * ptr ; eepromReadFactoryDefaultBuffer ( & storageBuff [ TYPE_DEVEUI ] ) ; eepromReadFactoryDefaultBuffer ( & storageBuff [ TYPE_APPEUI ] ) ; eepromReadFactoryDefaultBuffer ( & storageBuff [ TYPE_APPKEY ] ) ; eepromReadFactoryDefaultBuffer ( & storageBuff [ TYPE_APPSKEY ] ) ; eepromReadFactoryDefaultBuffer ( & storageBuff [ TYPE_NWKSKEY ] ) ; eepromReadFactoryDefaultBuffer ( & storageBuff [ TYPE_DEVADDR ] ) ; eepromReadFactoryDefaultBuffer ( & storageBuff [ TYPE_VERSION ] ) ; eepromReadFactoryDefaultBuffer ( & storageBuff [ TYPE_ADRSTATUS ] ) ; eepromReadFactoryDefaultBuffer ( & storageBuff [ TYPE_APPPORT ] ) ; eepromReadFactoryDefaultBuffer ( & storageBuff [ TYPE_DATARATE ] ) ; ptr = & storageBuff [ TYPE_DEVEUI ] ; eepromWriteBuffer ( ptr ) ; ptr = & storageBuff [ TYPE_APPEUI ] ; eepromWriteBuffer ( ptr ) ; ptr = & storageBuff [ TYPE_APPKEY ] ; eepromWriteBuffer ( ptr ) ; ptr = & storageBuff [ TYPE_APPSKEY ] ; eepromWriteBuffer ( ptr ) ; ptr = & storageBuff [ TYPE_NWKSKEY ] ; eepromWriteBuffer ( ptr ) ; ptr = & storageBuff [ TYPE_DEVADDR ] ; eepromWriteBuffer ( ptr ) ; ptr = & storageBuff [ TYPE_VERSION ] ; eepromWriteBuffer ( ptr ) ; ptr = & storageBuff [ TYPE_ADRSTATUS ] ; eepromWriteBuffer ( ptr ) ; ptr = & storageBuff [ TYPE_APPPORT ] ; eepromWriteBuffer ( ptr ) ; ptr = & storageBuff [ TYPE_DATARATE ] ; eepromWriteBuffer ( ptr ) ; }
factoryDefaultSetting , Reset to factory default configuration
 first step , read buffer from factory default flash address to different kind array of buffBase address
 second step, storage this arrays to flash address.
factoryDefaultSetting Reset to factory default configuration first step read buffer from factory default flash address to different kind array of buffBase address second step storage this arrays to flash address .