applies clang--format
This commit is contained in:
@@ -15,15 +15,17 @@
|
||||
#include "platform.h"
|
||||
|
||||
#define TICKNUM_PER_SECOND 32768
|
||||
#define TICKNUM_PER_TIMER (TICKNUM_PER_SECOND / 100) // ~ 1ms timer
|
||||
#define TICKNUM_PER_TIMER (TICKNUM_PER_SECOND / 100) // ~ 1ms timer
|
||||
|
||||
static inline int hwtimer_init(void) {
|
||||
static inline int hwtimer_init(void)
|
||||
{
|
||||
uint64_t time = get_aclint_mtime(aclint);
|
||||
set_aclint_mtimecmp(aclint, time + TICKNUM_PER_TIMER);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int hwtimer_handler(void) {
|
||||
static inline int hwtimer_handler(void)
|
||||
{
|
||||
uint64_t time = get_aclint_mtime(aclint);
|
||||
set_aclint_mtimecmp(aclint, time + TICKNUM_PER_TIMER);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user