diff options
author | iperry <iperry@749a229e-a60e-11de-b98f-4500b42dc123> | 2009-12-25 08:39:24 +0000 |
---|---|---|
committer | iperry <iperry@749a229e-a60e-11de-b98f-4500b42dc123> | 2009-12-25 08:39:24 +0000 |
commit | b6674cd738cc22e61ea34cb659750ef45ce01df4 (patch) | |
tree | bfee2ae84883c32871ee13a6e0f346f144263cf6 /src/lib/systick.h | |
parent | 3bb04834ffd3f90dc9015997ea11a56d9d150099 (diff) | |
download | librambutan-b6674cd738cc22e61ea34cb659750ef45ce01df4.tar.gz librambutan-b6674cd738cc22e61ea34cb659750ef45ce01df4.zip |
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
Diffstat (limited to 'src/lib/systick.h')
-rw-r--r-- | src/lib/systick.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |