Skip to content

Commit

Permalink
Update changelog, fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
SpenceKonde committed Oct 9, 2023
1 parent 257121b commit c446e9e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 6,430 deletions.
13 changes: 6 additions & 7 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,19 @@ These items are in addition to what was listed under changes already in release.
* Enhancement: AVRdude 7.2 should be out soon. That will be used in the first release after it is available.
* Bugfix: Make serialupdi work with EA.
* Enhancement: Implement sleep library
* Re-add SPI attach and detach.
* Ensure libraries in sync with DxCore.

## Planned changes implemented in github
These are typically planned for release in a future version (usually the next one) as noted.
* Doc enhancement. EB part specific pages and timer reference updated to reflect what isknown about the available options
* Re-add SPI attach and detach.
* Add contributed variation on the latch no seq example.

## Releases

### 1.5.11 (Emergency fix)
* At some point in the recent past, I must have angered the gods of C, and suddenly millis disabled stopped working - the system would hang (actually, with in-depth investigation, it was shown to be bootlooping - before it called init(), it was calling 0x0000 (a dirty reset) instead of eliding a weakly defined function with nothing in the body except a return, or with an empty body. Why was it doing this? And why only when millis was disabled?). millis disabled is a key piece of core functionality, necessitating an urgent fix. Moving the definitions into main.cpp resolved this issue.
* Critical PWM bug on DA and DB returned and made all TCA and TCD PWM fail to operate.
* Comparator voltage reference table was incorrect, so unexpected behavior was observed when selecting most references.
* Azduino7b1 toolchain version to fix bad power.h and eeprom.h. 7a was never released and was windows-only fix to the package files which had extra files included, 7b was the fix that also corrected the two builtin headers, but specified the crc for 7a, and could not be installed. 7b1 simply corrects that, but you can't take things out of the json file, only add them.
* At some point in the recent past, I must have angered the gods of C, and suddenly millis disabled stopped working - the system would hang (actually, with in-depth investigation, it was shown to be bootlooping - before it called init(), it was calling 0x0000 (a dirty reset) instead of eliding a weakly defined function with nothing in the body except a return, or with an empty body. Why was it doing this? And why only when millis was disabled?). millis disabled is a key piece of core functionality, necessitating an urgent fix. Moving the definitions into main.cpp resolved this issue. (#485)
* Critical PWM bug on DA and DB returned and made all TCA and TCD PWM fail to operate. (#473)
* Comparator voltage reference table was incorrect, so unexpected behavior was observed when selecting most references. (#488)
* Azduino7b1 toolchain version to fix bad power.h and eeprom.h. 7a was never released and was windows-only fix to the package files which had extra files included, 7b was the fix that also corrected the two builtin headers, but specified the crc for 7a, and could not be installed. 7b1 simply corrects that, but you can't take things out of the json file, only add them (the user-visible aspects of this issue manifest on several parts that we don't support for power.h, and eeprom.h (not EEPROM.h - that was impacted by a different bug not long ago). (#482)

### 1.5.10 (Emergency fix)
* Enhancement/bugfix - add digitalPinToCanon() - given a pin number, it returns port * 8 + bit_position. This is to be used in some other fixes and enhancements.
Expand Down
46 changes: 25 additions & 21 deletions megaavr/cores/dxcore/core_devices.h
Original file line number Diff line number Diff line change
Expand Up @@ -2265,50 +2265,54 @@ int8_t _setCPUSpeed(uint8_t omhz) {
#error "Only the tinyAVR 1-series and 2-series parts with at least 14 pins support external RTC timebase"
#endif
#endif
#if defined(PORTA_EVGENCTRLA) // EB-series
#if defined(__AVR_EB__) // EB-series
// Yup, 1 family after we got evgenctrl,
#define EVGENCTRL EVGENCTRLA
#define PORTA_EVGENCTRL PORTA_EVGENCTRLA
#if defined(PORTB_EVGENCTRLA)
#if defined(PORTB_EVGENCTRLA) && !defined(PORTA_EVGENCTRL)
#define PORTA_EVGENCTRL PORTA_EVGENCTRLA
#endif
#if defined(PORTB_EVGENCTRLA) && !defined(PORTB_EVGENCTRL)
#define PORTB_EVGENCTRL PORTB_EVGENCTRLA
#endif
#if defined(PORTC_EVGENCTRLA)
#if defined(PORTC_EVGENCTRLA) && !defined(PORTC_EVGENCTRL)
#define PORTC_EVGENCTRL PORTC_EVGENCTRLA
#endif
#if defined(PORTD_EVGENCTRLA)
#if defined(PORTD_EVGENCTRLA) && !defined(PORTD_EVGENCTRL)
#define PORTD_EVGENCTRL PORTD_EVGENCTRLA
#endif
#if defined(PORTE_EVGENCTRLA)
#if defined(PORTE_EVGENCTRLA) && !defined(PORTE_EVGENCTRL)
#define PORTE_EVGENCTRL PORTE_EVGENCTRLA
#endif
#if defined(PORTF_EVGENCTRLA)
#if defined(PORTF_EVGENCTRLA) && !defined(PORTF_EVGENCTRL)
#define PORTF_EVGENCTRL PORTF_EVGENCTRLA
#endif
#if defined(PORTG_EVGENCTRLA)
#if defined(PORTG_EVGENCTRLA) && !defined(PORTG_EVGENCTRL)
#define PORTG_EVGENCTRL PORTG_EVGENCTRLA
#endif
#define CCL_INSEL0_IO_gc CCL_INSEL0_IN0_gc
#define CCL_INSEL1_IO_gc CCL_INSEL1_IN1_gc
#define CCL_INSEL2_IO_gc CCL_INSEL2_IN2_gc
#else
#define PORTA_EVGENCTRLA PORTA_EVGENCTRL
#if defined(PORTB_EVGENCTRL)
#define PORTB_EVGENCTRL PORTB_EVGENCTRL
#if defined(PORTA_EVGENCTRL) && !defined(PORTA_EVGENCTRLA)
#define PORTA_EVGENCTRLA PORTA_EVGENCTRL
#endif
#if defined(PORTB_EVGENCTRL) && !defined(PORTB_EVGENCTRLA)
#define PORTB_EVGENCTRLA PORTB_EVGENCTRL
#endif
#if defined(PORTC_EVGENCTRL)
#define PORTC_EVGENCTRL PORTC_EVGENCTRL
#if defined(PORTC_EVGENCTRL) && !defined(PORTC_EVGENCTRLA)
#define PORTC_EVGENCTRLA PORTC_EVGENCTRL
#endif
#if defined(PORTD_EVGENCTRL)
#define PORTD_EVGENCTRL PORTD_EVGENCTRL
#if defined(PORTD_EVGENCTRL) && !defined(PORTD_EVGENCTRLA)
#define PORTD_EVGENCTRLA PORTD_EVGENCTRL
#endif
#if defined(PORTE_EVGENCTRL)
#define PORTE_EVGENCTRL PORTE_EVGENCTRL
#if defined(PORTE_EVGENCTRL) && !defined(PORTE_EVGENCTRLA)
#define PORTE_EVGENCTRLA PORTE_EVGENCTRL
#endif
#if defined(PORTF_EVGENCTRL)
#define PORTF_EVGENCTRL PORTF_EVGENCTRL
#if defined(PORTF_EVGENCTRL) && !defined(PORTF_EVGENCTRLA)
#define PORTF_EVGENCTRLA PORTF_EVGENCTRL
#endif
#if defined(PORTG_EVGENCTRL)
#define PORTG_EVGENCTRL PORTG_EVGENCTRL
#if defined(PORTG_EVGENCTRL) && !defined(PORTG_EVGENCTRLA)
#define PORTG_EVGENCTRLA PORTG_EVGENCTRL
#endif
#define CCL_INSEL0_IN0_gc CCL_INSEL0_IO_gc
#define CCL_INSEL1_IN1_gc CCL_INSEL1_IO_gc
Expand Down
Loading

0 comments on commit c446e9e

Please sign in to comment.