icis4

Newlib IO redirect to SWO

May 9th, 2021 (edited)
1,382
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int _write(int fd, char *ptr, int len)
  2. {
  3.     for (int i = 0; i < len; i++) {
  4.         ITM_SendChar(ptr[i]);
  5.     }
  6.     return len;
  7. }
  8.        
RAW Paste Data