查看EFM32的源代码
←
EFM32
跳转到:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
== GPIO == <source lang=cpp> void GPIO_DriveModeSet (GPIO_Port_TypeDef port, GPIO_DriveMode_TypeDef mode) </source> * gpioDriveModeStandard 6mA * gpioDriveModeLowest 0.5 mA * gpioDriveModeHigh 20 mA * gpioDriveModeLow 2 mA 需要在 GPIO_PinModeSet() 中设置输出为 gpioModePushPullDrive (Push-pull output with drive-strength set by DRIVEMODE),现在默认设置为 gpioModePushPull <source lang=cpp> #if defined(USART1)&& (USE_USART1 >0) if (this->instance == USART1) { /* * gpioModePushPull: Push-pull output * gpioModePushPullDrive: Push-pull output with drive-strength set by DRIVEMODE * gpioModeWiredAnd: Open-drain output * gpioModeWiredAndFilter: Open-drain output with filter * gpioModeWiredAndPullUp: Open-drain output with pullup */ GPIO_PinModeSet((GPIO_Port_TypeDef)AF_USART1_TX_PORT(this->routeLoc), AF_USART1_TX_PIN(this->routeLoc), gpioModePushPull, 1); /* * gpioModeInputPull: Input enabled. DOUT determines pull direction * gpioModeInput: Input enabled. Filter if DOUT is set * gpioModeInputPullFilter: Input enabled with filter. DOUT determines pull direction */ GPIO_PinModeSet((GPIO_Port_TypeDef)AF_USART1_RX_PORT(this->routeLoc), AF_USART1_RX_PIN(this->routeLoc), gpioModeInputPullFilter, 0); /* DOUT = 0: pull-down */ buf->mode = USART_TYPE; } #endif </source> '''Input Filter:''' When enabled, the high and low periods of GPIO_INPUT must be stable for 5 consecutive clock cycles before the edge is passed to the edge detector <br>
返回到
EFM32
。
个人工具
登录
名字空间
页面
讨论
变换
查看
阅读
查看源代码
查看历史
操作
搜索
导航
首页
社区专页
新闻动态
最近更改
随机页面
帮助
工具箱
链入页面
相关更改
特殊页面