Skip to content
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

fix #199: add two serial support for 4630 #203

Merged
merged 3 commits into from
May 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ Remember to restart the IDE whenever you change `platform.txt`, `boards.txt` or

## Release History

- [HEAD](https://github.com/mcci-catena/Arduino_Core_STM32/). Added support for new board Model 4917 and Model 4916.
- [HEAD](https://github.com/mcci-catena/Arduino_Core_STM32/). Added support for new board Model 4917 and Model 4916. Added Two HW Serial support for Catena 4630.

- [v3.0.5](https://github.com/mcci-catena/Arduino_Core_STM32/releases/tag/v3.0.5) Patch release. Don't use `<algorithm>` to implement `min()` and `max()` ([#184](https://github.com/mcci-catena/Arduino_Core_STM32/issues/184)). Prevent hangs if USB is enabled but D+/D- float to high/high ([#189](https://github.com/mcci-catena/Arduino_Core_STM32/issues/189), [#190](https://github.com/mcci-catena/Arduino_Core_STM32/issues/190)) -- thanks to Mohammed Mayyan ([@mmayyan](https://github.com/mhmayyan)) for help in finding this.

Expand Down
2 changes: 2 additions & 0 deletions boards.template
Original file line number Diff line number Diff line change
Expand Up @@ -294,12 +294,14 @@ $section xserial
%%+xserial_usb_serial12
{{board}}.menu.xserial.usbhwserial=USB + Two HW Serial
{{board}}.menu.xserial.usb=USB Serial Only
{{board}}.menu.xserial.two=Two HW Serial
{{board}}.menu.xserial.generic=Generic Serial
{{board}}.menu.xserial.none=No Serial
{{board}}.menu.xserial.usbhwserial.build.xSerial={build.usb_flags} -DARDUINO_BSP_CONFIG_SERIAL_MASK=0x7
{{board}}.menu.xserial.usb.build.xSerial={build.usb_flags} -DARDUINO_BSP_CONFIG_SERIAL_MASK=0x1
{{board}}.menu.xserial.generic.build.xSerial=-DARDUINO_BSP_CONFIG_SERIAL_MASK=0x2
{{board}}.menu.xserial.none.build.xSerial=-DARDUINO_BSP_CONFIG_SERIAL_MASK=0x0
{{board}}.menu.xserial.two.build.xSerial=-DARDUINO_BSP_CONFIG_SERIAL_MASK=0x6
%%-xserial_usb_serial12

%%+xserial_nousb
Expand Down
2 changes: 2 additions & 0 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1300,12 +1300,14 @@ mcci_catena_4630.menu.upload_method.STLink.upload.maximum_data_size=20480
# menu.xserial
mcci_catena_4630.menu.xserial.usbhwserial=USB + Two HW Serial
mcci_catena_4630.menu.xserial.usb=USB Serial Only
mcci_catena_4630.menu.xserial.two=Two HW Serial
mcci_catena_4630.menu.xserial.generic=Generic Serial
mcci_catena_4630.menu.xserial.none=No Serial
mcci_catena_4630.menu.xserial.usbhwserial.build.xSerial={build.usb_flags} -DARDUINO_BSP_CONFIG_SERIAL_MASK=0x7
mcci_catena_4630.menu.xserial.usb.build.xSerial={build.usb_flags} -DARDUINO_BSP_CONFIG_SERIAL_MASK=0x1
mcci_catena_4630.menu.xserial.generic.build.xSerial=-DARDUINO_BSP_CONFIG_SERIAL_MASK=0x2
mcci_catena_4630.menu.xserial.none.build.xSerial=-DARDUINO_BSP_CONFIG_SERIAL_MASK=0x0
mcci_catena_4630.menu.xserial.two.build.xSerial=-DARDUINO_BSP_CONFIG_SERIAL_MASK=0x6

#
# menu.sysclk
Expand Down
8 changes: 8 additions & 0 deletions variants/CATENA_4630/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,14 @@ enum {
//Do not use basic timer: OC is required
#define TIMER_SERVO TIM2 //TODO: advanced-control timers don't work

// UART Definitions
// Define here Serial instance number to map on Serial generic name
#define SERIAL_UART_INSTANCE 2 //ex: 2 for Serial2 (USART2)
// Default pin used for 'Serial' instance (ex: ST-Link)
// Mandatory for Firmata
#define PIN_SERIAL_RX D0
#define PIN_SERIAL_TX D1

// UART Definitions

#ifdef __cplusplus
Expand Down