Advertisement
Guest User

Untitled

a guest
May 4th, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. void write_to_flash (void) {
  2. BYTE i;
  3.  
  4. iap_copy_to_flash((uint8_t *)display_address, OFFSET_ADDRESS, 1); //warning here
  5. delay_1_ms();
  6. iap_copy_to_flash((uint8_t *)version, OFFSET_VERSION, 1); //warning here
  7. delay_1_ms();
  8. for (i=0;i<8;i++) {
  9. iap_copy_to_flash((uint8_t *)serial_no[i], OFFSET_VERSION+i, 1); //warning here
  10. delay_1_ms();
  11. }
  12. }
  13.  
  14. void iap_copy_to_flash (uint8_t* buff, uint32_t flash_addr, uint32_t num_bytes)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement