This repository has been archived on 2024-11-23. You can view files and clone it, but cannot push or open issues or pull requests.
SSTV-Decoder/include/adc.h

13 lines
224 B
C
Raw Normal View History

2023-04-27 13:26:10 +08:00
#pragma once
2023-04-28 16:20:46 +08:00
#include "derivative.h"
2023-04-27 13:26:10 +08:00
2023-04-28 16:20:46 +08:00
#define ADC_M 2048
2023-04-28 01:59:54 +08:00
extern int16_t adc_buf[ADC_M];
2023-04-28 16:20:46 +08:00
extern uint16_t pADC;
2023-04-28 01:59:54 +08:00
extern uint8_t fADC;
2023-04-27 23:36:16 +08:00
void adc0_Init();
int16_t adc0_TR_DATA();
2023-04-28 16:20:46 +08:00
void adc0_read_buf(int16_t *data, uint16_t len);