From ef75851d109f9b1bd106c0140548300fce631906 Mon Sep 17 00:00:00 2001 From: tfateba Date: Tue, 1 Nov 2016 02:04:43 +0000 Subject: Fixed small ident, readme file and Makefile. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9896 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/common/ports/AVR/compilers/GCC/chtypes.h | 2 +- os/hal/ports/AVR/hal_adc_lld.h | 2 +- testhal/AVR/ADC/Makefile | 10 +++------- testhal/AVR/ADC/readme.txt | 10 +++++----- 4 files changed, 10 insertions(+), 14 deletions(-) diff --git a/os/common/ports/AVR/compilers/GCC/chtypes.h b/os/common/ports/AVR/compilers/GCC/chtypes.h index 9b3217607..346968bf0 100644 --- a/os/common/ports/AVR/compilers/GCC/chtypes.h +++ b/os/common/ports/AVR/compilers/GCC/chtypes.h @@ -68,7 +68,7 @@ typedef uint8_t eventmask_t; /**< Mask of event identifiers. */ typedef uint8_t eventflags_t; /**< Mask of event flags. */ typedef int8_t cnt_t; /**< Generic signed counter. */ typedef uint8_t ucnt_t; /**< Generic unsigned counter. */ -typedef bool bool_t; /**< Fast boolean type. */ +typedef bool bool_t; /**< Fast boolean type. */ /** @} */ /** diff --git a/os/hal/ports/AVR/hal_adc_lld.h b/os/hal/ports/AVR/hal_adc_lld.h index 219fd9d0b..8e2231724 100644 --- a/os/hal/ports/AVR/hal_adc_lld.h +++ b/os/hal/ports/AVR/hal_adc_lld.h @@ -152,7 +152,7 @@ struct ADCDriver { /** * @brief Mutex protecting the peripheral. */ - mutex_t mutex; + mutex_t mutex; #elif CH_CFG_USE_SEMAPHORES Semaphore semaphore; #endif diff --git a/testhal/AVR/ADC/Makefile b/testhal/AVR/ADC/Makefile index 994c8bf7e..b1b164e80 100644 --- a/testhal/AVR/ADC/Makefile +++ b/testhal/AVR/ADC/Makefile @@ -73,13 +73,9 @@ SRC = $(KERNSRC) \ $(HALSRC) \ $(PLATFORMSRC) \ $(BOARDSRC) \ - $(STREAMSSRC) \ - $(CHIBIOS)/os/various/evtimer.c \ - main.c - -#ip_motor.c \ -#ip_ext.c \ -#ip_adc.c \ # Add the support of A8-A15 on arduino Mega board. + $(STREAMSSRC) \ + $(CHIBIOS)/os/various/evtimer.c \ + main.c # List C++ source files here. (C dependencies are automatically generated.) CPPSRC = diff --git a/testhal/AVR/ADC/readme.txt b/testhal/AVR/ADC/readme.txt index 401929187..55961af08 100644 --- a/testhal/AVR/ADC/readme.txt +++ b/testhal/AVR/ADC/readme.txt @@ -1,5 +1,5 @@ ***************************************************************************** -** ChibiOS/RT I2C test on Atmel AVR ATmega1280. ** +** ChibiOS/RT ADC test on Atmel AVR ATmega2560. ** ***************************************************************************** ** TARGET ** @@ -8,10 +8,10 @@ The test demo runs on an Arduino Mega board. ** The Demo ** -This test blinks the onboard LED and also writes/reads to a 24C64 connected -to the I2C pins (PD0/PD1 on the ATmega1280). There's no feedback provided but -the I2C can easily be analyzed with any logic analyzer or sniffing with a -buspirate or similar device. +This test blinks the onboard LED and also prints the result of the ADC +conversion to the Serial0. A voltmeter can be use to compare the printed +value to the value on pin A0 of the arduino board. To make this test, a +potentiometer is connected to the pin A0 of the board. ** Build Procedure ** -- cgit v1.2.3