better location for CORE_CLOCK
This commit is contained in:
parent
22d91e63c7
commit
ddfee50ab6
|
@ -28,6 +28,9 @@
|
|||
#ifndef _CHCONF_H_
|
||||
#define _CHCONF_H_
|
||||
|
||||
// todo: access some existing configuration field
|
||||
#define CORE_CLOCK 168000000
|
||||
|
||||
#define _CHIBIOS_RT_CONF_
|
||||
|
||||
#define PORT_IDLE_THREAD_STACK_SIZE 1024
|
||||
|
|
|
@ -28,6 +28,9 @@
|
|||
#ifndef CHCONF_H
|
||||
#define CHCONF_H
|
||||
|
||||
// todo: access some existing configuration field
|
||||
#define CORE_CLOCK 168000000
|
||||
|
||||
#define _CHIBIOS_RT_CONF_
|
||||
|
||||
#if !defined(EFI_CLOCK_LOCKS) || defined(__DOXYGEN__)
|
||||
|
|
|
@ -115,11 +115,9 @@ int getRemainingStack(thread_t *otp);
|
|||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
// todo: access some existing configuration field
|
||||
#define CORE_CLOCK 168000000
|
||||
|
||||
// 168 ticks in microsecond
|
||||
#define US_TO_NT_MULTIPLIER 168
|
||||
#define US_TO_NT_MULTIPLIER (CORE_CLOCK / 1000000)
|
||||
|
||||
/**
|
||||
* converts efitimeus_t to efitick_t
|
||||
|
|
Loading…
Reference in New Issue