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.
Diff: main_init.h
- Revision:
- 0:be95bfb06686
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main_init.h Mon Jan 17 13:20:09 2022 +0000 @@ -0,0 +1,30 @@ +#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