aconno board support file for acd52832 device. Ver1.0
Dependents: acd52832_TempRead acd52832_LSM9DS1 beep beep_2 ... more
acd52832_bsp.h
00001 /* Copyright (c) 2016 Aconno. All Rights Reserved. 00002 * 00003 * Licensees are granted free, non-transferable use of the information. NO 00004 * WARRANTY of ANY KIND is provided. This heading must NOT be removed from 00005 * the file. 00006 * 00007 */ 00008 00009 /** 00010 * General IO pins 00011 */ 00012 #define PIN_BUTTON (p25) //S1 gpio number (Active low) 00013 #define PIN_LED (p26) //LD1 gpio number (Active low) 00014 #define PIN_IRLED (p27) //LD4 gpio number (Active high) 00015 #define PIN_BUZZER (p31) //LS1 gpio number (Active high) 00016 00017 #define PIN_LED_RED (p22) //Module red LED 00018 #define PIN_LED_BLUE (p23) //Module blue LED 00019 #define PIN_LED_GREEN (p24) //Module green LED 00020 00021 /** 00022 * Alternate General IO pins 00023 * Connect: 00024 * (+, c, -) (Orange, Red, Brown) 00025 */ 00026 #define PIN_SERVO1 (p25) //Servo1 gpio number 00027 #define PIN_SERVO2 (p26) //Servo2 gpio number 00028 00029 /** 00030 * Analog to Digital Conversion (ADC) pins 00031 */ 00032 #define ADC_BAT (p2) //Battery 00033 #define ADC_POT (p28) //Potentiometer 00034 #define ADC_LIGHT (p29) //Light Dependant Resistor 00035 #define ADC_TEMP (p30) //Temperature Dependant Resistor 00036 00037 /** 00038 * Electronic Paper Display (EPD) pins 00039 */ 00040 #define PIN_EPD_CS (p5) //EPD Chip select pin (Active low) 00041 #define PIN_EPD_DC (p6) //EPD Data/Command pin (Data active high) 00042 #define PIN_EPD_RST (p7) //EPD Reset pin (Active low) 00043 #define PIN_EPD_BUSY (p8) //EPD Busy pin (Active low) 00044 #define PIN_EPD_SCK (p4) //EPD SCK pin 00045 #define PIN_EPD_MOSI (p3) //EPD MOSI pin 00046 #define PIN_EPD_MISO (0xFF) //EPD MISO pin not used 00047 00048 /** 00049 * IO Expander pins 00050 */ 00051 #define PIN_EXP_RST (p19) //IO Expander reset pin 00052 #define PIN_EXP_INT_A (p11) //IO Expander interrupt for PORTA 00053 #define PIN_EXP_INT_B (p12) //IO Expander interrupt for PORTB 00054 #define PIN_EXP_SDA (p20) //TWI SCK pin 00055 #define PIN_EXP_SCL (p21) //TWI SCL pin 00056 00057 /** 00058 * Pins concerning TWI Addresses 00059 * Control bits are added by nrf_drv_twi 00060 */ 00061 #define TWI_EXPANDER_ADDR (0x40) //Port expander address 00062 #define TWI_AG_ADDR (0x6A << 1) //Accelerometer/Gyroscope address 00063 #define TWI_MAG_ADDR (0x1C << 1) //Magnetometer address 00064 00065 /** 00066 * Define structure used by bluetooth library 00067 * Define if BLE_LIB is defined as preprocessor symbol 00068 */ 00069 #ifdef BLE_LIB 00070 // Low frequency clock source to be used by the SoftDevice 00071 #define NRF_CLOCK_LFCLKSRC { \ 00072 .source = NRF_CLOCK_LF_SRC_XTAL, \ 00073 .rc_ctiv = 0, \ 00074 .rc_temp_ctiv = 0, \ 00075 .xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM} 00076 #endif
Generated on Wed Jul 13 2022 07:29:27 by 1.7.2