remove all deprecated functions
This commit is contained in:
@@ -151,10 +151,5 @@ void watch_enter_deep_sleep_mode(void);
|
||||
*/
|
||||
void watch_enter_backup_mode(void);
|
||||
|
||||
__attribute__((deprecated("Use watch_enter_sleep_mode or watch_enter_deep_sleep_mode instead")))
|
||||
void watch_enter_shallow_sleep(bool display_on);
|
||||
|
||||
__attribute__((deprecated("Use watch_enter_backup_mode instead")))
|
||||
void watch_enter_deep_sleep(void);
|
||||
/// @}
|
||||
#endif
|
||||
|
||||
@@ -76,10 +76,5 @@ void watch_disable_external_interrupts(void);
|
||||
*/
|
||||
void watch_register_interrupt_callback(const uint8_t pin, ext_irq_cb_t callback, watch_interrupt_trigger trigger);
|
||||
|
||||
__attribute__((deprecated("Use watch_register_interrupt_callback or watch_register_extwake_callback instead")))
|
||||
void watch_register_button_callback(const uint8_t pin, ext_irq_cb_t callback);
|
||||
|
||||
__attribute__((deprecated("Use watch_enable_external_interrupts instead")))
|
||||
void watch_enable_buttons(void);
|
||||
/// @}
|
||||
#endif
|
||||
|
||||
@@ -84,10 +84,5 @@ void watch_set_led_yellow(void);
|
||||
/** @brief Turns both the red and the green LEDs off. */
|
||||
void watch_set_led_off(void);
|
||||
|
||||
__attribute__((deprecated("Use watch_enable_leds instead")))
|
||||
void watch_enable_led(bool unused);
|
||||
|
||||
__attribute__((deprecated("Use watch_disable_leds instead")))
|
||||
void watch_disable_led(bool unused);
|
||||
/// @}
|
||||
#endif
|
||||
|
||||
@@ -147,24 +147,5 @@ void watch_rtc_disable_matching_periodic_callbacks(uint8_t mask);
|
||||
*/
|
||||
void watch_rtc_disable_all_periodic_callbacks(void);
|
||||
|
||||
/** @brief Sets the system date and time.
|
||||
* @param date_time A struct representing the date and time you wish to set.
|
||||
*/
|
||||
__attribute__((deprecated("Use watch_rtc_set_date_time function instead")))
|
||||
void watch_set_date_time(struct calendar_date_time date_time);
|
||||
|
||||
/** @brief Returns the system date and time in the provided struct.
|
||||
* @param date_time A pointer to a calendar_date_time struct. It will have with the correct date and time on return.
|
||||
*/
|
||||
__attribute__((deprecated("Use the watch_rtc_get_date_time function instead")))
|
||||
void watch_get_date_time(struct calendar_date_time *date_time);
|
||||
|
||||
/** @brief Registers a "tick" callback that will be called once per second.
|
||||
* @param callback The function you wish to have called when the clock ticks. If you pass in NULL, the tick
|
||||
* interrupt will still be enabled, but no callback function will be called.
|
||||
*/
|
||||
__attribute__((deprecated("Use the watch_rtc_register_tick_callback function instead")))
|
||||
void watch_register_tick_callback(ext_irq_cb_t callback);
|
||||
|
||||
/// @}
|
||||
#endif
|
||||
|
||||
@@ -52,24 +52,5 @@ void watch_uart_puts(char *s);
|
||||
*/
|
||||
char watch_uart_getc(void);
|
||||
|
||||
// Begin deprecated functions:
|
||||
|
||||
/** @brief Initializes the debug UART.
|
||||
* @param baud The baud rate
|
||||
*/
|
||||
__attribute__((deprecated("Use watch_enable_uart to enable the UART.")))
|
||||
void watch_enable_debug_uart(uint32_t baud);
|
||||
|
||||
/** @brief Outputs a single character on the debug UART.
|
||||
* @param c The character you wish to output.
|
||||
*/
|
||||
__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);
|
||||
|
||||
/** @brief Outputs a string on the debug UART.
|
||||
* @param s A null-terminated string.
|
||||
*/
|
||||
__attribute__((deprecated("Use watch_uart_puts to print to the UART, or printf to log debug messages over USB.")))
|
||||
void watch_debug_puts(char *s);
|
||||
/// @}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user