File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ extern "C" {
26
26
/** Tick Counter united by ms */
27
27
static volatile uint32_t _ulTickCount = 0 ;
28
28
29
- uint32_t millis ( void )
29
+ unsigned long millis ( void )
30
30
{
31
31
// todo: ensure no interrupts
32
32
return _ulTickCount ;
@@ -36,7 +36,7 @@ uint32_t millis( void )
36
36
// Theory: repeatedly take readings of SysTick counter, millis counter and SysTick interrupt pending flag.
37
37
// When it appears that millis counter and pending is stable and SysTick hasn't rolled over, use these
38
38
// values to calculate micros. If there is a pending SysTick, add one to the millis counter in the calculation.
39
- uint32_t micros ( void )
39
+ unsigned long micros ( void )
40
40
{
41
41
uint32_t ticks , ticks2 ;
42
42
uint32_t pend , pend2 ;
@@ -61,7 +61,7 @@ uint32_t micros( void )
61
61
// a runtime multiplication and shift, saving a few cycles
62
62
}
63
63
64
- void delay ( uint32_t ms )
64
+ void delay ( unsigned long ms )
65
65
{
66
66
if ( ms == 0 )
67
67
{
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ extern "C" {
33
33
*
34
34
* \return Number of milliseconds since the program started (uint32_t)
35
35
*/
36
- extern uint32_t millis ( void ) ;
36
+ extern unsigned long millis ( void ) ;
37
37
38
38
/**
39
39
* \brief Returns the number of microseconds since the Arduino board began running the current program.
@@ -45,23 +45,23 @@ extern uint32_t millis( void ) ;
45
45
*
46
46
* \note There are 1,000 microseconds in a millisecond and 1,000,000 microseconds in a second.
47
47
*/
48
- extern uint32_t micros ( void ) ;
48
+ extern unsigned long micros ( void ) ;
49
49
50
50
/**
51
51
* \brief Pauses the program for the amount of time (in miliseconds) specified as parameter.
52
52
* (There are 1000 milliseconds in a second.)
53
53
*
54
54
* \param dwMs the number of milliseconds to pause (uint32_t)
55
55
*/
56
- extern void delay ( uint32_t dwMs ) ;
56
+ extern void delay ( unsigned long dwMs ) ;
57
57
58
58
/**
59
59
* \brief Pauses the program for the amount of time (in microseconds) specified as parameter.
60
60
*
61
61
* \param dwUs the number of microseconds to pause (uint32_t)
62
62
*/
63
- static __inline__ void delayMicroseconds ( uint32_t ) __attribute__((always_inline , unused )) ;
64
- static __inline__ void delayMicroseconds ( uint32_t usec )
63
+ static __inline__ void delayMicroseconds ( unsigned int ) __attribute__((always_inline , unused )) ;
64
+ static __inline__ void delayMicroseconds ( unsigned int usec )
65
65
{
66
66
if ( usec == 0 )
67
67
{
You can’t perform that action at this time.
0 commit comments