Log measurements on SD card added on DISCO-L476VG board acceleration, omega, compass & 5 Analog values
Dependencies: BSP_DISCO_L476VG COMPASS_DISCO_L476VG ConfigFile GYRO_DISCO_L476VG SDFileSystem mbed
main.cpp
- Committer:
- flowh
- Date:
- 2016-02-13
- Revision:
- 1:e1f3b4b8b99b
- Parent:
- 0:0861bf46efe4
- Child:
- 2:f53340e49cc0
File content as of revision 1:e1f3b4b8b99b:
/* -------------------------------------------------------- MothLogger Version 2.0 February 12th 2016 Florent HADDAD Save on SD card Acceleration, Gyroscope, Compass 5 Analog input (PA_0..PA_5 except PA_4) SdCard connected on : PE_12 to PE_15 for SPI 3.3V Start/Stop switch between 3V and PD_0 Green led blinks during log tested up to 100Hz acquisition frequency For any unknown reason, may need to be downloaded twice to run properly ! * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------*/ #include "mbed.h" #include "DefinitionIO.h" int main() { Init(); //initialization of I/O Mesures.Update(); //required to start safely IOs while(1) { //main loop is actually performed in a ticker defined in "DefinitionIO/Init()" } }