Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MPU9250_SPI
Fork of WearableDevice_Nucleo by
event.h
- Committer:
- Muglug
- Date:
- 2017-11-12
- Revision:
- 27:c4b2ce6fa5b8
- Parent:
- 26:4bc56ce08d15
- Child:
- 28:c7e977a19564
File content as of revision 27:c4b2ce6fa5b8:
/* * Los Putacos * Copyright (C) 2017, All rights reserved. * ________________________________________ * * Created by: Gustavo Campana, Michael Schmidt, Miguel Lopez * Date: 12-Oct-2017 * Version: V0.1 */ //----------------------------------------------------------------- //----------------------------------------------------------------- #include "mbed.h" #include "XBeeLib.h" #include "SDFileSystem.h" #include "MPU9250.h" //----------------------------------------------------------------- //----------------------------------------------------------------- #ifndef EVENT_H_ #define EVENT_H_ #define BufferSize 40000 #define BufferSize_MIC 10000 // Declarations extern XBeeLib::XBeeZB XBee; extern Timer TimeStamp; extern mpu9250_spi imu; extern AnalogIn micro; extern Serial PC; // Read & Writepointers extern volatile uint16_t readPointer; extern volatile uint16_t readPointer_MIC; extern volatile uint16_t writePointer; extern volatile uint16_t writePointer_MIC; // Data Storage Buffers extern int16_t Data_Storage[BufferSize]; extern uint16_t Data_Storage_MIC[BufferSize_MIC]; // Flag Declaration extern uint8_t ReadIMUDone_Flag; // Time Buffer Declaration extern uint16_t Time_Data; extern uint8_t Requested_Time; // Ticker Declaration extern Ticker Ticker_IMU; // Function Declarations void ReadIMU(void); void ReceiveXBee(void); #endif // EVENT_H_ //----------------------------------------------------------------- //-----------------------------------------------------------------