GPIO STM32W
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2012-03-21 3:39 AM
Posted on March 21, 2012 at 11:39
I have problem to get GPIO input with Stm32w. I code this function:
halGpioConfig(PORTA_PIN(1), GPIOCFG_IN);int32u GpioGet(int32u gpio){ int32u get=1; if(gpio/8 < 3) { get = *((volatile int32u *)GPIO_PxIN_BASE+(GPIO_Px_OFFSET*(gpio/8)); emberSerialPrintf(APP_SERIAL, '' get = %4x \r\n'',get); return get; } return get;}But I get 0x08.what can I do to correct this function?
This discussion is locked. Please start a new topic to ask your question.
0 REPLIES 0
