remove tabs

This commit is contained in:
Philippe Teuwen 2019-08-13 17:51:11 +02:00
commit 847b6bcc33
5 changed files with 27 additions and 22 deletions

View file

@ -164,11 +164,16 @@ style:
# Detecting weird codepages and tabs. # Detecting weird codepages and tabs.
checks: checks:
find . \( -name "*.[ch]" -or -name "*.cpp" -or -name "*.lua" -or -name "*.py" -or -name "*.pl" -or -name "Makefile" -or -name "*.v" \) \ @echo "Files with suspicious chars:"
@find . \( -name "*.[ch]" -or -name "*.cpp" -or -name "*.lua" -or -name "*.py" -or -name "*.pl" -or -name "Makefile" -or -name "*.v" \) \
-exec sh -c "cat {} |recode utf8.. >/dev/null || echo {}" \; -exec sh -c "cat {} |recode utf8.. >/dev/null || echo {}" \;
find . \( -name "*.[ch]" -or \( -name "*.cpp" -and -not -name "*.moc.cpp" \) -or -name "*.lua" -or -name "*.py" -or -name "*.pl" -or -name "*.md" -or -name "*.txt" -or -name "*.awk" -or -name "*.v" \) \ @echo "Files with tabs:"
-exec grep -lP '\t' {} \;
# to remove tabs within lines, one can try with: vi $file -c ':set tabstop=4' -c ':set et|retab' -c ':wq' # to remove tabs within lines, one can try with: vi $file -c ':set tabstop=4' -c ':set et|retab' -c ':wq'
@find . \( -name "*.[ch]" -or \( -name "*.cpp" -and -not -name "*.moc.cpp" \) -or -name "*.lua" -or -name "*.py" -or -name "*.pl" -or -name "*.md" -or -name "*.txt" -or -name "*.awk" -or -name "*.v" \) \
-exec grep -lP '\t' {} \;
# @echo "Files with printf \\\\t:"
# @find . \( -name "*.[ch]" -or \( -name "*.cpp" -and -not -name "*.moc.cpp" \) -or -name "*.lua" -or -name "*.py" -or -name "*.pl" -or -name "*.md" -or -name "*.txt" -or -name "*.awk" -or -name "*.v" \) \
# -exec grep -lP '\\t' {} \;
# Dummy target to test for GNU make availability # Dummy target to test for GNU make availability
_test: _test:

View file

@ -448,7 +448,7 @@ Convert .bin to .eml
``` ```
Options Options
--- ---
i <file> : Specifies the dump-file (input). If omitted, 'dumpdata.bin' is used i <file> : Specifies the dump-file (input). If omitted, 'dumpdata.bin' is used
script run dumptoemul -i xxxxxxxxxxxxxx.bin script run dumptoemul -i xxxxxxxxxxxxxx.bin
``` ```

View file

@ -102,13 +102,13 @@ lo_edge_detect le(
); );
lo_adc la( lo_adc la(
pck0, pck0,
la_pwr_lo, la_pwr_hi, la_pwr_oe1, la_pwr_oe2, la_pwr_oe3, la_pwr_oe4, la_pwr_lo, la_pwr_hi, la_pwr_oe1, la_pwr_oe2, la_pwr_oe3, la_pwr_oe4,
adc_d, la_adc_clk, adc_d, la_adc_clk,
la_ssp_frame, la_ssp_din, ssp_dout, la_ssp_clk, la_ssp_frame, la_ssp_din, ssp_dout, la_ssp_clk,
cross_hi, cross_lo, cross_hi, cross_lo,
la_dbg, divisor, la_dbg, divisor,
lo_is_125khz, lf_field lo_is_125khz, lf_field
); );
// Major modes: // Major modes:

View file

@ -55,28 +55,28 @@ assign ssp_frame = (pck_divider[7:3] == 5'd1) && !clk_state;
always @(posedge pck0) always @(posedge pck0)
begin begin
if(pck_divider == divisor[7:0]) if(pck_divider == divisor[7:0])
begin begin
pck_divider <= 8'd0; pck_divider <= 8'd0;
clk_state = !clk_state; clk_state = !clk_state;
end end
else else
begin begin
pck_divider <= pck_divider + 1; pck_divider <= pck_divider + 1;
end end
end end
always @(posedge pck0) always @(posedge pck0)
begin begin
if((pck_divider == 8'd7) && !clk_state) if((pck_divider == 8'd7) && !clk_state)
begin begin
to_arm_shiftreg <= adc_d; to_arm_shiftreg <= adc_d;
end end
else else
begin begin
to_arm_shiftreg[7:1] <= to_arm_shiftreg[6:0]; to_arm_shiftreg[7:1] <= to_arm_shiftreg[6:0];
to_arm_shiftreg[0] <= 1'b0; to_arm_shiftreg[0] <= 1'b0;
end end
end end
endmodule endmodule

View file

@ -299,7 +299,7 @@ typedef struct {
#define CMD_SPIFFS_PRINT_FSINFO 0x2133 #define CMD_SPIFFS_PRINT_FSINFO 0x2133
#define CMD_SPIFFS_DOWNLOAD 0x2134 #define CMD_SPIFFS_DOWNLOAD 0x2134
#define CMD_SPIFFS_DOWNLOADED 0x2135 #define CMD_SPIFFS_DOWNLOADED 0x2135
#define CMD_SPIFFS_CHECK 0x3000 #define CMD_SPIFFS_CHECK 0x3000
// more ? // more ?