feat: special function to push customisable switches (#5497)
Co-authored-by: philmoz <phil.a.mitchell@gmail.com> Co-authored-by: elecpower <elecpower@users.noreply.github.com>
This commit is contained in:
co-authored by
philmoz
elecpower
parent
40449bf730
commit
d417228677
@@ -26,7 +26,10 @@
|
||||
#define SYSTEM_TICKS_1US ((CPU_FREQ + 500000) / 1000000)
|
||||
#define SYSTEM_TICKS_01US ((CPU_FREQ + 5000000) / 10000000)
|
||||
|
||||
#define ticksNow() ((uint32_t)(DWT->CYCCNT))
|
||||
uint32_t ticksNow()
|
||||
{
|
||||
return ((uint32_t)(DWT->CYCCNT));
|
||||
}
|
||||
|
||||
void delaysInit()
|
||||
{
|
||||
|
||||
@@ -28,4 +28,5 @@ EXTERN_C(void delaysInit());
|
||||
EXTERN_C(void delay_01us(uint32_t count));
|
||||
EXTERN_C(void delay_us(uint32_t count));
|
||||
EXTERN_C(void delay_ms(uint32_t count));
|
||||
EXTERN_C(uint32_t ticksNow());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user