File tree 2 files changed +6
-4
lines changed
user_hardware/my_avr_platform/avr
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ func TestAddBuildBoardPropertyIfMissing(t *testing.T) {
61
61
require .Equal (t , "mymega" , targetBoard .BoardID )
62
62
targetBoardBuildProperties := ctx .TargetBoardBuildProperties
63
63
require .Equal (t , "atmega2560" , targetBoardBuildProperties .Get ("build.mcu" ))
64
- require .Equal (t , "AVR_MYMEGA2560 " , targetBoardBuildProperties .Get ("build.board" ))
64
+ require .Equal (t , "AVR_MYMEGA " , targetBoardBuildProperties .Get ("build.board" ))
65
65
}
66
66
67
67
func TestAddBuildBoardPropertyIfMissingNotMissing (t * testing.T ) {
@@ -91,5 +91,5 @@ func TestAddBuildBoardPropertyIfMissingNotMissing(t *testing.T) {
91
91
require .Equal (t , "mymega" , targetBoard .BoardID )
92
92
targetBoardBuildProperties := ctx .TargetBoardBuildProperties
93
93
require .Equal (t , "atmega1280" , targetBoardBuildProperties .Get ("build.mcu" ))
94
- require .Equal (t , "AVR_MYMEGA " , targetBoardBuildProperties .Get ("build.board" ))
94
+ require .Equal (t , "MYMEGA1280 " , targetBoardBuildProperties .Get ("build.board" ))
95
95
}
Original file line number Diff line number Diff line change @@ -70,7 +70,8 @@ mymega.menu.cpu.atmega2560.bootloader.extended_fuses=0xFD
70
70
mymega.menu.cpu.atmega2560.bootloader.file={bootloader._folder}/stk500boot_v2_mega2560.hex
71
71
72
72
mymega.menu.cpu.atmega2560.build.mcu=atmega2560
73
- mymega.menu.cpu.atmega2560.build.board=AVR_MYMEGA2560
73
+ # Do not define build.board to test autogeneration
74
+ #mymega.menu.cpu.atmega2560.build.board=AVR_MYMEGA2560
74
75
75
76
mymega.menu.cpu.atmega1280=ATmega1280
76
77
@@ -84,4 +85,5 @@ mymega.menu.cpu.atmega1280.bootloader.extended_fuses=0xF5
84
85
mymega.menu.cpu.atmega1280.bootloader.file={bootloader._folder}/ATmegaBOOT_168_atmega1280.hex
85
86
86
87
mymega.menu.cpu.atmega1280.build.mcu=atmega1280
87
- mymega.menu.cpu.atmega1280.build.board=AVR_MYMEGA
88
+ # define custom build.board for testing
89
+ mymega.menu.cpu.atmega1280.build.board=MYMEGA1280
You can’t perform that action at this time.
0 commit comments