Bavo Van Achte
/
MLX90418_I2C_master
Fork
main_init.h@16:a0bfe33f8a4a, 2021-05-21 (annotated)
- Committer:
- wuliqunyy
- Date:
- Fri May 21 12:42:56 2021 +0000
- Revision:
- 16:a0bfe33f8a4a
- Parent:
- 14:062850afdf38
- Child:
- 18:5b17c9dc85b2
- Child:
- 28:fdc12762a42d
CLIM is working
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
wuliqunyy | 5:daab0e0e67e2 | 1 | #ifndef MAIN_INIT_H |
wuliqunyy | 5:daab0e0e67e2 | 2 | #define MAIN_INIT_H |
wuliqunyy | 5:daab0e0e67e2 | 3 | |
wuliqunyy | 5:daab0e0e67e2 | 4 | /*Digital outputs*/ |
wuliqunyy | 5:daab0e0e67e2 | 5 | DigitalOut led1(LED1); |
wuliqunyy | 5:daab0e0e67e2 | 6 | DigitalOut led2(LED2); |
wuliqunyy | 16:a0bfe33f8a4a | 7 | DigitalOut led3(LED3); |
wuliqunyy | 5:daab0e0e67e2 | 8 | DigitalOut led4(LED4); |
wuliqunyy | 14:062850afdf38 | 9 | DigitalOut fpga_rstb(p27); //p27 of MBED is connectted to p22 of the FPGA CMOD for 90415FPGA_EVB2 |
wuliqunyy | 5:daab0e0e67e2 | 10 | |
wuliqunyy | 6:019ab407ac3c | 11 | void reset_fpga(){ |
wuliqunyy | 6:019ab407ac3c | 12 | fpga_rstb = 0; |
wuliqunyy | 6:019ab407ac3c | 13 | } |
wuliqunyy | 6:019ab407ac3c | 14 | |
wuliqunyy | 6:019ab407ac3c | 15 | void enbale_fpga(){ |
wuliqunyy | 6:019ab407ac3c | 16 | fpga_rstb = 1; |
wuliqunyy | 6:019ab407ac3c | 17 | } |
wuliqunyy | 6:019ab407ac3c | 18 | |
wuliqunyy | 5:daab0e0e67e2 | 19 | void main_init(){ |
wuliqunyy | 16:a0bfe33f8a4a | 20 | led1 = 0; |
wuliqunyy | 5:daab0e0e67e2 | 21 | led2 = 0; |
wuliqunyy | 16:a0bfe33f8a4a | 22 | led3 = 0; |
wuliqunyy | 5:daab0e0e67e2 | 23 | led4 = 0; |
wuliqunyy | 6:019ab407ac3c | 24 | reset_fpga(); |
wuliqunyy | 5:daab0e0e67e2 | 25 | } |
wuliqunyy | 6:019ab407ac3c | 26 | |
wuliqunyy | 5:daab0e0e67e2 | 27 | #endif |