clean up code, using RT_CONSOLE_DEVICE_NAME micro