From a11f7da53638ee4fe282c7b5725294ca1780f9bf Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Sun, 2 Feb 2014 19:24:43 +0100 Subject: added deinit() routines for all modules (not implemented so far) --- include/gfx.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/gfx.h b/include/gfx.h index 3a10103f..d261a6ce 100644 --- a/include/gfx.h +++ b/include/gfx.h @@ -204,8 +204,15 @@ extern "C" { */ void gfxInit(void); - /* Compatibility for old programs */ - void DEPRECATED("Use gfxInit() instead") gdispInit(void); + /** + * @brief The one call to end it all + * + * @note This will deinitialise each sub-system that has been turned on. + * @note Do not call this without a previous @p gfxInit(); + * + * @api + */ + void gfxDeinit(void); #ifdef __cplusplus } -- cgit v1.2.3 From d2de6c351785f323fd4b2a4e337a95bda4c9a626 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Sun, 2 Feb 2014 19:55:20 +0100 Subject: implemented gtimerDeinit() --- include/gtimer/gtimer.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/gtimer/gtimer.h b/include/gtimer/gtimer.h index 14de352f..06072c7c 100644 --- a/include/gtimer/gtimer.h +++ b/include/gtimer/gtimer.h @@ -68,13 +68,22 @@ extern "C" { #endif /** - * @brief Initialise a timer. + * @brief Initialise a timer * - * @param[in] pt pointer to a GTimer structure + * @param[in] pt Pointer to a GTimer structure * * @api */ -void gtimerInit(GTimer *pt); +void gtimerInit(GTimer* pt); + +/** + * @brief Deinitialise a timer + * + * @param[in] pt Pointer to a GTimer structure + * + * @api + */ +void gtimerDeinit(GTimer* pt); /** * @brief Set a timer going or alter its properties if it is already going. -- cgit v1.2.3