Skip to content

STM32: UART support #2211

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 27 commits into from
Nov 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
51901f7
Add peripheral definitions
hierophect Oct 4, 2019
0b85172
WIP
hierophect Oct 4, 2019
cc3a178
Fix USB issues, frequency macro, F412 tests
hierophect Oct 7, 2019
f58d54c
Preliminary read system, not buffered
hierophect Oct 8, 2019
bfebbae
Merge remote-tracking branch 'upstream/master' into stm32-uart
hierophect Oct 10, 2019
1140ff5
WIP
hierophect Oct 11, 2019
14eefaa
Hack in interrupt support
hierophect Oct 16, 2019
b4a6246
Cleanup
hierophect Oct 16, 2019
552900f
Merge remote-tracking branch 'upstream/master' into stm32-uart
hierophect Oct 16, 2019
323fe41
Add support for other F4 MCUs
hierophect Oct 16, 2019
14c6415
Implement requested changes, refactors
hierophect Oct 16, 2019
af28474
IRQ priority and port clearing scratchwork
hierophect Oct 18, 2019
a596213
non-functional WIP
hierophect Oct 21, 2019
3034cfc
Merge remote-tracking branch 'upstream/master' into stm32-uart
hierophect Oct 28, 2019
ec32731
sync tinyusb (again)
hierophect Oct 28, 2019
33deb67
Add harder resets to UART
hierophect Oct 29, 2019
a8070a4
Revise IRQ managment, add restart on failure
hierophect Oct 30, 2019
c78d799
remove debug output
hierophect Oct 30, 2019
e605ce6
Debugging additions
hierophect Nov 1, 2019
8d0cc71
Add write protections, fix edge case read halt
hierophect Nov 1, 2019
0b85c4b
Merge remote-tracking branch 'upstream/master' into stm32-uart
hierophect Nov 5, 2019
8a098c1
Fix unsaved file
hierophect Nov 5, 2019
e076f14
text fixes
hierophect Nov 11, 2019
14b7080
de-init check
hierophect Nov 11, 2019
ed3e377
Merge remote-tracking branch 'upstream/master' into stm32-uart
hierophect Nov 12, 2019
bbc366b
Style overhaul, extra error checks
hierophect Nov 12, 2019
e40bd07
fix conflicting definitions on discovery boards
hierophect Nov 12, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
#define HAL_SPI_MODULE_ENABLED
#define HAL_TIM_MODULE_ENABLED
#define HAL_UART_MODULE_ENABLED
/* #define HAL_USART_MODULE_ENABLED */
#define HAL_USART_MODULE_ENABLED
/* #define HAL_IRDA_MODULE_ENABLED */
/* #define HAL_SMARTCARD_MODULE_ENABLED */
/* #define HAL_WWDG_MODULE_ENABLED */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ USB_VID = 0x239A
USB_PID = 0x8056
USB_PRODUCT = "STM32F412ZG Discovery Board - CPy"
USB_MANUFACTURER = "STMicroelectronics"
USB_DEVICES = "CDC,MSC,HID"

INTERNAL_FLASH_FILESYSTEM = 1
LONGINT_IMPL = NONE
Expand Down
4 changes: 2 additions & 2 deletions ports/stm32f4/boards/stm32f412zg_discovery/pins.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
{ MP_ROM_QSTR(MP_QSTR_D4), MP_ROM_PTR(&pin_PG12) },
{ MP_ROM_QSTR(MP_QSTR_D3), MP_ROM_PTR(&pin_PF04) },
{ MP_ROM_QSTR(MP_QSTR_D2), MP_ROM_PTR(&pin_PG13) },
{ MP_ROM_QSTR(MP_QSTR_D1), MP_ROM_PTR(&pin_PG14) },
{ MP_ROM_QSTR(MP_QSTR_D0), MP_ROM_PTR(&pin_PG09) },
{ MP_ROM_QSTR(MP_QSTR_D1), MP_ROM_PTR(&pin_PG14) }, //USART6 TX
{ MP_ROM_QSTR(MP_QSTR_D0), MP_ROM_PTR(&pin_PG09) }, //USART6 RX
{ MP_ROM_QSTR(MP_QSTR_A0), MP_ROM_PTR(&pin_PA01) },
{ MP_ROM_QSTR(MP_QSTR_A1), MP_ROM_PTR(&pin_PC01) },
{ MP_ROM_QSTR(MP_QSTR_A2), MP_ROM_PTR(&pin_PC03) },
Expand Down
Loading