adc_at91.c File Reference
ADC hardware-specific implementation. More...
#include "adc_at91.h"
#include <drv/adc.h>
#include <cfg/macros.h>
#include <cfg/compiler.h>
#include <io/arm.h>
#include "appconfig.h"
Go to the source code of this file.
Functions | |
| void | adc_hw_select_ch (uint8_t ch) |
| Select mux channel ch. | |
| uint16_t | adc_hw_read (void) |
| Start an ADC convertion. | |
| void | adc_hw_init (void) |
| Init ADC hardware. | |
Detailed Description
ADC hardware-specific implementation.This ADC module should be use both whit kernel or none. If you are using a kernel, the adc drive does not wait the finish of conversion but use a singal every time a required conversion are ended. This signal wake up a process that return a result of conversion. Otherwise, if you not use a kernl, this module wait whit a loop the finishing of conversion.
- Version:
- Id
- adc_at91.c 1236 2008-04-30 13:56:54Z asterix
Definition in file adc_at91.c.
Function Documentation
| uint16_t adc_hw_read | ( | void | ) | [inline] |
Start an ADC convertion.
If a kernel is present, preempt until convertion is complete, otherwise a busy wait on ADCS bit is done.
Definition at line 125 of file adc_at91.c.
| void adc_hw_select_ch | ( | uint8_t | ch | ) | [inline] |
