Implement etimer callback
This commit is contained in:
parent
c043a00bb4
commit
0232e6c9dc
8 changed files with 47 additions and 11 deletions
|
@ -42,12 +42,13 @@
|
|||
#define CONTIKI_CONF_H_
|
||||
|
||||
#include "rv32def.h"
|
||||
#include "icosoc.h"
|
||||
|
||||
/* Platform name, type, and MCU clock rate */
|
||||
#define PLATFORM_NAME "PicoRV32-icoboard"
|
||||
#define PLATFORM_TYPE PICORV32
|
||||
#ifndef F_CPU
|
||||
#define F_CPU 2000000ULL
|
||||
#define F_CPU (ICOSOC_CLOCK_FREQ_HZ)
|
||||
#endif
|
||||
|
||||
/* Clock ticks per second, our timer runs with cpu freq */
|
||||
|
|
|
@ -114,6 +114,7 @@ uint16_t *p=&__bss_end;
|
|||
} while (p<SP-10); //don't overwrite our own stack
|
||||
}
|
||||
#endif
|
||||
clock_init();
|
||||
|
||||
PRINTA("\n*******Booting %s*******\n",CONTIKI_VERSION_STRING);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue