iramx3.1 support. res enc and uart are now using defines for hardware.