Add clock_delay_us and clock_set_seconds to clock.h. Modify clock_wait to use clock_time_t.
Remove the troublesome avr/dev/delay.* files. Add PLATFORM_NAME and combine the confusing *_REVISION defines into a single PLATFORM_TYPE
This commit is contained in:
parent
ea667cef2d
commit
cac4e9a222
39 changed files with 810 additions and 481 deletions
|
@ -46,6 +46,7 @@
|
|||
#include "dev/stm32w_systick.h"
|
||||
|
||||
#include "contiki.h"
|
||||
#include "sys/clock.h"
|
||||
|
||||
#include "uart1.h"
|
||||
#include "dev/leds.h"
|
||||
|
@ -122,7 +123,7 @@ void clock_delay(unsigned int i)
|
|||
* Wait for a multiple of 1 ms.
|
||||
*
|
||||
*/
|
||||
void clock_wait(int i)
|
||||
void clock_wait(clock_timt_t i)
|
||||
{
|
||||
clock_time_t start;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue