Advertisement
Guest User

Untitled

a guest
Sep 27th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. uint32_t fFlashEndingAddress = 0x2765A6;
  2. uint8_t iBuffahInUse = 0;
  3. uint16_t hBuffahByteInUse = 0;
  4. uint16_t *aFlashBuffahInUse;
  5. uint16_t *aFlashBuffahs[2];
  6. uint8_t bFlashBuffah0[512];
  7. uint8_t bFlashBuffah1[512];
  8.  
  9. aFlashBuffahs[0] = &bFlashBuffah0;
  10. aFlashBuffahs[1] = &bFlashBuffah1;
  11.  
  12. iBuffahInUse = 0;
  13. aFlashBuffahInUse = aFlashBuffahs[iBuffahInUse];
  14. hBuffahByteInUse = 0;
  15. for (i = 0; i < fFlashEndingAddress; i++) {
  16. *(aFlashBuffahInUse+hBuffahByteInUse) = usart_getchar(UASRT_SERIAL);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement