EasyManuals Logo
Home>Texas Instruments>Microcontrollers>CC2540DK-MINI

Texas Instruments CC2540DK-MINI Software Developers Guide

Texas Instruments CC2540DK-MINI
162 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #66 background imageLoading...
Page #66 background image
ADC
www.ti.com
66
SWRU271H–October 2010–Revised April 2019
Submit Documentation Feedback
Copyright © 2010–2019, Texas Instruments Incorporated
Drivers
The following drivers are supported:
6.2 ADC
To include the ADC driver, define HAL_ADC=TRUE in the preprocessor definitions. For the ADC API, see
the hal_adc.h header file. CC2541/43/44/45 Peripherals Software Examples has several ADC examples.
6.3 AES
To include the AES driver, define HAL_AES=TRUE. The stack requires AES for encryption. Always set
this symbol set to TRUE. You cannot reuse DMA channels 1 and 2 because the AES driver uses them.
Set the following in hal_aes.h:
You can find the AES API in hal_ase.h. TI recommends letting the application use the HCI encrypt and
decrypt functions (from hci.h):
6.4 LCD
To include the LCD driver, define HAL_LCD=TRUE in the preprocessor definitions. TI designed the driver
to function with the LCD on the SmartRF05 boards. You must modify parts of the driver such as the pin
and port definitions in hal_lcd.c to use it with custom hardware. For an example using the LCD driver, see
the CC2540/1 configuration in the SimpleBLEPeripheral project.
6.5 LED
To include the LED driver, define HAL_LED=TRUE in the preprocessor definitions. TI designed the driver
to function with the LEDs on the key fob. You must modify parts of the driver such as the LED bit
definitions in hal_led.c to use it with custom hardware. For an example using the LED driver, see the
CC2540/1 DK-miniKeyfob in the SimpleBLEPeripheral project.
6.6 KEY
The KEY driver handles button inputs. To include the KEY driver, define HAL_KEY=TRUE in the
preprocessor definitions. TI designed the driver to function with the buttons on the key fob or SmartRF05
Board depending on whether CC2540_MINIDK is defined. You must modify parts of the driver such as the
port and pin definitions in hal_key.c to use it with custom hardware. For an example using the KEY driver,
see the SimpleBLEPeripheral project.
6.7 DMA
To include the DMA driver, define HAL_DMA=TRUE in the preprocessor definitions. Because the AES
driver uses the DMA driver, always include the DMA driver in the project. Channels 1 and 2 are reserved
for the AES driver. If the UART DMA or SPI driver is used, other channels are used. You can find the
DMA API in hal_dma.h. For an example of using the DMA driver, see the SPI driver.
6.8 UART and SPI
Describing the UART and SPI drivers is beyond the scope of this document. For several UART and SPI
examples, specifically the Bluetooth Low Energy serial bridge, see the Device Information Service
(Bluetooth Specification), version 1.0 (24-May-2011).

Table of Contents

Other manuals for Texas Instruments CC2540DK-MINI

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments CC2540DK-MINI and is the answer not in the manual?

Texas Instruments CC2540DK-MINI Specifications

General IconGeneral
BrandTexas Instruments
ModelCC2540DK-MINI
CategoryMicrocontrollers
LanguageEnglish

Related product manuals