Revert "removed unnecessary typedef from enum"

This reverts commit f6ffe8ad3661f43f57a424508baf2cd957ebc72b.
UART library updated