summaryrefslogtreecommitdiff
path: root/src/core/ao_sample_profile.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-08-28 21:54:31 -0600
committerKeith Packard <keithp@keithp.com>2013-08-28 21:54:31 -0600
commit44d4c66b21d6b5a0c656fdff6d01ef1d125c1101 (patch)
tree5c9ea48e92fd877eb6cc0db8d29b43182639f492 /src/core/ao_sample_profile.c
parent39475c7b8da4f29936f73ffa2bff112f50ee9328 (diff)
altos: Update time for next alarm each time a task is added
Adding a task with a sooner timeout than existing alarm tasks was not correctly updating the time to fire the next alarm, causing tasks to be delayed by the wrong amount. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao_sample_profile.c')
-rw-r--r--src/core/ao_sample_profile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/ao_sample_profile.c b/src/core/ao_sample_profile.c
index 1d9ed414..e682bd98 100644
--- a/src/core/ao_sample_profile.c
+++ b/src/core/ao_sample_profile.c
@@ -20,15 +20,15 @@
#include <ao_task.h>
#ifndef AO_SAMPLE_PROFILE_LOW_PC
-#define AO_SAMPLE_PROFILE_LOW_PC 0x08000000
+#define AO_SAMPLE_PROFILE_LOW_PC 0x08002000
#endif
#ifndef AO_SAMPLE_PROFILE_HIGH_PC
-#define AO_SAMPLE_PROFILE_HIGH_PC (AO_SAMPLE_PROFILE_LOW_PC + 44 * 1024)
+#define AO_SAMPLE_PROFILE_HIGH_PC 0x08003000
#endif
#ifndef AO_SAMPLE_PROFILE_SHIFT
-#define AO_SAMPLE_PROFILE_SHIFT 6
+#define AO_SAMPLE_PROFILE_SHIFT 3
#endif
#define AO_SAMPLE_PROFILE_RANGE (AO_SAMPLE_PROFILE_HIGH_PC - AO_SAMPLE_PROFILE_LOW_PC)