diff --git a/group__spi.html b/group__spi.html index e7956106..487837ea 100644 --- a/group__spi.html +++ b/group__spi.html @@ -169,8 +169,9 @@ void 
Parameters
- - + + +
bufStorage for the incoming bytes; on return, it will contain the received data.
lengthThe number of bytes that you wish to receive.
data_outStorage for outgoing bytes.
data_inStorage for incoming bytes.
lengthThe number of bytes to transfer.
diff --git a/group__debug.html b/group__uart.html similarity index 83% rename from group__debug.html rename to group__uart.html index 697892bc..d0c23375 100644 --- a/group__debug.html +++ b/group__uart.html @@ -75,20 +75,20 @@ $(function() { - - + + - - + + - - + + - - + + - - + +

Functions

void watch_enable_uart (const uint8_t tx_pin, const uint8_t rx_pin, uint32_t baud)
 Initializes the debug UART. More...
void watch_enable_uart (const uint8_t tx_pin, const uint8_t rx_pin, uint32_t baud)
 Initializes the debug UART. More...
 
void watch_uart_puts (char *s)
 Transmits a string of bytes on the UART's TX pin. More...
void watch_uart_puts (char *s)
 Transmits a string of bytes on the UART's TX pin. More...
 
char watch_uart_getc (void)
 Receives a single byte from the UART's RX pin. More...
char watch_uart_getc (void)
 Receives a single byte from the UART's RX pin. More...
 
 __attribute__ ((deprecated("Use watch_enable_uart to enable the UART."))) void watch_enable_debug_uart(uint32_t baud)
 Initializes the debug UART. More...
 __attribute__ ((deprecated("Use watch_enable_uart to enable the UART."))) void watch_enable_debug_uart(uint32_t baud)
 Initializes the debug UART. More...
 
 __attribute__ ((deprecated("Use watch_uart_puts to print to the UART, or printf to log debug messages over USB."))) void watch_debug_putc(char c)
 Outputs a single character on the debug UART. More...
 __attribute__ ((deprecated("Use watch_uart_puts to print to the UART, or printf to log debug messages over USB."))) void watch_debug_putc(char c)
 Outputs a single character on the debug UART. More...
 

Detailed Description

@@ -103,7 +103,7 @@ Functions __attribute__ ( - (deprecated("Use watch_enable_uart to enable the UART."))  + (deprecated("Use watch_enable_uart to enable the UART."))  ) @@ -129,7 +129,7 @@ Functions __attribute__ ( - (deprecated("Use watch_uart_puts to print to the UART, or printf to log debug messages over USB."))  + (deprecated("Use watch_uart_puts to print to the UART, or printf to log debug messages over USB."))  ) diff --git a/index.html b/index.html index 59644390..3dabdefd 100644 --- a/index.html +++ b/index.html @@ -77,7 +77,8 @@ $(function() {
  • Analog Input - This section covers functions related to the SAM L22's analog-to-digital converter, as well as configuring and reading values from the five analog-capable pins on the 9-pin connector.
  • Digital Input and Output - This section covers functions related to general-purpose input and output signals.
  • I2C Controller Driver - This section covers functions related to the SAM L22's built-I2C driver, including configuring the I2C bus, putting values directly on the bus and reading data from registers on I2C devices.
  • -
  • UART - This section covers functions related to the debug UART, available on pin D1 of the 9-pin connector.
  • +
  • SPI Controller Driver - This section covers functions related to the SAM L22's built-in SPI driver.
  • +
  • UART - This section covers functions related to the UART peripheral.
  • Sleep Control - This section covers functions related to preparing for and entering BACKUP mode, the deepest sleep mode available on the SAM L22.
  • diff --git a/modules.html b/modules.html index ebdac7a0..ccbc7a9c 100644 --- a/modules.html +++ b/modules.html @@ -80,7 +80,7 @@ $(function() {  Real-Time ClockThis section covers functions related to the SAM L22's real-time clock peripheral, including date, time and alarm functions  Segment LCD DisplayThis section covers functions related to the Segment LCD display driver, which is responsible for displaying strings of characters and indicators on the main watch display  SPI Controller DriverThis section covers functions related to the SAM L22's built-in SPI driver, including configuring the SPI bus and writing to / reading from devices - UARTThis section covers functions related to the UART peripheral + UARTThis section covers functions related to the UART peripheral  Utility FunctionsThis section covers various useful functions that don't fit anywhere else diff --git a/search/all_0.js b/search/all_0.js index 3c09737a..70fa73f9 100644 --- a/search/all_0.js +++ b/search/all_0.js @@ -1,5 +1,5 @@ var searchData= [ - ['_5f_5fattribute_5f_5f_0',['__attribute__',['../group__rtc.html#ga98366c1b71e09089b441d704193bb0d4',1,'__attribute__((deprecated("Use watch_rtc_set_date_time function instead"))) void watch_set_date_time(struct calendar_date_time date_time): watch_rtc.h'],['../group__rtc.html#ga7ce8c01a25eb364efb7ae6ed6dbca373',1,'__attribute__((deprecated("Use the watch_rtc_get_date_time function instead"))) void watch_get_date_time(struct calendar_date_time *date_time): watch_rtc.h'],['../group__rtc.html#ga811201003a3985a040f1f6bd3c5a69eb',1,'__attribute__((deprecated("Use the watch_rtc_register_tick_callback function instead"))) void watch_register_tick_callback(ext_irq_cb_t callback): watch_rtc.h'],['../group__debug.html#gab9e48ca472abf422d1e6389f371d8fbf',1,'__attribute__((deprecated("Use watch_enable_uart to enable the UART."))) void watch_enable_debug_uart(uint32_t baud): watch_uart.h'],['../group__debug.html#ga42455c49e1756fc2eabbabec6f0bd530',1,'__attribute__((deprecated("Use watch_uart_puts to print to the UART, or printf to log debug messages over USB."))) void watch_debug_putc(char c): watch_uart.h']]], + ['_5f_5fattribute_5f_5f_0',['__attribute__',['../group__rtc.html#ga98366c1b71e09089b441d704193bb0d4',1,'__attribute__((deprecated("Use watch_rtc_set_date_time function instead"))) void watch_set_date_time(struct calendar_date_time date_time): watch_rtc.h'],['../group__rtc.html#ga7ce8c01a25eb364efb7ae6ed6dbca373',1,'__attribute__((deprecated("Use the watch_rtc_get_date_time function instead"))) void watch_get_date_time(struct calendar_date_time *date_time): watch_rtc.h'],['../group__rtc.html#ga811201003a3985a040f1f6bd3c5a69eb',1,'__attribute__((deprecated("Use the watch_rtc_register_tick_callback function instead"))) void watch_register_tick_callback(ext_irq_cb_t callback): watch_rtc.h'],['../group__uart.html#gab9e48ca472abf422d1e6389f371d8fbf',1,'__attribute__((deprecated("Use watch_enable_uart to enable the UART."))) void watch_enable_debug_uart(uint32_t baud): watch_uart.h'],['../group__uart.html#ga42455c49e1756fc2eabbabec6f0bd530',1,'__attribute__((deprecated("Use watch_uart_puts to print to the UART, or printf to log debug messages over USB."))) void watch_debug_putc(char c): watch_uart.h']]], ['_5fwatch_5frtc_5fis_5fenabled_1',['_watch_rtc_is_enabled',['../group__rtc.html#ga3ac65a314540ae8b7be5b9015785d565',1,'watch_rtc.h']]] ]; diff --git a/search/all_9.js b/search/all_9.js index d68d93db..06b2bce0 100644 --- a/search/all_9.js +++ b/search/all_9.js @@ -1,5 +1,5 @@ var searchData= [ - ['uart_110',['UART',['../group__debug.html',1,'']]], + ['uart_110',['UART',['../group__uart.html',1,'']]], ['utility_20functions_111',['Utility Functions',['../group__utility.html',1,'']]] ]; diff --git a/search/all_a.js b/search/all_a.js index 9518d02b..f8eabdac 100644 --- a/search/all_a.js +++ b/search/all_a.js @@ -31,7 +31,7 @@ var searchData= ['watch_5fenable_5fpull_5fdown_140',['watch_enable_pull_down',['../group__gpio.html#gae974fce4ac5d38ffe256186a84c63ff9',1,'watch_gpio.h']]], ['watch_5fenable_5fpull_5fup_141',['watch_enable_pull_up',['../group__gpio.html#ga55a16884f634ee0eb2c981d1b9a06a4d',1,'watch_gpio.h']]], ['watch_5fenable_5fspi_142',['watch_enable_spi',['../group__spi.html#ga77252649d1551483308f312131e80dec',1,'watch_spi.h']]], - ['watch_5fenable_5fuart_143',['watch_enable_uart',['../group__debug.html#ga38e750d3e02939bf056fde77f4ef6235',1,'watch_uart.h']]], + ['watch_5fenable_5fuart_143',['watch_enable_uart',['../group__uart.html#ga38e750d3e02939bf056fde77f4ef6235',1,'watch_uart.h']]], ['watch_5fenter_5fbackup_5fmode_144',['watch_enter_backup_mode',['../group__deepsleep.html#ga50dda38a8a83d7d957e3bb2bf13aa3ef',1,'watch_deepsleep.h']]], ['watch_5fenter_5fdeep_5fsleep_5fmode_145',['watch_enter_deep_sleep_mode',['../group__deepsleep.html#gaea469761889ff203385f3bfd88bb2451',1,'watch_deepsleep.h']]], ['watch_5fenter_5fsleep_5fmode_146',['watch_enter_sleep_mode',['../group__deepsleep.html#ga9f7a625290748f0df6ba2ceb27e0d81b',1,'watch_deepsleep.h']]], @@ -89,8 +89,8 @@ var searchData= ['watch_5fstop_5ftick_5fanimation_198',['watch_stop_tick_animation',['../group__slcd.html#gaf2c52b4430b4e78a066b3a2b104d142a',1,'watch_slcd.h']]], ['watch_5fstore_5fbackup_5fdata_199',['watch_store_backup_data',['../group__deepsleep.html#ga385b36922ec76c5fe697772f97a05846',1,'watch_deepsleep.h']]], ['watch_5ftick_5fanimation_5fis_5frunning_200',['watch_tick_animation_is_running',['../group__slcd.html#ga3764fb499e056f9a45588268f11be8a0',1,'watch_slcd.h']]], - ['watch_5fuart_5fgetc_201',['watch_uart_getc',['../group__debug.html#ga0c400bfcd52bb71e8de62c5ab2373db6',1,'watch_uart.h']]], - ['watch_5fuart_5fputs_202',['watch_uart_puts',['../group__debug.html#ga5d62683298c511f24adaab4bf6615c50',1,'watch_uart.h']]], + ['watch_5fuart_5fgetc_201',['watch_uart_getc',['../group__uart.html#ga0c400bfcd52bb71e8de62c5ab2373db6',1,'watch_uart.h']]], + ['watch_5fuart_5fputs_202',['watch_uart_puts',['../group__uart.html#ga5d62683298c511f24adaab4bf6615c50',1,'watch_uart.h']]], ['watch_5futility_5fconvert_5fto_5funix_5ftime_203',['watch_utility_convert_to_unix_time',['../group__utility.html#ga94f5cc404949bf4c0ac4bc4770ec8eda',1,'watch_utility_convert_to_unix_time(uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second, uint32_t utc_offset): watch_utility.c'],['../group__utility.html#ga94f5cc404949bf4c0ac4bc4770ec8eda',1,'watch_utility_convert_to_unix_time(uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second, uint32_t utc_offset): watch_utility.c']]], ['watch_5futility_5fdate_5ftime_5fconvert_5fzone_204',['watch_utility_date_time_convert_zone',['../group__utility.html#ga94f038ec0e1b8f3c48c4364b56566327',1,'watch_utility_date_time_convert_zone(watch_date_time date_time, uint32_t origin_utc_offset, uint32_t destination_utc_offset): watch_utility.c'],['../group__utility.html#ga94f038ec0e1b8f3c48c4364b56566327',1,'watch_utility_date_time_convert_zone(watch_date_time date_time, uint32_t origin_utc_offset, uint32_t destination_utc_offset): watch_utility.c']]], ['watch_5futility_5fdate_5ftime_5ffrom_5funix_5ftime_205',['watch_utility_date_time_from_unix_time',['../group__utility.html#ga396e56109234aaa00993c3dd84f3f43c',1,'watch_utility_date_time_from_unix_time(uint32_t timestamp, uint32_t utc_offset): watch_utility.c'],['../group__utility.html#ga396e56109234aaa00993c3dd84f3f43c',1,'watch_utility_date_time_from_unix_time(uint32_t timestamp, uint32_t utc_offset): watch_utility.c']]], diff --git a/search/functions_0.js b/search/functions_0.js index acf40a7e..f479e7e8 100644 --- a/search/functions_0.js +++ b/search/functions_0.js @@ -1,5 +1,5 @@ var searchData= [ - ['_5f_5fattribute_5f_5f_212',['__attribute__',['../group__rtc.html#ga98366c1b71e09089b441d704193bb0d4',1,'__attribute__((deprecated("Use watch_rtc_set_date_time function instead"))) void watch_set_date_time(struct calendar_date_time date_time): watch_rtc.h'],['../group__rtc.html#ga7ce8c01a25eb364efb7ae6ed6dbca373',1,'__attribute__((deprecated("Use the watch_rtc_get_date_time function instead"))) void watch_get_date_time(struct calendar_date_time *date_time): watch_rtc.h'],['../group__rtc.html#ga811201003a3985a040f1f6bd3c5a69eb',1,'__attribute__((deprecated("Use the watch_rtc_register_tick_callback function instead"))) void watch_register_tick_callback(ext_irq_cb_t callback): watch_rtc.h'],['../group__debug.html#gab9e48ca472abf422d1e6389f371d8fbf',1,'__attribute__((deprecated("Use watch_enable_uart to enable the UART."))) void watch_enable_debug_uart(uint32_t baud): watch_uart.h'],['../group__debug.html#ga42455c49e1756fc2eabbabec6f0bd530',1,'__attribute__((deprecated("Use watch_uart_puts to print to the UART, or printf to log debug messages over USB."))) void watch_debug_putc(char c): watch_uart.h']]], + ['_5f_5fattribute_5f_5f_212',['__attribute__',['../group__rtc.html#ga98366c1b71e09089b441d704193bb0d4',1,'__attribute__((deprecated("Use watch_rtc_set_date_time function instead"))) void watch_set_date_time(struct calendar_date_time date_time): watch_rtc.h'],['../group__rtc.html#ga7ce8c01a25eb364efb7ae6ed6dbca373',1,'__attribute__((deprecated("Use the watch_rtc_get_date_time function instead"))) void watch_get_date_time(struct calendar_date_time *date_time): watch_rtc.h'],['../group__rtc.html#ga811201003a3985a040f1f6bd3c5a69eb',1,'__attribute__((deprecated("Use the watch_rtc_register_tick_callback function instead"))) void watch_register_tick_callback(ext_irq_cb_t callback): watch_rtc.h'],['../group__uart.html#gab9e48ca472abf422d1e6389f371d8fbf',1,'__attribute__((deprecated("Use watch_enable_uart to enable the UART."))) void watch_enable_debug_uart(uint32_t baud): watch_uart.h'],['../group__uart.html#ga42455c49e1756fc2eabbabec6f0bd530',1,'__attribute__((deprecated("Use watch_uart_puts to print to the UART, or printf to log debug messages over USB."))) void watch_debug_putc(char c): watch_uart.h']]], ['_5fwatch_5frtc_5fis_5fenabled_213',['_watch_rtc_is_enabled',['../group__rtc.html#ga3ac65a314540ae8b7be5b9015785d565',1,'watch_rtc.h']]] ]; diff --git a/search/functions_2.js b/search/functions_2.js index 9636f716..ecdcbb9f 100644 --- a/search/functions_2.js +++ b/search/functions_2.js @@ -29,7 +29,7 @@ var searchData= ['watch_5fenable_5fpull_5fdown_246',['watch_enable_pull_down',['../group__gpio.html#gae974fce4ac5d38ffe256186a84c63ff9',1,'watch_gpio.h']]], ['watch_5fenable_5fpull_5fup_247',['watch_enable_pull_up',['../group__gpio.html#ga55a16884f634ee0eb2c981d1b9a06a4d',1,'watch_gpio.h']]], ['watch_5fenable_5fspi_248',['watch_enable_spi',['../group__spi.html#ga77252649d1551483308f312131e80dec',1,'watch_spi.h']]], - ['watch_5fenable_5fuart_249',['watch_enable_uart',['../group__debug.html#ga38e750d3e02939bf056fde77f4ef6235',1,'watch_uart.h']]], + ['watch_5fenable_5fuart_249',['watch_enable_uart',['../group__uart.html#ga38e750d3e02939bf056fde77f4ef6235',1,'watch_uart.h']]], ['watch_5fenter_5fbackup_5fmode_250',['watch_enter_backup_mode',['../group__deepsleep.html#ga50dda38a8a83d7d957e3bb2bf13aa3ef',1,'watch_deepsleep.h']]], ['watch_5fenter_5fdeep_5fsleep_5fmode_251',['watch_enter_deep_sleep_mode',['../group__deepsleep.html#gaea469761889ff203385f3bfd88bb2451',1,'watch_deepsleep.h']]], ['watch_5fenter_5fsleep_5fmode_252',['watch_enter_sleep_mode',['../group__deepsleep.html#ga9f7a625290748f0df6ba2ceb27e0d81b',1,'watch_deepsleep.h']]], @@ -81,8 +81,8 @@ var searchData= ['watch_5fstop_5ftick_5fanimation_298',['watch_stop_tick_animation',['../group__slcd.html#gaf2c52b4430b4e78a066b3a2b104d142a',1,'watch_slcd.h']]], ['watch_5fstore_5fbackup_5fdata_299',['watch_store_backup_data',['../group__deepsleep.html#ga385b36922ec76c5fe697772f97a05846',1,'watch_deepsleep.h']]], ['watch_5ftick_5fanimation_5fis_5frunning_300',['watch_tick_animation_is_running',['../group__slcd.html#ga3764fb499e056f9a45588268f11be8a0',1,'watch_slcd.h']]], - ['watch_5fuart_5fgetc_301',['watch_uart_getc',['../group__debug.html#ga0c400bfcd52bb71e8de62c5ab2373db6',1,'watch_uart.h']]], - ['watch_5fuart_5fputs_302',['watch_uart_puts',['../group__debug.html#ga5d62683298c511f24adaab4bf6615c50',1,'watch_uart.h']]], + ['watch_5fuart_5fgetc_301',['watch_uart_getc',['../group__uart.html#ga0c400bfcd52bb71e8de62c5ab2373db6',1,'watch_uart.h']]], + ['watch_5fuart_5fputs_302',['watch_uart_puts',['../group__uart.html#ga5d62683298c511f24adaab4bf6615c50',1,'watch_uart.h']]], ['watch_5futility_5fconvert_5fto_5funix_5ftime_303',['watch_utility_convert_to_unix_time',['../group__utility.html#ga94f5cc404949bf4c0ac4bc4770ec8eda',1,'watch_utility_convert_to_unix_time(uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second, uint32_t utc_offset): watch_utility.c'],['../group__utility.html#ga94f5cc404949bf4c0ac4bc4770ec8eda',1,'watch_utility_convert_to_unix_time(uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second, uint32_t utc_offset): watch_utility.c']]], ['watch_5futility_5fdate_5ftime_5fconvert_5fzone_304',['watch_utility_date_time_convert_zone',['../group__utility.html#ga94f038ec0e1b8f3c48c4364b56566327',1,'watch_utility_date_time_convert_zone(watch_date_time date_time, uint32_t origin_utc_offset, uint32_t destination_utc_offset): watch_utility.c'],['../group__utility.html#ga94f038ec0e1b8f3c48c4364b56566327',1,'watch_utility_date_time_convert_zone(watch_date_time date_time, uint32_t origin_utc_offset, uint32_t destination_utc_offset): watch_utility.c']]], ['watch_5futility_5fdate_5ftime_5ffrom_5funix_5ftime_305',['watch_utility_date_time_from_unix_time',['../group__utility.html#ga396e56109234aaa00993c3dd84f3f43c',1,'watch_utility_date_time_from_unix_time(uint32_t timestamp, uint32_t utc_offset): watch_utility.c'],['../group__utility.html#ga396e56109234aaa00993c3dd84f3f43c',1,'watch_utility_date_time_from_unix_time(uint32_t timestamp, uint32_t utc_offset): watch_utility.c']]], diff --git a/search/groups_7.js b/search/groups_7.js index 50e5b4fc..f0c111b6 100644 --- a/search/groups_7.js +++ b/search/groups_7.js @@ -1,5 +1,5 @@ var searchData= [ - ['uart_420',['UART',['../group__debug.html',1,'']]], + ['uart_420',['UART',['../group__uart.html',1,'']]], ['utility_20functions_421',['Utility Functions',['../group__utility.html',1,'']]] ]; diff --git a/watch_8h_source.html b/watch_8h_source.html index 5a3dce14..1c31fe1c 100644 --- a/watch_8h_source.html +++ b/watch_8h_source.html @@ -101,26 +101,26 @@ $(function() {
    29 #include <stdbool.h>
    30 #include "driver_init.h"
    31 
    -
    54 #include "watch_app.h"
    -
    55 #include "watch_rtc.h"
    -
    56 #include "watch_slcd.h"
    -
    57 #include "watch_extint.h"
    -
    58 #include "watch_led.h"
    -
    59 #include "watch_buzzer.h"
    -
    60 #include "watch_adc.h"
    -
    61 #include "watch_gpio.h"
    -
    62 #include "watch_i2c.h"
    -
    63 #include "watch_spi.h"
    -
    64 #include "watch_uart.h"
    -
    65 #include "watch_deepsleep.h"
    -
    66 
    -
    67 #include "watch_private.h"
    -
    68 
    -
    75 bool watch_is_battery_low(void);
    -
    76 
    -
    82 bool watch_is_buzzer_or_led_enabled(void);
    -
    83 
    -
    84 #endif /* WATCH_H_ */
    +
    55 #include "watch_app.h"
    +
    56 #include "watch_rtc.h"
    +
    57 #include "watch_slcd.h"
    +
    58 #include "watch_extint.h"
    +
    59 #include "watch_led.h"
    +
    60 #include "watch_buzzer.h"
    +
    61 #include "watch_adc.h"
    +
    62 #include "watch_gpio.h"
    +
    63 #include "watch_i2c.h"
    +
    64 #include "watch_spi.h"
    +
    65 #include "watch_uart.h"
    +
    66 #include "watch_deepsleep.h"
    +
    67 
    +
    68 #include "watch_private.h"
    +
    69 
    +
    76 bool watch_is_battery_low(void);
    +
    77 
    +
    83 bool watch_is_buzzer_or_led_enabled(void);
    +
    84 
    +
    85 #endif /* WATCH_H_ */
    watch_is_battery_low
    bool watch_is_battery_low(void)
    Returns true when the battery voltage dips below 2.5V.
    watch_is_buzzer_or_led_enabled
    bool watch_is_buzzer_or_led_enabled(void)
    Returns true if either the buzzer or the LED driver is enabled.
    diff --git a/watch__spi_8h_source.html b/watch__spi_8h_source.html index 84175609..8ec1bb28 100644 --- a/watch__spi_8h_source.html +++ b/watch__spi_8h_source.html @@ -109,9 +109,9 @@ $(function() {
    50 
    56 bool watch_spi_read(uint8_t *buf, uint16_t length);
    57 
    -
    63 bool watch_spi_transfer(const uint8_t *data_out, uint8_t *data_in, uint16_t length);
    -
    64 
    -
    66 #endif
    +
    64 bool watch_spi_transfer(const uint8_t *data_out, uint8_t *data_in, uint16_t length);
    +
    65 
    +
    67 #endif
    watch_spi_read
    bool watch_spi_read(uint8_t *buf, uint16_t length)
    Reads a series of values from a device on the SPI bus.
    watch_spi_transfer
    bool watch_spi_transfer(const uint8_t *data_out, uint8_t *data_in, uint16_t length)
    Reads a series of values from a device on the SPI bus.
    watch_enable_spi
    void watch_enable_spi(void)
    Enables the SPI peripheral. Call this before attempting to interface with SPI devices.
    diff --git a/watch__uart_8h_source.html b/watch__uart_8h_source.html index 9e723208..237d3729 100644 --- a/watch__uart_8h_source.html +++ b/watch__uart_8h_source.html @@ -100,27 +100,27 @@ $(function() {
    28 #include "watch.h"
    29 
    34 
    -
    42 void watch_enable_uart(const uint8_t tx_pin, const uint8_t rx_pin, uint32_t baud);
    +
    42 void watch_enable_uart(const uint8_t tx_pin, const uint8_t rx_pin, uint32_t baud);
    43 
    -
    47 void watch_uart_puts(char *s);
    +
    47 void watch_uart_puts(char *s);
    48 
    -
    53 char watch_uart_getc(void);
    +
    53 char watch_uart_getc(void);
    54 
    55 // Begin deprecated functions:
    56 
    -
    60 __attribute__((deprecated("Use watch_enable_uart to enable the UART.")))
    +
    60 __attribute__((deprecated("Use watch_enable_uart to enable the UART.")))
    61 void watch_enable_debug_uart(uint32_t baud);
    62 
    -
    66 __attribute__((deprecated("Use watch_uart_puts to print to the UART, or printf to log debug messages over USB.")))
    +
    66 __attribute__((deprecated("Use watch_uart_puts to print to the UART, or printf to log debug messages over USB.")))
    67 void watch_debug_putc(char c);
    68 
    -
    72 __attribute__((deprecated("Use watch_uart_puts to print to the UART, or printf to log debug messages over USB.")))
    +
    72 __attribute__((deprecated("Use watch_uart_puts to print to the UART, or printf to log debug messages over USB.")))
    73 void watch_debug_puts(char *s);
    75 #endif
    -
    watch_uart_getc
    char watch_uart_getc(void)
    Receives a single byte from the UART's RX pin.
    -
    watch_enable_uart
    void watch_enable_uart(const uint8_t tx_pin, const uint8_t rx_pin, uint32_t baud)
    Initializes the debug UART.
    -
    watch_uart_puts
    void watch_uart_puts(char *s)
    Transmits a string of bytes on the UART's TX pin.
    -
    __attribute__
    __attribute__((deprecated("Use watch_enable_uart to enable the UART."))) void watch_enable_debug_uart(uint32_t baud)
    Initializes the debug UART.
    +
    watch_uart_getc
    char watch_uart_getc(void)
    Receives a single byte from the UART's RX pin.
    +
    watch_enable_uart
    void watch_enable_uart(const uint8_t tx_pin, const uint8_t rx_pin, uint32_t baud)
    Initializes the debug UART.
    +
    watch_uart_puts
    void watch_uart_puts(char *s)
    Transmits a string of bytes on the UART's TX pin.
    +
    __attribute__
    __attribute__((deprecated("Use watch_enable_uart to enable the UART."))) void watch_enable_debug_uart(uint32_t baud)
    Initializes the debug UART.
    watch.h