Skip to content

Commit

Permalink
Repair portb.7 toggle on Atmega2560
Browse files Browse the repository at this point in the history
  • Loading branch information
ckormanyos committed Dec 17, 2024
1 parent 9e98baf commit 47d9bbb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,11 @@ called `target avr` runs
on a classic ARDUINO(R) compatible board.
The program toggles the yellow LED on `portb.5`.

The MICROCHIP(R) [former ATMEL(R)] AVR(R) configuration
called `target atmega2560` runs
on the ARDUINO(R) MEGA compatible board.
The program toggles the orange LED on `portb.7`.

The MICROCHIP(R) [former ATMEL(R)] ATmega4809 configuration
called `target atmega4809` runs
on an ARDUINO(R) EVERY compatible board clocked
Expand Down
4 changes: 2 additions & 2 deletions ref_app/src/mcal/atmega2560/mcal_led.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////////
// Copyright Christopher Kormanyos 2007 - 2020.
// Copyright Christopher Kormanyos 2007 - 2024.
// Distributed under the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
Expand All @@ -13,7 +13,7 @@ mcal::led::led_base& mcal::led::led0()
using led0_port_type = mcal::port::port_pin<std::uint8_t,
std::uint8_t,
mcal::reg::portb,
UINT8_C(5)>;
UINT8_C(7)>;

using led0_led_type = mcal::led::led_port<led0_port_type>;

Expand Down
2 changes: 1 addition & 1 deletion ref_app/target/micros/atmega2560/make/atmega2560_flags.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
GCC_TARGET = avr
GCC_PREFIX = avr

GCC_VERSION = 14.1.0
GCC_VERSION = 14.2.0

TGT_SUFFIX = elf

Expand Down

0 comments on commit 47d9bbb

Please sign in to comment.