module demo ( input wire CLK_IN, output wire R_LED ); parameter time1 = 30'd12_000_000; reg led_state; reg [29:0] count; always @(posedge CLK_IN)begin if(count == time1)begin count<= 30'd0; led_state <= ~led_state; end else count <= count + 1'b1; end assign R_LED = led_state; endmodule rel='vcs-git' href='ssh://git@git.panaceas.org/git/avr/qmk/ChibiOS' title='avr/qmk/ChibiOS Git repository'/>
aboutsummaryrefslogtreecommitdiffstats
path: root/test/testmsg.h
blob: 7193156bdedb6dd720d43fa145cd8359f6a142e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26