//Overwrite _write so 'printf''s get pushed over the uart
int _write(int fd, char *ptr, int len)
{
#ifdef FRAMEWORK_LOG_OUTPUT_ON_RTT
  SEGGER_RTT_Write(0, ptr, len);
#else
  console_print_bytes((uint8_t*)ptr, len);
#endif

  return len;
}
//Overwrite _write so 'printf''s get pushed over the uart
int _write(int fd, char *ptr, int len)
{
  console_print_bytes(ptr, len);
  return len;
}