avr: configure emulator in board files
Instead of specifying the emulator command in atmega328p.json, specify it in the two boards based on it (arduino and arduino-nano). This makes the configuration consistent with the machine package, which only defines the CPUFrequency function in the board files (and not in machine_atmega328p.json).
Этот коммит содержится в:
		
							родитель
							
								
									de3ffe0af7
								
							
						
					
					
						коммит
						b99175a436
					
				
					 3 изменённых файлов: 5 добавлений и 4 удалений
				
			
		|  | @ -5,5 +5,6 @@ | ||||||
| 		"-Wl,--defsym=_bootloader_size=512", | 		"-Wl,--defsym=_bootloader_size=512", | ||||||
| 		"-Wl,--defsym=_stack_size=512" | 		"-Wl,--defsym=_stack_size=512" | ||||||
| 	], | 	], | ||||||
| 	"flash-command": "avrdude -c arduino -p atmega328p -b 57600 -P {port} -U flash:w:{hex}:i" | 	"flash-command": "avrdude -c arduino -p atmega328p -b 57600 -P {port} -U flash:w:{hex}:i", | ||||||
|  | 	"emulator": ["simavr", "-m", "atmega328p", "-f", "16000000"] | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -5,5 +5,6 @@ | ||||||
| 		"-Wl,--defsym=_bootloader_size=512", | 		"-Wl,--defsym=_bootloader_size=512", | ||||||
| 		"-Wl,--defsym=_stack_size=512" | 		"-Wl,--defsym=_stack_size=512" | ||||||
| 	], | 	], | ||||||
| 	"flash-command": "avrdude -c arduino -p atmega328p -P {port} -U flash:w:{hex}:i" | 	"flash-command": "avrdude -c arduino -p atmega328p -P {port} -U flash:w:{hex}:i", | ||||||
|  | 	"emulator": ["simavr", "-m", "atmega328p", "-f", "16000000"] | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -12,6 +12,5 @@ | ||||||
| 	"extra-files": [ | 	"extra-files": [ | ||||||
| 		"targets/avr.S", | 		"targets/avr.S", | ||||||
| 		"src/device/avr/atmega328p.s" | 		"src/device/avr/atmega328p.s" | ||||||
| 	], | 	] | ||||||
| 	"emulator": ["simavr", "-m", "atmega328p", "-f", "16000000"] |  | ||||||
| } | } | ||||||
|  |  | ||||||
		Загрузка…
	
	Создание таблицы
		
		Сослаться в новой задаче
	
	 Ayke van Laethem
						Ayke van Laethem