Reviewed-by: Karl Palsson <karlp@tweak.net.au> (Changed from cast to literal int, more inline with efm32 and clearer intent)