TRR 2018 / Mbed 2 deprecated biniou-TRR2019

Dependencies:   mbed MPU6050

utils.cpp

Committer:
GaspardD
Date:
2019-09-29
Revision:
3:1b7eb426247e
Parent:
1:8faddee0e52f
Child:
4:efa207509f63

File content as of revision 3:1b7eb426247e:

#include "utils.h"

bool b_UTILS_flag_button = false;
bool b_UTILS_flag_emergency_stop = false;
Serial pc(USBTX, USBRX);
InterruptIn button(USER_BUTTON);


void init_interruptions(){
    button.fall(&it_pressed);    
}

void it_pressed(){
    b_UTILS_flag_button = true;
    b_UTILS_flag_emergency_stop = false;
    return;
    }

void initGPIOs()
{
    return;
}