}
static char flash_protected(uint32_t block_offset) {
- return block_offset < 64*1024;
+ return 0; // block_offset < 64*1024;
}
return -EINVAL;
}
- /* check destination alignment */
+ /* check alignments */
+ if(((uint32_t)src)%2) {
+ return -EINVAL;
+ }
if(dst%2) {
return -EINVAL;
}