Mostly changes to the PCB and schematic. This is PSDR v2.6, and it's almost done. I am committing here as a backup. Also changed the code to use internal pull-ups for the I2C.
This commit is contained in:
parent
88d9220f56
commit
8e248a52cd
4 changed files with 5 additions and 4 deletions
Binary file not shown.
Binary file not shown.
|
@ -50,14 +50,14 @@ HAL_I2C_MspInit(I2C_HandleTypeDef hi2c)
|
||||||
gpioInitStructure.Pin = I2C_SCL.pin;
|
gpioInitStructure.Pin = I2C_SCL.pin;
|
||||||
gpioInitStructure.Speed = GPIO_SPEED_FAST;
|
gpioInitStructure.Speed = GPIO_SPEED_FAST;
|
||||||
gpioInitStructure.Mode = GPIO_MODE_AF_OD;
|
gpioInitStructure.Mode = GPIO_MODE_AF_OD;
|
||||||
gpioInitStructure.Pull = GPIO_NOPULL;
|
gpioInitStructure.Pull = GPIO_PULLUP;
|
||||||
gpioInitStructure.Alternate = GPIO_AF4_I2C2;
|
gpioInitStructure.Alternate = GPIO_AF4_I2C2;
|
||||||
HAL_GPIO_Init (I2C_SCL.port, &gpioInitStructure);
|
HAL_GPIO_Init (I2C_SCL.port, &gpioInitStructure);
|
||||||
|
|
||||||
gpioInitStructure.Pin = I2C_SDA.pin;
|
gpioInitStructure.Pin = I2C_SDA.pin;
|
||||||
gpioInitStructure.Speed = GPIO_SPEED_FAST;
|
gpioInitStructure.Speed = GPIO_SPEED_FAST;
|
||||||
gpioInitStructure.Mode = GPIO_MODE_AF_OD;
|
gpioInitStructure.Mode = GPIO_MODE_AF_OD;
|
||||||
gpioInitStructure.Pull = GPIO_NOPULL;
|
gpioInitStructure.Pull = GPIO_PULLUP;
|
||||||
gpioInitStructure.Alternate = GPIO_AF4_I2C2;
|
gpioInitStructure.Alternate = GPIO_AF4_I2C2;
|
||||||
HAL_GPIO_Init (I2C_SDA.port, &gpioInitStructure);
|
HAL_GPIO_Init (I2C_SDA.port, &gpioInitStructure);
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,7 @@ uint16_t menuLastPos = 1;
|
||||||
uint16_t menuCount = 11;
|
uint16_t menuCount = 11;
|
||||||
uint32_t frequencyDialMultiplier = 1;
|
uint32_t frequencyDialMultiplier = 1;
|
||||||
|
|
||||||
long vfoAFrequency = 6111000;
|
long vfoAFrequency = 7030000;
|
||||||
long vfoALastFreq = 0;
|
long vfoALastFreq = 0;
|
||||||
int encoderPos, encoderLastPos;
|
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
|
//HAL_I2C_Master_Transmit(handleI2C, 230, 0x4F, 1, 1000); //write_Si5338(230, 0x10); //OEB_ALL = 1
|
||||||
|
|
||||||
i2cSetup();
|
i2cSetup();
|
||||||
|
setFreq(vfoAFrequency);
|
||||||
//i2cLoop();
|
//i2cLoop();
|
||||||
|
|
||||||
|
|
||||||
|
@ -936,7 +937,7 @@ i2cSetup();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setGainPot(250, 250);
|
setGainPot(20, 20);
|
||||||
|
|
||||||
//testing Uart
|
//testing Uart
|
||||||
configUartPeripheral();
|
configUartPeripheral();
|
||||||
|
|
Loading…
Reference in a new issue