#################################################################################
#										#
# GTMICRO gigatron micro emulator						#
# copyright (c) 2018-2019 Joerg Wolfram (joerg@jcwolfram.de)			#
#										#
# This program is free software under the BSD 2-Clause License.			#
# See LICENSE file in main directory.						#
#										#
#################################################################################

.equ	GPIO_A,0x40020000
.equ	GPIO_B,0x40020400
.equ	GPIO_C,0x40020800
.equ	GPIO_D,0x40020c00


.equ	PLL_SET_20_175,0x2440348C	// 20MHz / 12 * 210 / 2 = 175 MHz
.equ	PLL_SET_20_200,0x24403C0C	// 20MHz / 12 * 240 / 2 = 200 MHz
.equ	PLL_SET_20_225,0x2440438C	// 20MHz / 12 * 270 / 2 = 225 MHz
.equ	PLL_SET_20_250,0x24404B0C	// 20MHz / 12 * 300 / 2 = 250 MHz




.equ	pwmcheck,0		// set to 1 if reference clock on PORT C7


.equ	LED_PORT,GPIO_B		// port for status LED
.equ	GLED_PIN,7		// green LED on PB7
.equ	RLED_PIN,5		// red LED on PB5


.equ	VID_PORT,GPIO_A		// video signals port

.equ	AUX_PORT,GPIO_C		// port for sound/LED



					