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
This commit is contained in:
tfateba 2016-11-01 02:04:43 +00:00
parent 4600e6fc46
commit ef75851d10
4 changed files with 10 additions and 14 deletions

View File

@ -68,7 +68,7 @@ typedef uint8_t eventmask_t; /**< Mask of event identifiers. */
typedef uint8_t eventflags_t; /**< Mask of event flags. */ typedef uint8_t eventflags_t; /**< Mask of event flags. */
typedef int8_t cnt_t; /**< Generic signed counter. */ typedef int8_t cnt_t; /**< Generic signed counter. */
typedef uint8_t ucnt_t; /**< Generic unsigned counter. */ typedef uint8_t ucnt_t; /**< Generic unsigned counter. */
typedef bool bool_t; /**< Fast boolean type. */ typedef bool bool_t; /**< Fast boolean type. */
/** @} */ /** @} */
/** /**

View File

@ -152,7 +152,7 @@ struct ADCDriver {
/** /**
* @brief Mutex protecting the peripheral. * @brief Mutex protecting the peripheral.
*/ */
mutex_t mutex; mutex_t mutex;
#elif CH_CFG_USE_SEMAPHORES #elif CH_CFG_USE_SEMAPHORES
Semaphore semaphore; Semaphore semaphore;
#endif #endif

View File

@ -73,13 +73,9 @@ SRC = $(KERNSRC) \
$(HALSRC) \ $(HALSRC) \
$(PLATFORMSRC) \ $(PLATFORMSRC) \
$(BOARDSRC) \ $(BOARDSRC) \
$(STREAMSSRC) \ $(STREAMSSRC) \
$(CHIBIOS)/os/various/evtimer.c \ $(CHIBIOS)/os/various/evtimer.c \
main.c main.c
#ip_motor.c \
#ip_ext.c \
#ip_adc.c \ # Add the support of A8-A15 on arduino Mega board.
# List C++ source files here. (C dependencies are automatically generated.) # List C++ source files here. (C dependencies are automatically generated.)
CPPSRC = CPPSRC =

View File

@ -1,5 +1,5 @@
***************************************************************************** *****************************************************************************
** ChibiOS/RT I2C test on Atmel AVR ATmega1280. ** ** ChibiOS/RT ADC test on Atmel AVR ATmega2560. **
***************************************************************************** *****************************************************************************
** TARGET ** ** TARGET **
@ -8,10 +8,10 @@ The test demo runs on an Arduino Mega board.
** The Demo ** ** The Demo **
This test blinks the onboard LED and also writes/reads to a 24C64 connected This test blinks the onboard LED and also prints the result of the ADC
to the I2C pins (PD0/PD1 on the ATmega1280). There's no feedback provided but conversion to the Serial0. A voltmeter can be use to compare the printed
the I2C can easily be analyzed with any logic analyzer or sniffing with a value to the value on pin A0 of the arduino board. To make this test, a
buspirate or similar device. potentiometer is connected to the pin A0 of the board.
** Build Procedure ** ** Build Procedure **