mirror of https://github.com/ARMmbed/mbed-os.git
analogout_api: clean up functions that are no longer part of the API.
parent
b233828ebb
commit
db45cd476f
|
@ -44,13 +44,9 @@
|
|||
|
||||
static uint8_t dac_initialized = 0;
|
||||
|
||||
uint8_t analogout_get_index(dac_t *obj)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void analogout_preinit(dac_t *obj, PinName pin)
|
||||
void analogout_init(dac_t *obj, PinName pin)
|
||||
{
|
||||
/* init in-memory structure */
|
||||
obj->dac = (DAC_TypeDef *) pinmap_peripheral(pin, PinMap_DAC);
|
||||
MBED_ASSERT((int) obj->dac != NC);
|
||||
|
||||
|
@ -58,12 +54,6 @@ void analogout_preinit(dac_t *obj, PinName pin)
|
|||
MBED_ASSERT((int) obj->channel != NC);
|
||||
|
||||
pin_mode(pin, Disabled);
|
||||
}
|
||||
|
||||
void analogout_init(dac_t *obj, PinName pin)
|
||||
{
|
||||
/* init in-memory structure */
|
||||
analogout_preinit(obj, pin);
|
||||
|
||||
if (!dac_initialized) {
|
||||
/* Initialize the DAC. Will disable both DAC channels, so should only be done once */
|
||||
|
|
Loading…
Reference in New Issue