Skip to content

Commit

Permalink
Merge pull request #507 from nomakewan/fixes
Browse files Browse the repository at this point in the history
Thaaaanks
  • Loading branch information
SpenceKonde authored Jan 3, 2024
2 parents c8e178a + 9ed00da commit a0f9399
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions megaavr/boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2890,7 +2890,7 @@ avrdbopti.menu.mvioopti.disabled.bootloader.mviobits=10
avrdbopti.menu.mvioopti.disabled.build.mvioenable=
avrdbopti.menu.mvioopti.reallyenabled=Enabled. "burn bootloader" done for sure.
avrdbopti.menu.mvioopti.reallyenabled.bootloader.mviobits=01
avrdbopti.menu.mvioopti.reallyenabled.build.mvioenable==-DMVIO_ENABLED -DASSUME_MVIO_FUSE
avrdbopti.menu.mvioopti.reallyenabled.build.mvioenable=-DMVIO_ENABLED -DASSUME_MVIO_FUSE
avrdbopti.menu.mvioopti.reallydisabled=Disabled. "burn bootloader" done for sure.
avrdbopti.menu.mvioopti.reallydisabled.bootloader.mviobits=10
avrdbopti.menu.mvioopti.reallydisabled.build.mvioenable=-DASSUME_MVIO_FUSE
Expand Down Expand Up @@ -3462,7 +3462,7 @@ avrddopti.menu.mvioopti.disabled.bootloader.mviobits=10
avrddopti.menu.mvioopti.disabled.build.mvioenable=
avrddopti.menu.mvioopti.reallyenabled=Enabled, "burn bootloader" done for sure.
avrddopti.menu.mvioopti.reallyenabled.bootloader.mviobits=01
avrddopti.menu.mvioopti.reallyenabled.build.mvioenable==-DMVIO_ENABLED -DASSUME_MVIO_FUSE
avrddopti.menu.mvioopti.reallyenabled.build.mvioenable=-DMVIO_ENABLED -DASSUME_MVIO_FUSE
avrddopti.menu.mvioopti.reallydisabled=Disabled, "burn bootloader" done for sure.
avrddopti.menu.mvioopti.reallydisabled.bootloader.mviobits=10
avrddopti.menu.mvioopti.reallydisabled.build.mvioenable=-DASSUME_MVIO_FUSE
Expand Down Expand Up @@ -3905,7 +3905,7 @@ azduinoboard.menu.mvioopti.disabled.bootloader.mviobits=10
azduinoboard.menu.mvioopti.disabled.build.mvioenable=
azduinoboard.menu.mvioopti.reallyenabled=Enabled. Assume that "burn bootloader" has been performed with this option.
azduinoboard.menu.mvioopti.reallyenabled.bootloader.mviobits=01
azduinoboard.menu.mvioopti.reallyenabled.build.mvioenable==-DMVIO_ENABLED -DASSUME_MVIO_FUSE
azduinoboard.menu.mvioopti.reallyenabled.build.mvioenable=-DMVIO_ENABLED -DASSUME_MVIO_FUSE
azduinoboard.menu.mvioopti.reallydisabled=Disabled. Assume that "burn bootloader" has been performed with this option.
azduinoboard.menu.mvioopti.reallydisabled.bootloader.mviobits=10
azduinoboard.menu.mvioopti.reallydisabled.build.mvioenable=-DASSUME_MVIO_FUSE
Expand Down
2 changes: 1 addition & 1 deletion megaavr/extras/Ref_Optiboot.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Notes:

**Notes** 14-pin parts had to depart from our tradition of PA7 LEDs. The LED is on PD6 on 14-pin parts, and PD4 if Serial1 is the serial port the bootloader uses (because that uses pins PD6 and PD7 - mux option 0 becomes available only when the TX pin, PC0, actually exists. This is only present on 28 and 32-pin parts). (Corrected jan 3 2024).

These were chosen because they're also tthe output pins for the communication interfaces (USART, some others IIRC). Therefore, if one is using those peripherals, you've got that pin connected to something that can deal with the pin being driven by something else (in this case the AVR). Thus, it is unlikely to cause damage to the other device. On the other hand, if we used PD5/7, that's an input if the peripheral there is in use, hence it absolutely should not be used for the LED, because of the likihood that another device's output would be connected there, and they would fight until one burned out.
These were chosen because they're also the output pins for the communication interfaces (USART, some others IIRC). Therefore, if one is using those peripherals, you've got that pin connected to something that can deal with the pin being driven by something else (in this case the AVR). Thus, it is unlikely to cause damage to the other device. On the other hand, if we used PD5/7, that's an input if the peripheral there is in use, hence it absolutely should not be used for the LED, because of the likihood that another device's output would be connected there, and they would fight until one burned out.

### Serial Ports, DA/DB

Expand Down

0 comments on commit a0f9399

Please sign in to comment.