aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/wirish_analog.c
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@mit.edu>2010-09-26 21:47:55 -0400
committerMarti Bolivar <mbolivar@mit.edu>2010-09-26 21:47:55 -0400
commit849bc0f8f6abf42567a152cf6e01bf7349902aac (patch)
tree8d7dd363d7978e320fb71626e9ddc23285c26205 /wirish/wirish_analog.c
parentc13e850abe053edaa1aad6ef7b928c6bf9288cb3 (diff)
downloadlibrambutan-849bc0f8f6abf42567a152cf6e01bf7349902aac.tar.gz
librambutan-849bc0f8f6abf42567a152cf6e01bf7349902aac.zip
wirish reformatted and code-styled
Diffstat (limited to 'wirish/wirish_analog.c')
-rw-r--r--wirish/wirish_analog.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/wirish/wirish_analog.c b/wirish/wirish_analog.c
index 1b911bc..3c63342 100644
--- a/wirish/wirish_analog.c
+++ b/wirish/wirish_analog.c
@@ -1,4 +1,4 @@
-/* *****************************************************************************
+/******************************************************************************
* The MIT License
*
* Copyright (c) 2010 Perry Hung.
@@ -20,22 +20,22 @@
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
- * ****************************************************************************/
+ *****************************************************************************/
/**
- * @brief
+ * @brief Arduino-compatible ADC implementation.
*/
#include "libmaple.h"
#include "wirish.h"
#include "io.h"
-/* Assumes that the ADC has been initialized and
- * that the pin is set to ANALOG_INPUT */
+/* Assumes that the ADC has been initialized and that the pin is set
+ * to ANALOG_INPUT */
uint32 analogRead(uint8 pin) {
if(PIN_MAP[pin].adc == ADC_INVALID) {
return 0;
- }
+ }
return adc_read(PIN_MAP[pin].adc);
}