implemented some deinit()

ugfx_release_2.6
Joel Bodenmann 2014-02-02 19:52:46 +01:00
parent a11f7da536
commit 7825434591
4 changed files with 16 additions and 4 deletions

View File

@ -249,7 +249,15 @@ void _gadcInit(void)
void _gadcDeinit(void)
{
/* ToDo */
/* commented stuff is ToDo */
// gadc_lld_deinit();
gfxSemDestroy(&gadcsem);
gfxMutexDestroy(&gadcmutex);
//gtimerDeinit(&LowSpeedGTimer);
#if GFX_USE_GEVENT
//gtimerDeinit(&HighSpeedGTimer);
#endif
}
static inline void StartADC(bool_t onNoHS) {

View File

@ -94,7 +94,10 @@ void _gaudinInit(void)
void _gaudinDeinit(void)
{
/* ToDo */
// Commented stuff still ToDo
#if GFX_USE_GEVENT
gtimerDeinit(&AudGTimer);
#endif
}
bool_t gaudinInit(uint16_t channel, uint32_t frequency, audin_sample_t *buffer, size_t bufcount, size_t samplesPerEvent) {

View File

@ -53,7 +53,7 @@ void _geventInit(void)
void _geventDeinit(void)
{
/* ToDo */
gfxMutexDestroy(&geventMutex);
}
void geventListenerInit(GListener *pl) {

View File

@ -126,7 +126,8 @@ void _gtimerInit(void)
void _gtimerDeinit(void)
{
/* ToDo */
gfxSemDestroy(&waitsem);
gfxMutexDestroy(&mutex);
}
void gtimerInit(GTimer *pt) {