From b6674cd738cc22e61ea34cb659750ef45ce01df4 Mon Sep 17 00:00:00 2001 From: iperry Date: Fri, 25 Dec 2009 08:39:24 +0000 Subject: Fixed delayMicroseconds, changed serial interface, added an (untested) runtime check for pwm/serial collision, moved more headers around. git-svn-id: https://leaflabs.googlecode.com/svn/trunk/library@79 749a229e-a60e-11de-b98f-4500b42dc123 --- src/lib/systick.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/systick.h') diff --git a/src/lib/systick.h b/src/lib/systick.h index 3d846ef..61789c4 100644 --- a/src/lib/systick.h +++ b/src/lib/systick.h @@ -51,7 +51,7 @@ extern "C"{ void systick_init(void); static inline uint32_t systick_get_count(void) { - return (uint32_t)SYSTICK_CNT; + return (uint32_t)*(volatile uint32*)SYSTICK_CNT; } #ifdef __cplusplus -- cgit v1.2.3