[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [bug #39008] Progmem macros do not work for TINY architec
From: |
Senthil Kumar Selvaraj |
Subject: |
[avr-libc-dev] [bug #39008] Progmem macros do not work for TINY architecture devices |
Date: |
Thu, 16 May 2013 12:39:59 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0 |
URL:
<http://savannah.nongnu.org/bugs/?39008>
Summary: Progmem macros do not work for TINY architecture
devices
Project: AVR C Runtime Library
Submitted by: saaadhu
Submitted on: Thu 16 May 2013 12:39:58 PM GMT
Category: Library
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Header files
Status: None
Percent Complete: 0%
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.8.0
Fixed Release: None
_______________________________________________________
Details:
The macros in pgmspace.h do not work for TINY devices (attiny10/20/40 etc.),
as they do not have any variant of the LPM instruction.
Instead, flash memory is mapped to data memory space at a certain offset, and
normal data memory load instructions can be used to read from flash.
The attached patch customizes the __LPM series of macros for __AVR_TINY__,
reimplementing them using plain LD, with the memory offset coming from a macro
(__AVR_TINY_PM_BASE_ADDRESS__) defined by the compiler.
Changelog
2013-05-16 Pitchumani Sivanupandi <address@hidden>
* include/avr/pgmspace.h: Customize and reimplement __LPM
macros for tiny architecture.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thu 16 May 2013 12:39:58 PM GMT Name: lpm_tiny.patch Size: 4kB By:
saaadhu
<http://savannah.nongnu.org/bugs/download.php?file_id=28096>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?39008>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avr-libc-dev] [bug #39008] Progmem macros do not work for TINY architecture devices,
Senthil Kumar Selvaraj <=