資源簡介
nrf51822關于ADC的采集例程,內(nèi)嵌s110協(xié)議棧和串口通信,希望對大家有所幫助,歡迎大家下載。

代碼片段和文件信息
/*?Copyright?(c)?2013?Nordic?Semiconductor.?All?Rights?Reserved.
?*
?*?The?information?contained?herein?is?property?of?Nordic?Semiconductor?ASA.
?*?Terms?and?conditions?of?usage?are?described?in?detail?in?NORDIC
?*?SEMICONDUCTOR?STANDARD?SOFTWARE?LICENSE?AGREEMENT.
?*
?*?Licensees?are?granted?free?non-transferable?use?of?the?information.?NO
?*?WARRANTY?of?ANY?KIND?is?provided.?This?heading?must?NOT?be?removed?from
?*?the?file.
?*
?*/
#include?“app_uart.h“
#include?“app_fifo.h“
#include?“nrf.h“
#include?“nrf_gpio.h“
#include?“app_error.h“
#include?“app_util.h“
#include?“app_gpiote.h“
#define?FIFO_LENGTH(F)?????????????(F.write_pos?-?F.read_pos)???????????????/**#define?UART_INSTANCE_GPIOTE_base??0x00FF???????????????????????????????????/**se?for?UART?instance?ID?when?flow?control?is?used.?The?userid?from?GPIOTE?will?be?used?with?padded?0xFF?at?LSB?for?easy?converting?the?instance?id?to?GPIOTE?id.?*/
#define?UART_INSTANCE_ID_INVALID???0x0000???????????????????????????????????/**
/**?@brief?States?for?the?app_uart?state?machine.?*/
typedef?enum
{
????UART_OFF???????????????????????????????????????????????????????????????/**????UART_READY?????????????????????????????????????????????????????????????/**????UART_ON????????????????????????????????????????????????????????????????/**????UART_WAIT_CLOSE????????????????????????????????????????????????????????/**}?app_uart_states_t;
/**?@brief?State?transition?events?for?the?app_uart?state?machine.?*/
typedef?enum
{
????ON_CTS_HIGH????????????????????????????????????????????????????????????/**????ON_CTS_LOW?????????????????????????????????????????????????????????????/**????ON_UART_PUT????????????????????????????????????????????????????????????/**????ON_TX_READY????????????????????????????????????????????????????????????/**????ON_UART_CLOSE??????????????????????????????????????????????????????????/**}?app_uart_state_events_t;
static?app_fifo_t??????????????????m_rx_fifo;???????????????????????????????/**static?app_fifo_t??????????????????m_tx_fifo;???????????????????????????????/**
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2014-10-17?12:50??adc_sampling_ble_app_uart\
?????目錄???????????0??2014-10-17?15:20??adc_sampling_ble_app_uart\app_uart_library_example_with_ble\
?????文件???????19572??2014-10-17?12:42??adc_sampling_ble_app_uart\app_uart_library_example_with_ble\app_uart_fifo_mod.c
?????目錄???????????0??2014-10-17?15:23??adc_sampling_ble_app_uart\app_uart_library_example_with_ble\arm\
?????文件???????17570??2014-10-17?15:22??adc_sampling_ble_app_uart\app_uart_library_example_with_ble\arm\ble_app_uart.uvopt
?????文件???????20026??2014-10-17?12:42??adc_sampling_ble_app_uart\app_uart_library_example_with_ble\arm\ble_app_uart.uvoptx
?????文件???????36958??2014-10-17?15:21??adc_sampling_ble_app_uart\app_uart_library_example_with_ble\arm\ble_app_uart.uvproj
?????文件???????49520??2014-10-17?12:42??adc_sampling_ble_app_uart\app_uart_library_example_with_ble\arm\ble_app_uart.uvprojx
?????文件????????9394??2014-10-17?12:42??adc_sampling_ble_app_uart\app_uart_library_example_with_ble\ble_nus.c
?????文件????????6349??2014-10-17?12:42??adc_sampling_ble_app_uart\app_uart_library_example_with_ble\ble_nus.h
?????文件??????389719??2014-10-17?12:42??adc_sampling_ble_app_uart\app_uart_library_example_with_ble\Capture?-?Define?the?constant?for?the?development?kit?in?Keil?Target?Options.png
?????文件???????27019??2014-10-17?15:20??adc_sampling_ble_app_uart\app_uart_library_example_with_ble\main.c
?????文件????????1534??2014-10-17?12:42??adc_sampling_ble_app_uart\app_uart_library_example_with_ble\README.md
?????文件????????1466??2014-10-17?12:51??adc_sampling_ble_app_uart\app_uart_library_example_with_ble\uart_conf.h
評論
共有 條評論