diff options
author | jaseg <git@jaseg.net> | 2020-01-23 14:38:36 +0100 |
---|---|---|
committer | jaseg <git@jaseg.net> | 2020-01-23 14:38:36 +0100 |
commit | 410e38651052038e34843b17269d61e75720f0ba (patch) | |
tree | 987d1853c55b152d5e1362af4420fa52fcd56a81 /gm_platform/fw/adc.h | |
parent | 6a49b8399fb156d427b5d15746de877ac933ba3d (diff) | |
download | master-thesis-410e38651052038e34843b17269d61e75720f0ba.tar.gz master-thesis-410e38651052038e34843b17269d61e75720f0ba.tar.bz2 master-thesis-410e38651052038e34843b17269d61e75720f0ba.zip |
board bringup: adc, usart working
Diffstat (limited to 'gm_platform/fw/adc.h')
-rw-r--r-- | gm_platform/fw/adc.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/gm_platform/fw/adc.h b/gm_platform/fw/adc.h new file mode 100644 index 0000000..c526858 --- /dev/null +++ b/gm_platform/fw/adc.h @@ -0,0 +1,28 @@ +/* Megumin LED display firmware + * Copyright (C) 2018 Sebastian Götte <code@jaseg.net> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef __ADC_H__ +#define __ADC_H__ + +#include "global.h" + +extern volatile uint16_t adc_buf[ADC_BUFSIZE]; + +void adc_init(void); +void adc_configure_scope_mode(int sampling_interval_ns); + +#endif/*__ADC_H__*/ |