port buzzer and LED functions to gossamer framework
This commit is contained in:
@@ -60,8 +60,8 @@
|
||||
// #include "watch_rtc.h"
|
||||
// #include "watch_slcd.h"
|
||||
// #include "watch_extint.h"
|
||||
// #include "watch_led.h"
|
||||
// #include "watch_buzzer.h"
|
||||
#include "watch_led.h"
|
||||
#include "watch_buzzer.h"
|
||||
// #include "watch_adc.h"
|
||||
#include "watch_gpio.h"
|
||||
// #include "watch_i2c.h"
|
||||
@@ -72,13 +72,6 @@
|
||||
|
||||
// #include "watch_private.h"
|
||||
|
||||
/** @brief Returns true if either the buzzer or the LED driver is enabled.
|
||||
* @details Both the buzzer and the LED use the TCC peripheral to drive their behavior. This function returns true if that
|
||||
* peripheral is enabled. You can use this function to determine whether you need to call the watch_disable_leds or
|
||||
* or watch_enable_buzzer functions before using these peripherals.
|
||||
*/
|
||||
bool watch_is_buzzer_or_led_enabled(void);
|
||||
|
||||
/** @brief Returns true if USB is enabled.
|
||||
*/
|
||||
bool watch_is_usb_enabled(void);
|
||||
|
||||
@@ -27,7 +27,14 @@
|
||||
|
||||
#include "watch.h"
|
||||
|
||||
/** @addtogroup buzzer Buzzer
|
||||
/** @brief Returns true if either the buzzer or the LED driver is enabled.
|
||||
* @details Both the buzzer and the LED use the TCC peripheral to drive their behavior. This function returns true if that
|
||||
* peripheral is enabled. You can use this function to determine whether you need to call the watch_disable_leds or
|
||||
* or watch_enable_buzzer functions before using these peripherals.
|
||||
*/
|
||||
bool watch_is_buzzer_or_led_enabled(void);
|
||||
|
||||
/** @addtogroup tcc Buzzer and LED Control (via the TCC peripheral)
|
||||
* @brief This section covers functions related to the piezo buzzer embedded in the F-91W's back plate.
|
||||
*/
|
||||
/// @{
|
||||
|
||||
@@ -32,9 +32,6 @@ void _watch_init(void);
|
||||
/// Initializes the real-time clock peripheral.
|
||||
void _watch_rtc_init(void);
|
||||
|
||||
/// Called by buzzer and LED setup functions. You should not call this from your app.
|
||||
void _watch_enable_tcc(void);
|
||||
|
||||
/// Called by buzzer and LED teardown functions. You should not call this from your app.
|
||||
void _watch_disable_tcc(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user