diff --git a/Hardware/PSDR.pcb b/Hardware/PSDR.pcb index c25137e..8a759a7 100644 Binary files a/Hardware/PSDR.pcb and b/Hardware/PSDR.pcb differ diff --git a/Hardware/PSDR.sch b/Hardware/PSDR.sch index 8bdb7e1..0b652a7 100644 Binary files a/Hardware/PSDR.sch and b/Hardware/PSDR.sch differ diff --git a/Source/src/i2c.c b/Source/src/i2c.c index 23617ac..e22df78 100644 --- a/Source/src/i2c.c +++ b/Source/src/i2c.c @@ -50,14 +50,14 @@ HAL_I2C_MspInit(I2C_HandleTypeDef hi2c) gpioInitStructure.Pin = I2C_SCL.pin; gpioInitStructure.Speed = GPIO_SPEED_FAST; gpioInitStructure.Mode = GPIO_MODE_AF_OD; - gpioInitStructure.Pull = GPIO_NOPULL; + gpioInitStructure.Pull = GPIO_PULLUP; gpioInitStructure.Alternate = GPIO_AF4_I2C2; HAL_GPIO_Init (I2C_SCL.port, &gpioInitStructure); gpioInitStructure.Pin = I2C_SDA.pin; gpioInitStructure.Speed = GPIO_SPEED_FAST; gpioInitStructure.Mode = GPIO_MODE_AF_OD; - gpioInitStructure.Pull = GPIO_NOPULL; + gpioInitStructure.Pull = GPIO_PULLUP; gpioInitStructure.Alternate = GPIO_AF4_I2C2; HAL_GPIO_Init (I2C_SDA.port, &gpioInitStructure); diff --git a/Source/src/main.c b/Source/src/main.c index 6da0dd3..87610c1 100644 --- a/Source/src/main.c +++ b/Source/src/main.c @@ -71,7 +71,7 @@ uint16_t menuLastPos = 1; uint16_t menuCount = 11; uint32_t frequencyDialMultiplier = 1; -long vfoAFrequency = 6111000; +long vfoAFrequency = 7030000; long vfoALastFreq = 0; int encoderPos, encoderLastPos; @@ -893,6 +893,7 @@ while(result!= HAL_OK) //HAL_I2C_Master_Transmit(handleI2C, 230, 0x4F, 1, 1000); //write_Si5338(230, 0x10); //OEB_ALL = 1 i2cSetup(); +setFreq(vfoAFrequency); //i2cLoop(); @@ -936,7 +937,7 @@ i2cSetup(); - setGainPot(250, 250); + setGainPot(20, 20); //testing Uart configUartPeripheral();