aconno board support file for acd52832 device. Ver1.0

Dependents:   acd52832_TempRead acd52832_LSM9DS1 beep beep_2 ... more

Committer:
jurica238814
Date:
Thu Sep 15 12:00:22 2016 +0000
Revision:
0:f36338abc91d
Child:
1:f8335dffc2f4
Init commit.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jurica238814 0:f36338abc91d 1 /* Copyright (c) 2016 Aconno. All Rights Reserved.
jurica238814 0:f36338abc91d 2 *
jurica238814 0:f36338abc91d 3 * Licensees are granted free, non-transferable use of the information. NO
jurica238814 0:f36338abc91d 4 * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
jurica238814 0:f36338abc91d 5 * the file.
jurica238814 0:f36338abc91d 6 *
jurica238814 0:f36338abc91d 7 */
jurica238814 0:f36338abc91d 8
jurica238814 0:f36338abc91d 9 /**
jurica238814 0:f36338abc91d 10 * General IO pins
jurica238814 0:f36338abc91d 11 */
jurica238814 0:f36338abc91d 12 #define PIN_BUTTON (p25) //S1 gpio number (Active low)
jurica238814 0:f36338abc91d 13 #define PIN_LED (p26) //LD1 gpio number (Active low)
jurica238814 0:f36338abc91d 14 #define PIN_IRLED (p27) //LD4 gpio number (Active high)
jurica238814 0:f36338abc91d 15 #define PIN_BUZZER (p31) //LS1 gpio number (Active high)
jurica238814 0:f36338abc91d 16
jurica238814 0:f36338abc91d 17 #define PIN_LED_RED (p22) //Module red LED
jurica238814 0:f36338abc91d 18 #define PIN_LED_BLUE (p23) //Module blue LED
jurica238814 0:f36338abc91d 19 #define PIN_LED_GREEN (p24) //Module green LED
jurica238814 0:f36338abc91d 20
jurica238814 0:f36338abc91d 21 /**
jurica238814 0:f36338abc91d 22 * Alternate General IO pins
jurica238814 0:f36338abc91d 23 * Connect:
jurica238814 0:f36338abc91d 24 * (+, c, -) (Orange, Red, Brown)
jurica238814 0:f36338abc91d 25 */
jurica238814 0:f36338abc91d 26 #define PIN_SERVO1 (p25) //Servo1 gpio number
jurica238814 0:f36338abc91d 27 #define PIN_SERVO2 (p26) //Servo2 gpio number
jurica238814 0:f36338abc91d 28
jurica238814 0:f36338abc91d 29 /**
jurica238814 0:f36338abc91d 30 * Analog to Digital Conversion (ADC) pins
jurica238814 0:f36338abc91d 31 */
jurica238814 0:f36338abc91d 32 #define ADC_BAT (p2) //Battery
jurica238814 0:f36338abc91d 33 #define ADC_POT (p28) //Potentiometer
jurica238814 0:f36338abc91d 34 #define ADC_LIGHT (p29) //Light Dependant Resistor
jurica238814 0:f36338abc91d 35 #define ADC_TEMP (p30) //Temperature Dependant Resistor
jurica238814 0:f36338abc91d 36
jurica238814 0:f36338abc91d 37 /**
jurica238814 0:f36338abc91d 38 * Electronic Paper Display (EPD) pins
jurica238814 0:f36338abc91d 39 */
jurica238814 0:f36338abc91d 40 #define PIN_EPD_CS (p5) //EPD Chip select pin (Active low)
jurica238814 0:f36338abc91d 41 #define PIN_EPD_DC (p6) //EPD Data/Command pin (Data active high)
jurica238814 0:f36338abc91d 42 #define PIN_EPD_RST (p7) //EPD Reset pin (Active low)
jurica238814 0:f36338abc91d 43 #define PIN_EPD_BUSY (p8) //EPD Busy pin (Active low)
jurica238814 0:f36338abc91d 44 #define PIN_EPD_SCK (p4) //EPD SCK pin
jurica238814 0:f36338abc91d 45 #define PIN_EPD_MOSI (p3) //EPD MOSI pin
jurica238814 0:f36338abc91d 46 #define PIN_EPD_MISO (0xFF) //EPD MISO pin not used
jurica238814 0:f36338abc91d 47
jurica238814 0:f36338abc91d 48 /**
jurica238814 0:f36338abc91d 49 * IO Expander pins
jurica238814 0:f36338abc91d 50 */
jurica238814 0:f36338abc91d 51 #define PIN_EXP_RST (p19) //IO Expander reset pin
jurica238814 0:f36338abc91d 52 #define PIN_EXP_INT_A (p11) //IO Expander interrupt for PORTA
jurica238814 0:f36338abc91d 53 #define PIN_EXP_INT_B (p12) //IO Expander interrupt for PORTB
jurica238814 0:f36338abc91d 54 #define PIN_EXP_SDA (p20) //TWI SCK pin
jurica238814 0:f36338abc91d 55 #define PIN_EXP_SCL (p21) //TWI SCL pin
jurica238814 0:f36338abc91d 56
jurica238814 0:f36338abc91d 57 /**
jurica238814 0:f36338abc91d 58 * Pins concerning TWI Addresses
jurica238814 0:f36338abc91d 59 * Control bits are added by nrf_drv_twi
jurica238814 0:f36338abc91d 60 */
jurica238814 0:f36338abc91d 61 #define TWI_EXPANDER_ADDR (0x20) //Port expander address
jurica238814 0:f36338abc91d 62 #define TWI_AG_ADDR (0x6A) //Accelerometer/Gyroscope address
jurica238814 0:f36338abc91d 63 #define TWI_MAG_ADDR (0x1C) //Magnetometer address
jurica238814 0:f36338abc91d 64
jurica238814 0:f36338abc91d 65 /**
jurica238814 0:f36338abc91d 66 * Define structure used by bluetooth library
jurica238814 0:f36338abc91d 67 * Define if BLE_LIB is defined as preprocessor symbol
jurica238814 0:f36338abc91d 68 */
jurica238814 0:f36338abc91d 69 #ifdef BLE_LIB
jurica238814 0:f36338abc91d 70 // Low frequency clock source to be used by the SoftDevice
jurica238814 0:f36338abc91d 71 #define NRF_CLOCK_LFCLKSRC { \
jurica238814 0:f36338abc91d 72 .source = NRF_CLOCK_LF_SRC_XTAL, \
jurica238814 0:f36338abc91d 73 .rc_ctiv = 0, \
jurica238814 0:f36338abc91d 74 .rc_temp_ctiv = 0, \
jurica238814 0:f36338abc91d 75 .xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM}
jurica238814 0:f36338abc91d 76 #endif