From: Xavier L. <Ba...@us...> - 2010-05-23 12:23:22
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "krobot". The branch, master has been updated via 3619e193e91c744894201e22dd4f4a2bcbdb5aed (commit) from 89ddd7a054b08aca0b9e46ae6807c072dd674117 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 3619e193e91c744894201e22dd4f4a2bcbdb5aed Author: Xavier Lagorce <Xav...@cr...> Date: Sun May 23 14:22:37 2010 +0200 More reasonable working area size Removed useless infinite loop ----------------------------------------------------------------------- Changes: diff --git a/elec/boards/MotherBoard_KrobotJr2010/Firmware/watch_adc.c b/elec/boards/MotherBoard_KrobotJr2010/Firmware/watch_adc.c index 96a8ce0..1946b3b 100644 --- a/elec/boards/MotherBoard_KrobotJr2010/Firmware/watch_adc.c +++ b/elec/boards/MotherBoard_KrobotJr2010/Firmware/watch_adc.c @@ -38,15 +38,13 @@ static void adccallback(adcsample_t *buffer, size_t n) { palSetPad(IOPORT3, GPIOC_LED); } -static WORKING_AREA(adc_continuous_wa, 2048); +static WORKING_AREA(adc_continuous_wa, 256); static msg_t adc_continuous_thread(void *p){ (void)p; - while(1) { - adcStartConversion(&ADCD1, &adcgrpcfg, samples, - ADC_GRP1_BUF_DEPTH, adccallback); - adcWaitConversion(&ADCD1, TIME_INFINITE); - } + adcStartConversion(&ADCD1, &adcgrpcfg, samples, + ADC_GRP1_BUF_DEPTH, adccallback); + adcWaitConversion(&ADCD1, TIME_INFINITE); return 0; } hooks/post-receive -- krobot |