MDS_2 / Mbed 2 deprecated Sensor_process

Dependencies:   BLE_API mbed

sources/main.cpp

Committer:
didierlauwerys
Date:
2017-03-17
Revision:
0:f8c8c0f95d6b

File content as of revision 0:f8c8c0f95d6b:

#include "mbed.h"
#include "ble/BLE.h"
#include "Servo.h"


#define BLE_UUID_TXRX_SERVICE            0x0000 /**< The UUID of the Nordic UART Service. */
#define BLE_UUID_TX_CHARACTERISTIC       0x0002 /**< The UUID of the TX Characteristic. */
#define BLE_UUIDS_RX_CHARACTERISTIC      0x0003 /**< The UUID of the RX Characteristic. */

#define TXRX_BUF_LEN                     20
/*
define user IO ports here
*/

//SPI
#define CS      P0_7                                //chipselect
#define MOSI    P0_9                                //Master Out Slave In
#define MISO    P0_11                               //Master In Slave Out
#define SCK     P0_8                                //Clock
//Interrupts
#define INT1    P0_15                               //interrupt for ADXL345
//additional IO
#define ON_SW   P0_28                               //ON/OFF switch
#define BEPB    P0_29                               //Enable/disable bluetooth push button

/*
end user IO port definition
*/


BLE             ble;