Added one task
Dependencies: mbed
mylib/inc/gpio.h@0:fb4269aa5fb4, 2017-05-26 (annotated)
- Committer:
- PicYusuke
- Date:
- Fri May 26 03:51:19 2017 +0000
- Revision:
- 0:fb4269aa5fb4
hoge
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
PicYusuke | 0:fb4269aa5fb4 | 1 | #ifndef __GPIO_H |
PicYusuke | 0:fb4269aa5fb4 | 2 | #define __GPIO_H |
PicYusuke | 0:fb4269aa5fb4 | 3 | |
PicYusuke | 0:fb4269aa5fb4 | 4 | #include "mbed.h" |
PicYusuke | 0:fb4269aa5fb4 | 5 | |
PicYusuke | 0:fb4269aa5fb4 | 6 | extern DigitalOut servo; |
PicYusuke | 0:fb4269aa5fb4 | 7 | |
PicYusuke | 0:fb4269aa5fb4 | 8 | /*---------Interrupt In----------*/ |
PicYusuke | 0:fb4269aa5fb4 | 9 | extern InterruptIn intrrput_in1; |
PicYusuke | 0:fb4269aa5fb4 | 10 | extern InterruptIn intrrput_in2; |
PicYusuke | 0:fb4269aa5fb4 | 11 | /*-------------------------------*/ |
PicYusuke | 0:fb4269aa5fb4 | 12 | |
PicYusuke | 0:fb4269aa5fb4 | 13 | void GPIO_Init(); |
PicYusuke | 0:fb4269aa5fb4 | 14 | |
PicYusuke | 0:fb4269aa5fb4 | 15 | /*メインのソースコードにこの名称の関数を書く*/ |
PicYusuke | 0:fb4269aa5fb4 | 16 | extern void PinIntrrpt1_Callback(); |
PicYusuke | 0:fb4269aa5fb4 | 17 | extern void PinIntrrpt2_Callback(); |
PicYusuke | 0:fb4269aa5fb4 | 18 | /*------------------------------------*/ |
PicYusuke | 0:fb4269aa5fb4 | 19 | |
PicYusuke | 0:fb4269aa5fb4 | 20 | #endif |