Content originally posted in LPCWare by 1234567890 on Sat Jun 13 05:40:08 MST 2015
Original function seems to be wrong. It's just reading the register. Seems to be a copy&paste error from Chip_RTC_GetStatus(). Parameter uint32_t stsMask isn't used in the function...
But your solution is wrong as well: You write '0' to the bits.
UM says: "Writing a 1 clears this bit."