Skip to content

Commit 502cce0

Browse files
committed
Update avr-libc module
1 parent bcc99d5 commit 502cce0

File tree

6 files changed

+111
-95
lines changed

6 files changed

+111
-95
lines changed

avr-libc/ChangeLog

+3-92
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,4 @@
1-
2017-08-18 basil
1+
2020-10-10 Joerg Wunsch <[email protected]>
22

3-
Fix for bug #51755: iotn441.h & iotn841.h missing definitions for PUEA[0-7] and PUEB[0-3]
4-
* include/avr/iotn441.h: Add defines for PUEA[0-7] and PUEB[0-3]
5-
* include/avr/iotn841.h: Likewise.
6-
7-
2017-07-05 Georg-Johann Lay <[email protected]>
8-
9-
patch #9400: Add multilib support for avrxmega3 + avrxmega3/short-calls.
10-
* configure.ac (CHECK_AVR_DEVICE): Add one for avrxmega3.
11-
(AM_CONDITIONAL): Add one for HAS_avrxmega3.
12-
(AC_CONFIG_FILES): Add avr/lib/avrxmega3/Makefile,
13-
avr/lib/avrxmega3/short-calls/Makefile.
14-
* devtools/gen-avr-lib-tree.sh (CFLAGS_SHORT_CALLS): New.
15-
(AVRXMEGA3_DEV_INFO): New.
16-
(AVRXMEGA3SC_DEV_INFO): New.
17-
(AVR_ARH_INFO): Add entries avrxmega3, avrxmega3/short-calls.
18-
* include/avr/pgmspace.h (__AVR_HAVE_RAMPD__): Fix comment.
19-
20-
2017-06-16 Joerg Wunsch <[email protected]>
21-
22-
* doc/api/faq.dox (faq_reg_usage): Document differences for
23-
AVR_TINY architecture.
24-
25-
2017-06-11 Joerg Wunsch <[email protected]>
26-
27-
Submitted by Georg-Johann Lay:
28-
patch #9187: [AVR_TINY]: Support 16-bit xtoa functons and more string functions.
29-
* common/asmdef.h (X_sbiw): New asm macro.
30-
* common/macros.inc (X_sbiw): New asm macro.
31-
* libc/misc/itoa.S: Don't restrict to !AVR_TINY.
32-
* libc/misc/itoa_ncheck.S: Same.
33-
* libc/misc/utoa.S: Same.
34-
* libc/misc/utoa_ncheck.S: Same. And use X_sbiw instead of sbiw.
35-
* libc/string/strlcat.S: Same.
36-
* libc/string/strncat.S: Same.
37-
* libc/string/strrev.S: Same.
38-
* libc/string/strrchr.S: Same.
39-
* libc/string/memchr.S: Don't restrict to !AVR_TINY.
40-
[AVR_TINY]: Use "ld __tmp_reg__,-R" instead of "sbiw R,1".
41-
* libc/string/strcat.S: Same.
42-
* libc/string/strchr.S: Same.
43-
* libc/string/memrchr.S: Don't restrict to !AVR_TINY.
44-
(r0): Use __tmp_reg__ instead.
45-
(adiw ZL,0): Use X_sbiw ZL,0 for comparison against 0 instead.
46-
* libc/string/strchrnul.S: Don't restrict to !AVR_TINY.
47-
(r0): Use __tmp_reg__ instead.
48-
[AVR_TINY]: Use "ld __tmp_reg__,-R" instead of "sbiw R,1".
49-
* libc/string/strpbrk.S: Same.
50-
* libc/string/strstr.S: Don't restrict to !AVR_TINY.
51-
Use X_sbiw instead of sbiw.
52-
(chr2): Define to __tmp_reg__ instead of to r0.
53-
* libc/string/strtok_r.S: Don't restrict to !AVR_TINY.
54-
Use X_sbiw instead of sbiw.
55-
(dch) [AVR_TINY]: Push / pop r18 around function.
56-
[AVR_TINY]: Use "ld __tmp_reg__,R+" instead of "adiw R,1".
57-
58-
2017-06-11 Joerg Wunsch <[email protected]>
59-
60-
Submitted by Britton Kerin:
61-
patch #8650: another small doc fix in atomic.h
62-
* include/util/atomic.h: Improve documentation.
63-
64-
2017-06-11 Joerg Wunsch <[email protected]>
65-
66-
Submitted by Britton Kerin:
67-
patch #8649: small documentation fixes in
68-
* include/util/atomic.h: Improve documentation.
69-
70-
2017-06-11 Joerg Wunsch <[email protected]>
71-
72-
Submitted by Karol Babioch:
73-
patch #8536: Fix a typo within <stdio.h>
74-
* include/stdio.h: Fix small typo.
75-
76-
2017-06-11 Joerg Wunsch <[email protected]>
77-
78-
Submitted by Georg-Johann Lay:
79-
patch #8729: [avr/interrupt.h] Add ISR_NOICF, ISR_FLATTEN. Fix namespace of identifiers.
80-
* include/avr/interrupt.h: Add ISR_NOICF, ISR_FLATTEN
81-
82-
2017-03-31 Joerg Wunsch <[email protected]>
83-
84-
* include/util/eu_dst.h: Fix reversed DST decision logic for March
85-
and October.
86-
87-
2017-03-07 Pitchumani Sivanupandi <[email protected]>
88-
89-
Fix for bug #50439: avr/iom32u4.h does not define PRTIM4
90-
* include/avr/iom16u4.h (PRTIM4): Define.
91-
(__AVR_HAVE_PRR1): Update definition.
92-
(__AR_HAVE_PRR1_PRTIM4): Define.
93-
* include/avr/iom33u4.h: Likewise.
3+
Submitted by Yuriy M. Kaminskiy:
4+
* include/util/delay.h.in: Add missing return statement

avr-libc/ChangeLog-2017

+93
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
2017-08-18 basil
2+
3+
Fix for bug #51755: iotn441.h & iotn841.h missing definitions for PUEA[0-7] and PUEB[0-3]
4+
* include/avr/iotn441.h: Add defines for PUEA[0-7] and PUEB[0-3]
5+
* include/avr/iotn841.h: Likewise.
6+
7+
2017-07-05 Georg-Johann Lay <[email protected]>
8+
9+
patch #9400: Add multilib support for avrxmega3 + avrxmega3/short-calls.
10+
* configure.ac (CHECK_AVR_DEVICE): Add one for avrxmega3.
11+
(AM_CONDITIONAL): Add one for HAS_avrxmega3.
12+
(AC_CONFIG_FILES): Add avr/lib/avrxmega3/Makefile,
13+
avr/lib/avrxmega3/short-calls/Makefile.
14+
* devtools/gen-avr-lib-tree.sh (CFLAGS_SHORT_CALLS): New.
15+
(AVRXMEGA3_DEV_INFO): New.
16+
(AVRXMEGA3SC_DEV_INFO): New.
17+
(AVR_ARH_INFO): Add entries avrxmega3, avrxmega3/short-calls.
18+
* include/avr/pgmspace.h (__AVR_HAVE_RAMPD__): Fix comment.
19+
20+
2017-06-16 Joerg Wunsch <[email protected]>
21+
22+
* doc/api/faq.dox (faq_reg_usage): Document differences for
23+
AVR_TINY architecture.
24+
25+
2017-06-11 Joerg Wunsch <[email protected]>
26+
27+
Submitted by Georg-Johann Lay:
28+
patch #9187: [AVR_TINY]: Support 16-bit xtoa functons and more string functions.
29+
* common/asmdef.h (X_sbiw): New asm macro.
30+
* common/macros.inc (X_sbiw): New asm macro.
31+
* libc/misc/itoa.S: Don't restrict to !AVR_TINY.
32+
* libc/misc/itoa_ncheck.S: Same.
33+
* libc/misc/utoa.S: Same.
34+
* libc/misc/utoa_ncheck.S: Same. And use X_sbiw instead of sbiw.
35+
* libc/string/strlcat.S: Same.
36+
* libc/string/strncat.S: Same.
37+
* libc/string/strrev.S: Same.
38+
* libc/string/strrchr.S: Same.
39+
* libc/string/memchr.S: Don't restrict to !AVR_TINY.
40+
[AVR_TINY]: Use "ld __tmp_reg__,-R" instead of "sbiw R,1".
41+
* libc/string/strcat.S: Same.
42+
* libc/string/strchr.S: Same.
43+
* libc/string/memrchr.S: Don't restrict to !AVR_TINY.
44+
(r0): Use __tmp_reg__ instead.
45+
(adiw ZL,0): Use X_sbiw ZL,0 for comparison against 0 instead.
46+
* libc/string/strchrnul.S: Don't restrict to !AVR_TINY.
47+
(r0): Use __tmp_reg__ instead.
48+
[AVR_TINY]: Use "ld __tmp_reg__,-R" instead of "sbiw R,1".
49+
* libc/string/strpbrk.S: Same.
50+
* libc/string/strstr.S: Don't restrict to !AVR_TINY.
51+
Use X_sbiw instead of sbiw.
52+
(chr2): Define to __tmp_reg__ instead of to r0.
53+
* libc/string/strtok_r.S: Don't restrict to !AVR_TINY.
54+
Use X_sbiw instead of sbiw.
55+
(dch) [AVR_TINY]: Push / pop r18 around function.
56+
[AVR_TINY]: Use "ld __tmp_reg__,R+" instead of "adiw R,1".
57+
58+
2017-06-11 Joerg Wunsch <[email protected]>
59+
60+
Submitted by Britton Kerin:
61+
patch #8650: another small doc fix in atomic.h
62+
* include/util/atomic.h: Improve documentation.
63+
64+
2017-06-11 Joerg Wunsch <[email protected]>
65+
66+
Submitted by Britton Kerin:
67+
patch #8649: small documentation fixes in
68+
* include/util/atomic.h: Improve documentation.
69+
70+
2017-06-11 Joerg Wunsch <[email protected]>
71+
72+
Submitted by Karol Babioch:
73+
patch #8536: Fix a typo within <stdio.h>
74+
* include/stdio.h: Fix small typo.
75+
76+
2017-06-11 Joerg Wunsch <[email protected]>
77+
78+
Submitted by Georg-Johann Lay:
79+
patch #8729: [avr/interrupt.h] Add ISR_NOICF, ISR_FLATTEN. Fix namespace of identifiers.
80+
* include/avr/interrupt.h: Add ISR_NOICF, ISR_FLATTEN
81+
82+
2017-03-31 Joerg Wunsch <[email protected]>
83+
84+
* include/util/eu_dst.h: Fix reversed DST decision logic for March
85+
and October.
86+
87+
2017-03-07 Pitchumani Sivanupandi <[email protected]>
88+
89+
Fix for bug #50439: avr/iom32u4.h does not define PRTIM4
90+
* include/avr/iom16u4.h (PRTIM4): Define.
91+
(__AVR_HAVE_PRR1): Update definition.
92+
(__AR_HAVE_PRR1_PRTIM4): Define.
93+
* include/avr/iom33u4.h: Likewise.

avr-libc/ChangeLog-2018

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2018-06-29 Pitchumani Sivanupandi <[email protected]>
2+
3+
Patch #9659: Update eeprom_is_ready for avrxmega3 devices
4+
* include/avr/eeprom.h (eeprom_is_ready): Replace xmega specific definition
5+
with NVM control register based definition as the names are not same for
6+
all xmega devices.
7+

avr-libc/NEWS

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
[#50439] avr/iom32u4.h does not define PRTIM4
2020
[#51755] iotn441.h & iotn841.h missing definitions for PUEA[0-7] and PUEB[0-3]
2121
[no-id] util/eu_dst.h: fix reversed DST decision logic for March and October
22+
[no-id] util/delay.h.in: add missing return
2223

2324
* New devices supported:
2425

@@ -34,6 +35,7 @@
3435
[#8649] small documentation fixes in
3536
[#9187] [AVR_TINY]: Support 16-bit xtoa functons and more string functions.
3637
[#9400] Add avrxmega3 multilibs
38+
[#9659] Update eeprom_is_ready for avrxmega3 devices
3739

3840
* Other changes:
3941

avr-libc/include/avr/eeprom.h

+4-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
3131
POSSIBILITY OF SUCH DAMAGE. */
3232

33-
/* $Id: eeprom.h 2468 2015-02-25 12:53:38Z pitchumani $ */
33+
/* $Id: eeprom.h 2548 2018-06-29 06:38:56Z pitchumani $ */
3434

3535
#ifndef _AVR_EEPROM_H_
3636
#define _AVR_EEPROM_H_ 1
@@ -112,8 +112,10 @@ extern "C" {
112112
*/
113113
#if defined (__DOXYGEN__)
114114
# define eeprom_is_ready()
115-
#elif defined (__AVR_XMEGA__) && __AVR_XMEGA__
115+
#elif defined (NVM_STATUS)
116116
# define eeprom_is_ready() bit_is_clear (NVM_STATUS, NVM_NVMBUSY_bp)
117+
#elif defined (NVMCTRL_STATUS)
118+
# define eeprom_is_ready() bit_is_clear (NVMCTRL_STATUS, NVMCTRL_EEBUSY_bp)
117119
#elif defined (DEECR)
118120
# define eeprom_is_ready() bit_is_clear (DEECR, BSY)
119121
#elif defined (EEPE)

avr-libc/include/util/delay.h.in

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
3131
POSSIBILITY OF SUCH DAMAGE. */
3232

33-
/* $Id: delay.h.in 2506 2016-02-08 10:05:45Z joerg_wunsch $ */
33+
/* $Id: delay.h.in 2551 2020-10-10 20:33:35Z joerg_wunsch $ */
3434

3535
#ifndef _UTIL_DELAY_H_
3636
#define _UTIL_DELAY_H_ 1
@@ -285,6 +285,7 @@ _delay_us(double __us)
285285
else if (__tmp2 > 65535)
286286
{
287287
_delay_ms(__us / 1000.0);
288+
return;
288289
}
289290
else if (__tmp > 255)
290291
{

0 commit comments

Comments
 (0)