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.
main_init.h
- Committer:
- wuliqunyy
- Date:
- 2022-01-17
- Revision:
- 0:be95bfb06686
File content as of revision 0:be95bfb06686:
#ifndef MAIN_INIT_H
#define MAIN_INIT_H
#include "mbed.h"
/*Digital outputs*/
extern DigitalOut led1;
extern DigitalOut led2;
extern DigitalOut led3;
extern DigitalOut led4;
extern DigitalOut fpga_rstb; //p27 of MBED is connectted to p22 of the FPGA CMOD for 90415FPGA_EVB2
//extern DigitalIn TimerIn;
inline void reset_fpga(){
fpga_rstb = 0;
}
inline void enable_fpga(){
fpga_rstb = 1;
}
inline void main_init(){
led1 = 0;
led2 = 0;
led3 = 0;
led4 = 0;
reset_fpga();
}
#endif
