| поискавой системы для электроныых деталей |
|
AN4228 датащи(PDF) 41 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4228 датащи(HTML) 41 Page - STMicroelectronics |
|
41 / 90 page ![]() DocID024110 Rev 5 41/90 AN4228 Firmware migration using the library 89 4.5 GPIO configuration update This section explains how to update the configuration of the various GPIO modes when porting the application code from STM32F1 to STM32F3 series. 4.5.1 Output mode The example below shows how to configure an I/O in output mode (for example to drive a LED) in STM32F1 series: GPIO_InitStructure.GPIO_Pin = GPIO_Pin_x; GPIO_InitStructure.GPIO_Speed = GPIO_Speed_xxMHz; /* 2, 10 or 50 MHz */ GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP; GPIO_Init(GPIOy, &GPIO_InitStructure); In STM32F3 series, you have to update this code as follows: GPIO_InitStructure.GPIO_Pin = GPIO_Pin_x; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT; GPIO_InitStructure.GPIO_OType = GPIO_OType_PP; /*Push-pull or open drain*/ GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP; /*None, Pull-up or pull-down*/ GPIO_InitStructure.GPIO_Speed = GPIO_Speed_xxMHz; /* 10, 2 or 50MHz */ GPIO_Init(GPIOy, &GPIO_InitStructure); uint32_t CRC_CalcCRC(uint32_t CRC_Data); uint32_t CRC_CalcCRC(uint32_t CRC_Data); NA uint32_t CRC_CalcCRC16bits(uint16_t CRC_Data); NA uint32_t CRC_CalcCRC8bits(uint8_t CRC_Data); uint32_t CRC_CalcBlockCRC(uint32_t pBuffer[], uint32_t BufferLength); uint32_t CRC_CalcBlockCRC(uint32_t pBuffer[], uint32_t BufferLength); uint32_t CRC_GetCRC(void); uint32_t CRC_GetCRC(void); void CRC_SetIDRegister(uint8_t CRC_IDValue); void CRC_SetIDRegister(uint8_t CRC_IDValue); uint8_t CRC_GetIDRegister(void); uint8_t CRC_GetIDRegister(void); Table 21. STM32F10x and STM32F3xx CRC driver API correspondence (continued) STM32F10x CRC driver API STM32F3xx CRC driver API Color key: = New function = Same function, but API was changed = Function not available (NA) |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |