Ayke van Laethem
b67351babe
machine: define Serial as the default output
...
Previously, the machine.UART0 object had two meanings:
- it was the first UART on the chip
- it was the default output for println
These two meanings conflict, and resulted in workarounds like:
- Defining UART0 to refer to the USB-CDC interface (atsamd21,
atsamd51, nrf52840), even though that clearly isn't an UART.
- Defining NRF_UART0 to avoid a conflict with UART0 (which was
redefined as a USB-CDC interface).
- Defining aliases like UART0 = UART1, which refer to the same
hardware peripheral (stm32).
This commit changes this to use a new machine.Serial object for the
default serial port. It might refer to the first or second UART
depending on the board, or even to the USB-CDC interface. Also, UART0
now really refers to the first UART on the chip, no longer to a USB-CDC
interface.
The changes in the runtime package are all just search+replace. The
changes in the machine package are a mixture of search+replace and
manual modifications.
This commit does not affect binary size, in fact it doesn't affect the
resulting binary at all.
2021-05-13 16:43:37 +02:00
..
2021-01-31 14:54:27 -06:00
2021-04-12 11:03:13 +02:00
2020-07-05 21:18:20 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2020-05-12 08:16:34 +02:00
2021-05-13 16:43:37 +02:00
2020-05-12 08:16:34 +02:00
2020-05-12 08:16:34 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-04-06 20:36:10 +02:00
2021-05-13 16:43:37 +02:00
2020-03-25 19:47:36 +01:00
2021-05-13 16:43:37 +02:00
2019-10-31 12:03:35 +01:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-03-29 02:02:04 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2020-07-23 22:45:23 +02:00
2021-05-13 16:43:37 +02:00
2021-03-29 02:02:04 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2020-12-11 10:00:41 +01:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2020-07-08 21:58:15 +02:00
2021-04-07 17:20:19 +02:00
2020-07-23 22:45:23 +02:00
2021-04-06 20:36:10 +02:00
2021-02-10 12:56:48 +01:00
2021-04-17 00:01:37 +02:00
2021-02-10 12:56:48 +01:00
2021-02-10 12:56:48 +01:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2019-05-26 20:48:50 +02:00
2020-07-14 06:08:08 +02:00
2021-05-13 16:43:37 +02:00
2021-04-06 20:36:10 +02:00
2021-04-06 20:36:10 +02:00
2021-04-06 20:36:10 +02:00
2021-04-06 20:36:10 +02:00
2021-04-21 15:02:47 +02:00
2021-05-10 12:27:10 +02:00
2021-04-16 17:49:46 +02:00
2021-04-15 15:43:37 +02:00
2020-05-22 13:17:04 +02:00
2021-05-06 13:59:12 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-06 13:59:12 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-03-13 07:34:44 +01:00
2021-05-06 13:59:12 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-04-06 20:36:10 +02:00
2021-05-13 16:43:37 +02:00
2021-02-26 00:32:33 +01:00
2021-02-26 00:32:33 +01:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00
2021-05-06 13:59:12 +02:00
2021-03-29 02:02:04 +02:00
2021-04-07 17:20:19 +02:00
2021-04-13 07:38:30 +02:00
2021-04-21 21:09:41 +02:00
2021-03-23 08:33:59 +01:00
2021-05-06 13:59:12 +02:00
2020-09-01 11:31:41 +02:00
2020-12-15 06:51:35 +01:00
2021-03-29 02:02:04 +02:00
2021-05-03 18:16:46 +02:00
2021-04-21 21:09:41 +02:00
2021-04-21 21:09:41 +02:00
2021-05-13 16:43:37 +02:00
2021-04-07 17:20:19 +02:00
2021-04-07 17:20:19 +02:00
2021-04-21 21:09:41 +02:00
2021-03-29 02:02:04 +02:00
2021-02-16 12:48:52 +01:00
2021-03-29 02:02:04 +02:00
2021-05-06 13:59:12 +02:00
2021-04-06 20:36:10 +02:00
2021-04-21 21:09:41 +02:00
2021-05-13 16:43:37 +02:00
2021-05-13 16:43:37 +02:00