Changed to use stdint types.

This commit is contained in:
Piotr Esden-Tempski
2013-06-12 19:11:22 -07:00
parent 7df63fcae0
commit 34de1e776e
127 changed files with 1886 additions and 1895 deletions

View File

@@ -46,10 +46,10 @@ LGPL License Terms @ref lgpl_license
The counter is set to the reload value when the counter starts and after it
reaches zero.
@param[in] value u32. 24 bit reload value.
@param[in] value uint32_t. 24 bit reload value.
*/
void systick_set_reload(u32 value)
void systick_set_reload(uint32_t value)
{
STK_LOAD = (value & 0x00FFFFFF);
}
@@ -57,10 +57,10 @@ void systick_set_reload(u32 value)
/*---------------------------------------------------------------------------*/
/** @brief SysTick Read the Automatic Reload Value.
@returns 24 bit reload value as u32.
@returns 24 bit reload value as uint32_t.
*/
u32 systick_get_reload(void)
uint32_t systick_get_reload(void)
{
return STK_LOAD & 0x00FFFFFF;
}
@@ -68,10 +68,10 @@ u32 systick_get_reload(void)
/*---------------------------------------------------------------------------*/
/** @brief Get the current SysTick counter value.
@returns 24 bit current value as u32.
@returns 24 bit current value as uint32_t.
*/
u32 systick_get_value(void)
uint32_t systick_get_value(void)
{
return STK_VAL & 0x00FFFFFF;
}
@@ -81,10 +81,10 @@ u32 systick_get_value(void)
The clock source can be either the AHB clock or the same clock divided by 8.
@param[in] clocksource u8. Clock source from @ref systick_clksource.
@param[in] clocksource uint8_t. Clock source from @ref systick_clksource.
*/
void systick_set_clocksource(u8 clocksource)
void systick_set_clocksource(uint8_t clocksource)
{
if (clocksource < 2) {
STK_CTRL |= (clocksource << STK_CTRL_CLKSOURCE_LSB);
@@ -140,7 +140,7 @@ the flag is read.
@returns Boolean if flag set.
*/
u8 systick_get_countflag(void)
uint8_t systick_get_countflag(void)
{
if (STK_CTRL & STK_CTRL_COUNTFLAG) {
return 1;
@@ -154,7 +154,7 @@ u8 systick_get_countflag(void)
@returns Current calibration value
*/
u32 systick_get_calib(void)
uint32_t systick_get_calib(void)
{
return STK_CALIB & 0x00FFFFFF;
}