From 41271d632b74f5cf47c30d3b699eb6b2786f2136 Mon Sep 17 00:00:00 2001 From: inmarket Date: Sat, 23 Jun 2018 13:02:07 +1000 Subject: Added new type definitions - moving towards V3.0 --- src/gadc/gadc.h | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'src/gadc/gadc.h') diff --git a/src/gadc/gadc.h b/src/gadc/gadc.h index 94321192..3e995db6 100644 --- a/src/gadc/gadc.h +++ b/src/gadc/gadc.h @@ -94,10 +94,6 @@ typedef void (*GADCISRCallbackFunction)(void); /* External declarations. */ /*===========================================================================*/ -#ifdef __cplusplus -extern "C" { -#endif - /** * @brief Initialise the high speed ADC. * @details Initialises but does not start the conversions. @@ -219,14 +215,14 @@ void gadcLowSpeedGet(uint32_t physdev, adcsample_t *buffer); /** * @brief Perform a low speed ADC conversion with callback (in a thread context) - * @details Returns FALSE if internal memory allocation fails + * @details Returns gFalse if internal memory allocation fails * * @param[in] physdev A value passed to describe which physical ADC devices/channels to use. * @param[in] buffer The static buffer to put the ADC samples into. * @param[in] fn The callback function to call when the conversion is complete. * @param[in] param A parameter to pass to the callback function. * - * @return FALSE if no free low speed ADC slots. + * @return gFalse if no free low speed ADC slots. * * @note This may be safely called from within a GTimer callback. * @note The callback may take a while to occur if the high speed ADC is running as the @@ -240,11 +236,7 @@ void gadcLowSpeedGet(uint32_t physdev, adcsample_t *buffer); * * @api */ -bool_t gadcLowSpeedStart(uint32_t physdev, adcsample_t *buffer, GADCCallbackFunction fn, void *param); - -#ifdef __cplusplus -} -#endif +gBool gadcLowSpeedStart(uint32_t physdev, adcsample_t *buffer, GADCCallbackFunction fn, void *param); #endif /* GFX_USE_GADC */ -- cgit v1.2.3