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:
- 2021-04-22
- Revision:
- 14:062850afdf38
- Parent:
- 12:9f8c7f4da5f6
- Child:
- 16:a0bfe33f8a4a
File content as of revision 14:062850afdf38:
#ifndef MAIN_INIT_H
#define MAIN_INIT_H
/*Digital outputs*/
DigitalOut led1(LED1);
DigitalOut led2(LED2);
//DigitalOut led3(LED3);
DigitalOut led4(LED4);
DigitalOut fpga_rstb(p27); //p27 of MBED is connectted to p22 of the FPGA CMOD for 90415FPGA_EVB2
void reset_fpga(){
fpga_rstb = 0;
}
void enbale_fpga(){
fpga_rstb = 1;
}
void main_init(){
led1 = 1;
led2 = 0;
//led3 = 0;
led4 = 0;
reset_fpga();
}
#endif
