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: mbed
mylib/src/gpio.cpp
- Committer:
- PicYusuke
- Date:
- 2017-05-26
- Revision:
- 0:fb4269aa5fb4
File content as of revision 0:fb4269aa5fb4:
#include "gpio.h"
/*----------GPIO output----------*/
DigitalOut servo(PA_9);
/*-------------------------------*/
/*---------Interrupt In----------*/
InterruptIn intrrpt_in1(PB_8);
InterruptIn intrrpt_in2(PB_9);
/*-------------------------------*/
void GPIO_Init()
{
/*-----------ピン変化割り込み-------------*/
intrrpt_in1.rise(&PinIntrrpt1_Callback);
intrrpt_in2.rise(&PinIntrrpt2_Callback);
/*--------------------------------------*/
}