git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5490 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2013-03-22 15:00:22 +00:00
parent d70f051271
commit b1c1f94d4a
1 changed files with 3 additions and 2 deletions

View File

@ -53,7 +53,7 @@ void adcerrorcallback(ADCDriver *adcp, adcerror_t err) {
} }
/* /*
* Red LEDs blinker thread, times are in milliseconds. * LED blinker thread, times are in milliseconds.
*/ */
static WORKING_AREA(waThread1, 128); static WORKING_AREA(waThread1, 128);
static msg_t Thread1(void *arg) { static msg_t Thread1(void *arg) {
@ -107,7 +107,8 @@ int main(void) {
adcStartConversion(&ADCD3, &adcgrpcfg2, samples2, ADC_GRP2_BUF_DEPTH); adcStartConversion(&ADCD3, &adcgrpcfg2, samples2, ADC_GRP2_BUF_DEPTH);
/* /*
* Normal main() thread activity, in this demo it does nothing. * Normal main() thread activity, once the button is pressed the ADC
* conversion is stopped.
*/ */
while (TRUE) { while (TRUE) {
if (palReadPad(PORT11, P11_BUTTON1)) { if (palReadPad(PORT11, P11_BUTTON1)) {