mirror of
https://github.com/WeActStudio/ArduinoCore-AT32F4.git
synced 2026-05-21 09:22:01 +00:00
add uart4 and uart5
This commit is contained in:
@@ -159,6 +159,8 @@ void HardwareSerial::begin(
|
||||
|
||||
crm_periph_clock_enable(CRM_GPIOA_PERIPH_CLOCK, TRUE);
|
||||
crm_periph_clock_enable(CRM_UART4_PERIPH_CLOCK, TRUE);
|
||||
crm_periph_clock_enable(CRM_IOMUX_PERIPH_CLOCK,TRUE);
|
||||
gpio_pin_remap_config(UART4_GMUX_0010, TRUE);
|
||||
}
|
||||
else if(_USARTx == UART5)
|
||||
{
|
||||
@@ -169,6 +171,8 @@ void HardwareSerial::begin(
|
||||
|
||||
crm_periph_clock_enable(CRM_GPIOB_PERIPH_CLOCK, TRUE);
|
||||
crm_periph_clock_enable(CRM_UART5_PERIPH_CLOCK, TRUE);
|
||||
crm_periph_clock_enable(CRM_IOMUX_PERIPH_CLOCK,TRUE);
|
||||
gpio_pin_remap_config(UART5_GMUX_0001, TRUE);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user