2014-03-30 09:10:31 +00:00
|
|
|
/*
|
|
|
|
* This file is subject to the terms of the GFX License. If a copy of
|
|
|
|
* the license was not distributed with this file, you can obtain one at:
|
|
|
|
*
|
|
|
|
* http://ugfx.org/license.html
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GAUDIO_PLAY_BOARD_H
|
|
|
|
#define GAUDIO_PLAY_BOARD_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This routine is defined in the driver - the timer interrupt should call this routine.
|
|
|
|
*
|
|
|
|
* static void gaudio_play_pwm_timer_callbackI(void);
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2018-06-23 03:02:07 +00:00
|
|
|
static gBool gaudio_play_pwm_setup(uint32_t frequency, ArrayDataFormat format) {
|
2014-03-30 09:10:31 +00:00
|
|
|
/* Initialise the PWM - use a midpoint value for the initial PWM value */
|
|
|
|
/* Initialise the timer interrupt @ frequency */
|
2018-06-23 03:02:07 +00:00
|
|
|
/* Return gFalse if any parameter invalid */
|
2014-03-30 09:10:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void gaudio_play_pwm_start(void) {
|
|
|
|
/* Start the PWM */
|
|
|
|
/* Start the timer interrupt */
|
|
|
|
}
|
|
|
|
|
|
|
|
static void gaudio_play_pwm_stop(void) {
|
|
|
|
/* Stop the timer interrupt */
|
|
|
|
/* Stop the PWM */
|
|
|
|
}
|
|
|
|
|
|
|
|
static void gaudio_play_pwm_setI(uint16_t value) {
|
|
|
|
/* Set the PWM value */
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* GAUDIO_PLAY_BOARD_H */
|