what is register? what is uint32_t?
Please, write to fit the meaning.  Like this.
@param regiser register of generic timer
@param val  Value to be written