add .gitignore

This commit is contained in:
Steven Dan
2026-05-12 11:19:07 +08:00
parent b43581c2ff
commit 5b81931d4b
3 changed files with 78 additions and 0 deletions

4
.gitattributes vendored Normal file
View File

@@ -0,0 +1,4 @@
* text=auto
*.c text eol=lf
*.xc text eol=lf
*.h text eol=lf

51
.gitignore vendored Normal file
View File

@@ -0,0 +1,51 @@
# Tmp files & logs
*.settings
*.bin
*.zip
*.log
*.vcd
*.swp
*.*~
*.xmt
*.swo
*.swn
*.ppb
*~
*.DS_Store
# Python
*.pyc
**/*.egg-info/
**/*venv/*
# XMOS temp files
**/.build*/*
**/build*/*
*/bin/*
_build
**/flash_bin_node*
**/fw-*
**/s2l-*
**/spanning-xn-*
**/target-xn*
*.xi
*.o
*.i
*.a
# XMOS binaries
*.xe
# Regression test files
tests/xmosdfu
tests/xsig
legacy_tests/recording*.wav
legacy_tests/plot*.pdf
legacy_tests/generated_*.wav
*/test_results.csv
cscope*
rtostags
# Built documentation
doc/pdf/sw_usb_audio.pdf
toplevel_doc

View File

@@ -0,0 +1,23 @@
0, /* PY25Q32H_QSPI - Just specify 0 as flash_id */
256, /* page size */
16384, /* num pages */
3, /* address size */
4, /* log2 clock divider */
0x9F, /* QSPI_RDID */
0, /* id dummy bytes */
3, /* id size in bytes */
0x856016, /* device id */
0x20, /* QSPI_SE */
4096, /* Sector erase is always 4KB */
0x06, /* QSPI_WREN */
0x04, /* QSPI_WRDI */
PROT_TYPE_SR, /* Protection via SR */
{{0,0x00},{0,0}}, /* QSPI_SP, QSPI_SU */
0x02, /* QSPI_PP */
0xEB, /* QSPI_READ_FAST */
1, /* 1 read dummy byte */
SECTOR_LAYOUT_REGULAR, /* mad sectors */
{4096,{0,{0}}}, /* regular sector sizes */
0x05, /* QSPI_RDSR */
0x01, /* QSPI_WRSR */
0x01, /* QSPI_WIP_BIT_MASK */