You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: megaavr/cores/dxcore/UART_swap.h
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@
70
70
// This is a MUCH simpler case - swap is trivial on those.
71
71
#defineHWSERIAL_MUX_TINY
72
72
#else
73
-
#error "This part is unsupported, or there is a bug in the core or a problem with your toolchain."
73
+
#error "This part is unsupported, or there is a bug in the core or a problem with your toolchain. A USART struct exists, but cannot find registers that should be there. This can't happen - something is wrong"
74
74
#endif
75
75
76
76
/* Okay, now we know what the mux register is, and whether it's a tiny-like mux or a Dx-like one. */
@@ -92,7 +92,7 @@
92
92
#error "Only one USART, but this is a core for modern AVRs, and it's NOT a tinyAVR 0/1 or EB-series. Something is wrong!"
93
93
// #warning "Only one USART, but this is not a tinyAVR. Something is wrong!"
94
94
#else
95
-
#error "No USARTs detected, all supported parts have at least 2, something is wrong!"
95
+
#error "No USARTs detected, all supported parts have one or more - and this is a cant-happen anywauy. Something is wrong!"
/* When they're fixed, we'll replace these with a macro to check REVID and return 1 or 0 appropriately. */
815
-
/* aaahahahah! Sorry...
816
-
... I meant, *if* they're ever fixed.
817
-
818
-
Highly unlikely events come in groups, so if they get fixed, maybe put on a jacket or something as a precaution....
819
-
just in case a pig coming in for a landing collides with you on your way to claim your lottery jackpot, killing you...
820
-
And if in that unlikely event, contrary to your expectations, you end up in hell, yet find, instead of fire and brimstone there's just ice as far as you
821
-
can see, the jacket will make etenal damnation to a frozen-over hell a bit less miserable.
822
-
823
-
That's how pessimistic I am left feeling about the prospects for errata fixes by this point
824
-
*/
825
-
826
-
/* Okay, so what is all of this relevant errata?
827
-
* Uhm, okay, why don't you take a seat, we're gonna be here a while */
815
+
DB silicon with die rev 0x11 is available.
828
816
829
817
/* See Ref_Errata.md in the documentation, and the official errata document for more information.
830
818
// The 128DA had a few unique and nasty ones. */
@@ -863,8 +851,8 @@ That's how pessimistic I am left feeling about the prospects for errata fixes by
863
851
864
852
// And both DA and DB had a whole slew of issues
865
853
#if defined(__AVR_DA__) || defined(__AVR_DB__)
866
-
#defineERRATA_TCD_PORTMUX (1) // *thud* *thud* *thud* - the sound of an embedded developer banging his head on the desk leaving a dent.
867
-
#defineERRATA_DAC_DRIFT (1) // How much drift? I dunno - enough for Microchip to feel a need to add an erratum about it, but too much for them to be comfortable sharing any numbers.
854
+
#defineERRATA_TCD_PORTMUX (1) // One of the most irritating erratums
855
+
#defineERRATA_DAC_DRIFT (1) // How much drift? I dunno - enough for Microchip to feel a need to add an erratum about it.
868
856
#defineERRATA_TCA_RESTART (1) // Is resets the direction, like the datasheet said. Appaently both the documentation and the silicon were wrong, it's not supposed to.
869
857
#defineERRATA_CCL_PROTECTION (1) // Busted on all pre-DD parts
870
858
#defineERRATA_TCD_ASYNC_COUNTPSC (1) // Busted on all pre-DD parts
0 commit comments