mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 17:05:58 +08:00
rtems: Simplify RTEMS_MILLISECONDS_TO_MICROSECONDS
Remove the cast so that it can be used in C pre-processor directives. Update #3117. Update #3182.
This commit is contained in:
@@ -33,7 +33,7 @@ extern "C" {
|
||||
/**
|
||||
* @brief Returns the number of micro seconds for the milli seconds value @a _ms.
|
||||
*/
|
||||
#define RTEMS_MILLISECONDS_TO_MICROSECONDS(_ms) ((uint32_t)(_ms) * 1000UL)
|
||||
#define RTEMS_MILLISECONDS_TO_MICROSECONDS(_ms) ((_ms) * 1000UL)
|
||||
|
||||
/**
|
||||
* @brief Returns the number of ticks for the milli seconds value @a _ms.
|
||||
|
||||
Reference in New Issue
Block a user