need to wait for GPIO configure?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-09-11 8:24 PM
GPIO_Init(GPIOD, R4_GPIO_PINS, GPIO_Mode_In_FL_No_IT);
GPIO_Init(GPIOD, R6_GPIO_PINS, GPIO_Mode_In_FL_No_IT);
delay_ms(1);
DOes gpio configure need to wait for completion?
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-09-12 7:36 AM
Hello Cheng!
No, there is nothing to wait for. GPIO configuration means writing some port registers, and that happens in the instruction execution.
Now, for example, it can be that you might want to wait for certain higher impedance input pins, that have to stabilize before you enable an interrupt on them. Otherwise, for digital In/Out there's nothing to wait for.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-09-12 10:51 PM
thx!
