ChibiOS/testhal/AVR/MEGA/PWM
Theodore Ateba 2bd9de7041 AVR: Update all configuration files of testhal to avoid the error CH_DBG_TRACE_MASK not defined in chconf.h
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11155 35acf78f-673a-0410-8e92-d51de3d6d3f4
2017-12-21 09:16:17 +00:00
..
Makefile AVR: Correct the email address on all makefile. 2017-11-16 22:11:26 +00:00
chconf.h AVR: Update all configuration files of testhal to avoid the error CH_DBG_TRACE_MASK not defined in chconf.h 2017-12-21 09:16:17 +00:00
halconf.h Re-alignment of all halconf.h files. 2017-10-22 13:34:38 +00:00
main.c Add a specific directory for AVR MEGA in the testhal. 2017-08-16 06:39:57 +00:00
mcuconf.h Add a specific directory for AVR MEGA in the testhal. 2017-08-16 06:39:57 +00:00
readme.txt Add a specific directory for AVR MEGA in the testhal. 2017-08-16 06:39:57 +00:00

readme.txt

*****************************************************************************
** ChibiOS/RT and NIL PWM demos for Atmel AVR ATmega1280.                  **
*****************************************************************************

** TARGET **

The demo runs on an Arduino Mega board.

** The Demo **

This demo creates three PWM channels on pins PB5, PB6 and PB7. Each channel uses
a different duty cycle with PB7 having a duty cycle of 50%, PB6 a duty cycle of
25% and PB5 a duty cycle of 75%. Since the LED is connected to PB7 on the Arduino
Mega, it can be seen flashing in high speed.

** Build Procedure **

The demo was built using the GCC AVR toolchain.
To build linking with ChibiOS:

$ make -f Makefile.ch

To build linking with NIL:

$ make -f Makefile.nil

** Notes **

This demo runs natively so the Arduino bootloader must be removed and the FUSEs
reprogrammed. The values used for fuses are LFUSE=0xe7 and HFUSE=0x99.