Bavo Van Achte
/
MLX90418_I2C_master
Fork
main_init.h
- Committer:
- bwi
- Date:
- 2021-05-27
- Branch:
- master-bwi
- Revision:
- 18:5b17c9dc85b2
- Parent:
- 16:a0bfe33f8a4a
File content as of revision 18:5b17c9dc85b2:
#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(p20); //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 = 0; led2 = 0; led3 = 0; led4 = 0; reset_fpga(); } #endif