V2.0
This commit is contained in:
@@ -82,11 +82,6 @@ void IIC_Init(u32 bound, u16 address)
|
||||
I2C_DMACmd( I2C1, ENABLE );
|
||||
|
||||
I2C_Cmd( I2C1, ENABLE );
|
||||
|
||||
#if (I2C_MODE == HOST_MODE)
|
||||
I2C_AcknowledgeConfig( I2C1, ENABLE );
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
@@ -177,7 +172,7 @@ int main(void)
|
||||
{
|
||||
uint8_t i ,t;
|
||||
uint8_t j ;
|
||||
NVIC_PriorityGroupConfig( NVIC_PriorityGroup_4 );
|
||||
NVIC_PriorityGroupConfig( NVIC_PriorityGroup_1 );
|
||||
SystemCoreClockUpdate();
|
||||
Delay_Init();
|
||||
USART_Printf_Init( 460800 );
|
||||
|
||||
Reference in New Issue
Block a user