50 lines
895 B
C
50 lines
895 B
C
#pragma once
|
|
|
|
#ifndef HARDWARE
|
|
#define HARDWARE 2
|
|
#endif
|
|
|
|
#if HARDWARE == 2
|
|
#define I2S_BCLK 19
|
|
#define I2S_WCLK 21
|
|
#define I2S_DATA 18
|
|
#define DAC_SDMODE 23
|
|
|
|
#define NFC_SS 25
|
|
#define NFC_SCK 14
|
|
#define NFC_MOSI 26
|
|
#define NFC_MISO 27
|
|
#define NFC_IRQ 13
|
|
|
|
#define PWR_HOLD 4
|
|
#define PWR_BTN 5
|
|
#define MEAS_EN 22
|
|
|
|
#define I2C_SDA 33
|
|
#define I2C_SCL 32
|
|
#define MEAS_ADC 1 //ADC1_CH7
|
|
|
|
#define HALL_INPUT 0 //ADC1_CH0
|
|
#endif
|
|
|
|
#if HARDWARE == 1
|
|
#define I2S_BCLK 21
|
|
#define I2S_WCLK 13
|
|
#define I2S_DATA 14
|
|
#define DAC_SDMODE 27
|
|
|
|
#define NFC_SS 25
|
|
#define NFC_SCK 18
|
|
#define NFC_MOSI 23
|
|
#define NFC_MISO 19
|
|
#define NFC_RST 22 //not connectedx
|
|
#define NFC_IRQ 26
|
|
|
|
#define PWR_HOLD 4
|
|
#define PWR_BTN 9
|
|
#define MEAS_EN 10
|
|
#define MEAS_ADC 35 //ADC1_CH7
|
|
|
|
#define HALL_INPUT 36 //ADC1_CH0
|
|
|
|
#endif |