diff --git a/atusb/fw/.version b/atusb/fw/.version
new file mode 100644
index 0000000..6f4247a
--- /dev/null
+++ b/atusb/fw/.version
@@ -0,0 +1 @@
+26
diff --git a/atusb/fw/app-atu2.d b/atusb/fw/app-atu2.d
new file mode 100644
index 0000000..6a248fd
--- /dev/null
+++ b/atusb/fw/app-atu2.d
@@ -0,0 +1,8 @@
+app-atu2.o: usb/atu2.c usb/usb.h board.h include/atusb/atusb.h board_atusb.h
+
+usb/atu2.c:
+usb/usb.h:
+board.h:
+include/atusb/atusb.h:
+board_atusb.h:
+
diff --git a/atusb/fw/atusb.bin b/atusb/fw/atusb.bin
new file mode 100755
index 0000000000000000000000000000000000000000..5f3c76c20b9a71076a3c5b5dd27254d50e143fa7
GIT binary patch
diff --git a/atusb/fw/atusb.d b/atusb/fw/atusb.d
new file mode 100644
index 0000000..8ccacd3
--- /dev/null
+++ b/atusb/fw/atusb.d
@@ -0,0 +1,13 @@
+atusb.o: atusb.c usb/usb.h board.h include/atusb/atusb.h board_atusb.h \
+ sernum.h spi.h include/atusb/ep0.h
+
+atusb.c:
+usb/usb.h:
+board.h:
+include/atusb/atusb.h:
+board_atusb.h:
+
+sernum.h:
+spi.h:
+include/atusb/ep0.h:
+
diff --git a/atusb/fw/atusb.dfu b/atusb/fw/atusb.dfu
new file mode 100755
index 0000000000000000000000000000000000000000..77e203029cac8a291de0377dc6ba5333e47f9877
GIT binary patch
diff --git a/atusb/fw/atusb.elf b/atusb/fw/atusb.elf
new file mode 100755
index 0000000000000000000000000000000000000000..ac18ae42dcc789b79c904d18670114beaf2cecf1
GIT binary patch
diff --git a/atusb/fw/board.d b/atusb/fw/board.d
new file mode 100644
index 0000000..aa2f13f
--- /dev/null
+++ b/atusb/fw/board.d
@@ -0,0 +1,12 @@
+board.o: board.c usb/usb.h include/at86rf230.h board.h \
+ include/atusb/atusb.h board_atusb.h spi.h
+
+board.c:
+usb/usb.h:
+include/at86rf230.h:
+board.h:
+
+include/atusb/atusb.h:
+board_atusb.h:
+spi.h:
+
diff --git a/atusb/fw/board_app.d b/atusb/fw/board_app.d
new file mode 100644
index 0000000..c1659bc
--- /dev/null
+++ b/atusb/fw/board_app.d
@@ -0,0 +1,13 @@
+board_app.o: board_app.c usb/usb.h include/at86rf230.h spi.h mac.h \
+ board.h include/atusb/atusb.h board_atusb.h
+
+board_app.c:
+usb/usb.h:
+include/at86rf230.h:
+spi.h:
+mac.h:
+
+board.h:
+include/atusb/atusb.h:
+board_atusb.h:
+
diff --git a/atusb/fw/board_atusb.d b/atusb/fw/board_atusb.d
new file mode 100644
index 0000000..7ab1254
--- /dev/null
+++ b/atusb/fw/board_atusb.d
@@ -0,0 +1,13 @@
+board_atusb.o: board_atusb.c usb/usb.h include/at86rf230.h board.h \
+ include/atusb/atusb.h board_atusb.h spi.h usb/usb.h
+
+board_atusb.c:
+usb/usb.h:
+include/at86rf230.h:
+board.h:
+
+include/atusb/atusb.h:
+board_atusb.h:
+spi.h:
+usb/usb.h:
+
diff --git a/atusb/fw/boot-atu2.d b/atusb/fw/boot-atu2.d
new file mode 100644
index 0000000..ed90f78
--- /dev/null
+++ b/atusb/fw/boot-atu2.d
@@ -0,0 +1,8 @@
+boot-atu2.o: usb/atu2.c usb/usb.h board.h include/atusb/atusb.h board_atusb.h
+
+usb/atu2.c:
+usb/usb.h:
+board.h:
+include/atusb/atusb.h:
+board_atusb.h:
+
diff --git a/atusb/fw/boot.d b/atusb/fw/boot.d
new file mode 100644
index 0000000..23c9a7f
--- /dev/null
+++ b/atusb/fw/boot.d
@@ -0,0 +1,14 @@
+boot.o: boot.c usb/usb.h usb/dfu.h usb/usb.h board.h \
+ include/atusb/atusb.h board_atusb.h spi.h include/atusb/ep0.h
+
+boot.c:
+usb/usb.h:
+usb/dfu.h:
+usb/usb.h:
+board.h:
+
+include/atusb/atusb.h:
+board_atusb.h:
+spi.h:
+include/atusb/ep0.h:
+
diff --git a/atusb/fw/boot.elf b/atusb/fw/boot.elf
new file mode 100755
index 0000000000000000000000000000000000000000..ebf39f512d97d832b7c8076a06c0d5b08d02b1fd
GIT binary patch
diff --git a/atusb/fw/boot.hex b/atusb/fw/boot.hex
new file mode 100644
index 0000000..10fa523
--- /dev/null
+++ b/atusb/fw/boot.hex
@@ -0,0 +1,259 @@
+:107000000C944C380C9469380C9469380C94693899
+:107010000C9469380C9469380C9469380C9469386C
+:107020000C9469380C9469380C9469380C94DB3DE5
+:107030000C940D3E0C9469380C9469380C946938A2
+:107040000C9469380C9469380C9469380C9469383C
+:107050000C9469380C9469380C9469380C9469382C
+:107060000C9469380C9469380C9469380C9469381C
+:107070000C9469380C9469380C9469380C9469380C
+:107080000C9469380C9469380C9469380C946938FC
+:107090000C9469380C94693811241FBECFEFD4E0EA
+:1070A000DEBFCDBF11E0A0E0B1E0E6E9FFE702C03E
+:1070B00005900D92A037B107D9F711E0A0E7B1E034
+:1070C00001C01D92AE3CB107E1F70E946B380C94F1
+:1070D000C93F0C940038DF93CF9300D0CDB7DEB713
+:1070E0001A8219820E944C3F0E94AB380E94893F4D
+:1070F0000E948D3B81E085BF82E085BF789481E06E
+:107100000E94C1382091620180E090E0A0E0B0E0F0
+:107110000FC080E090E0A0E0B0E002C02230D1F4E7
+:10712000E981FA81E491EF3FA1F30196A11DB11D20
+:107130008C3737EC93073CE0A30730E0B30771F7D7
+:1071400080E00E94C138F8940E94423FE0E0F0E005
+:107150000995FFCFFFCF14B817B81AB815B818B8EB
+:107160001BB8269A3F9A249A0E94613F479885E06F
+:10717000982F9A95F1F7479A8A95F1F70E947E3FEA
+:107180000895882311F02E9A08952E980895F89462
+:1071900028EC30E02E9A88EE93E0F9013197F1F770
+:1071A0000197D9F72E9888EE93E0F9013197F1F71E
+:1071B0000197D9F7EFCF80E090E041E2FC013E96E5
+:1071C00040935700E4919C01220F331F220F331F7D
+:1071D000D90112965E2F52955F705A3010F4505DAF
+:1071E00001C0595AA050BF4F5C932C5F3F4FEF70C6
+:1071F000EA3010F4E05D01C0E95AD901A050BF4F58
+:10720000EC9301968A309105C9F60895FA01D901E7
+:10721000833099F4662319F0613089F406C08AE25C
+:1072200091E09183808384E005C080E091E09183C8
+:1072300080838AE28C9381E0089580E0089580E065
+:1072400008958093CE008091C80087FFFCCF809185
+:10725000CE000895599A08956623D9F01092CE0071
+:10726000262FFC0109C03091C80037FFFCCF3091B8
+:10727000CE0031931092CE002150A9F76150860FB5
+:10728000911D2091C80027FFFCCF2091CE00FC016A
+:107290002083089510927001109271011092720172
+:1072A0001092730108959C0140E050E080917001BC
+:1072B00090917101A0917201B0917301280F391F53
+:1072C0004A1F5B1F81E0213090E7390790E04907B2
+:1072D00090E0590708F080E008952F923F924F9276
+:1072E0005F926F927F928F929F92AF92BF92CF9256
+:1072F000DF92EF92FF920F931F93CF93DF93EB01F7
+:10730000A0907001B0907101C0907201D090730193
+:1073100090907401860175010894E11CF11C011D17
+:10732000111DA6019501DC013C01660E771E93E05C
+:10733000892E5524539485E0482E44C0CA01B901D2
+:107340006F7770708070907061157105810591057F
+:1073500039F4F90180925700E89507B600FCFDCF9B
+:10736000C901817090706C91009769F0892D90E04F
+:10737000362E222482299329F9010C0150925700BC
+:10738000E895112401C0962EC801B7016F7770707F
+:1073900080709070611571058105910549F4F701C0
+:1073A000E058F04040925700E89507B600FCFDCF4A
+:1073B00011960894E11CF11C011D111D2F5F3F4F18
+:1073C0004F4F5F4FA615B70509F0B8CFCE01A0E02B
+:1073D000B0E08A0D9B1DAC1DBD1D80937001909384
+:1073E0007101A0937201B093730190927401DF91C7
+:1073F000CF911F910F91FF90EF90DF90CF90BF90B2
+:10740000AF909F908F907F906F905F904F903F9044
+:107410002F9008958091700190917101A091720157
+:10742000B09173019C01AD012F77307040705070A6
+:10743000211531054105510549F0807825E0FC0111
+:1074400020935700E89507B600FCFDCF81E18093BB
+:107450005700E8950895EF92FF920F931F93CF93F3
+:10746000DF93DC01E0907001F090710100917201F6
+:1074700010917301A801970108C0E491ED93615048
+:1074800070402F5F3F4F4F4F5F4FF901E901CE1919
+:10749000DF096115710541F0203080E8380780E090
+:1074A000480780E0580749F7209370013093710135
+:1074B0004093720150937301CE01DF91CF911F91E0
+:1074C0000F91FF90EF900895E0912E01F0912F0120
+:1074D000DC016D917C910480F581E02D88E791E0DD
+:1074E000099508950895EF92FF920F931F93CF93FC
+:1074F000DF93EC01398120E0888190E0822B932B8F
+:1075000021E081329207A1F0E1E082329E072CF463
+:107510008132910509F0F3C0F6C0F2E0813A9F078D
+:1075200009F47CC026E08132920709F0E8C0E1C08E
+:1075300080916201823079F48A819B8190937601F7
+:1075400080937501E0912E01F0912F010190F0815F
+:10755000E02D099503C0853009F0D7C08091620104
+:10756000823059F0809175019091760101972A81BE
+:107570003B812817390709F4C6C02A813B818091D5
+:107580007501909176012817390709F074C00E80B3
+:10759000DF81C02DE0912E01F0912F01209759F449
+:1075A0000680F781E02D099582E08093620181E0F9
+:1075B00080937701ABC00280F381E02DCE01099565
+:1075C000882311F488E004C0C134D10528F08EE08E
+:1075D00080935E0180E014C0D093B901C093B801DC
+:1075E00083EC91E061E070E048E751E02C2F04E685
+:1075F0001AE338EBE32E31E0F32E0E94E93B81E001
+:1076000020917501309176012F5F3F4F30937601C5
+:107610002093750195E09093620178C0809162019A
+:10762000823079F48A819B819093760180937501F1
+:10763000E0912E01F0912F010190F081E02D09954C
+:1076400003C0893009F061C080916201823051F03D
+:10765000809175019091760101972A813B812817CD
+:10766000390749F02A813B8180917501909176011B
+:107670002817390739F08AE0809362018EE0809301
+:107680005E0141C00E80DF81C02DC134D10520F0E4
+:107690008EE080935E0120C0E0912E01F0912F01D9
+:1076A0000084F185E02D88E791E0BE0109959C01F9
+:1076B0008C179D0720F482E08093620101C09E0137
+:1076C00083EC91E062E070E048E751E000E010E018
+:1076D000EE24FF240E94E93B809175019091760190
+:1076E0000196909376018093750189E08093620101
+:1076F0000AC082E08093620110925E0104C0CE0154
+:107700000E94A03B03C081E001C080E0DF91CF91E7
+:107710001F910F91FF90EF90089583E79AE3909364
+:10772000C2018093C1018AED9BE39093BC018093D9
+:10773000BB0182E79AE39093BE018093BD01089557
+:10774000EF92FF920F931F93FC01318120E0808123
+:1077500090E0822B932B24E08132920781F025E088
+:10776000813A920791F023E0813A9207E9F483ECA1
+:1077700091E062E070E04EE551E026E00DC082E06D
+:107780008093620110925E010DC083EC91E062E093
+:1077900070E042E651E021E000E010E0EE24FF243A
+:1077A0000E94E93B81E001C080E01F910F91FF90B2
+:1077B000EF900895813219F00E940639089584E609
+:1077C00091E0FA019183808389E0F901808381E06F
+:1077D00008958F929F92AF92BF92CF92DF92EF92D5
+:1077E000FF920F931F93DF93CF930F92CDB7DEB726
+:1077F0004C015B016A01FC0180819181009721F0BD
+:1078000029830E94C7382981F401B182A082D382E2
+:10781000C282C20ED11CD582C48210870783F28631
+:10782000E186C4010E94A93D0F90CF91DF911F9185
+:107830000F91FF90EF90DF90CF90BF90AF909F900F
+:107840008F900895FF920F931F93DF93CF9300D0F3
+:107850000F92CDB7DEB7DC0111969C91119780E0B5
+:107860002C9130E0282B392B85E02030380709F4A3
+:1078700081C085E02130380714F581E020303807D9
+:1078800009F42EC181E0213038076CF4203831052D
+:1078900009F451C0203831050CF419C123383105E1
+:1078A0000CF015C11FC181E0233038070CF41AC158
+:1078B000205033402330310508F009C113C188E05E
+:1078C0002038380709F4ABC088E02138380784F441
+:1078D00086E0203838070CF4FAC086E022383807F2
+:1078E0000CF44DC087E02030380709F0F0C0FAC032
+:1078F0008AE02138380709F4F5C08AE022383807D1
+:1079000034F489E02030380709F0E1C0AFC08BE0E3
+:107910002130380731F08CE02238380709F0D7C021
+:10792000E1C020914E0130E0245B3E4F80E090E0CA
+:10793000E5E5F1E0C8C016968D919C9117978230CD
+:10794000910509F0CFC00DE611E08091C30190913F
+:10795000C401009711F00E94C73882E090E0909334
+:10796000C4018093C3011093C6010093C5010E5F4B
+:107970001F4F6BC012968C910E94913DB1C0129620
+:107980006C91129713968C91139716960D911C91EA
+:107990001797813019F0823099F407C08AE391E09B
+:1079A0009B838A8380913A0109C0662309F09AC0BB
+:1079B0008CE491E09B838A8380914E01898311C07E
+:1079C000E091BB01F091BC01309709F48BC0AE018E
+:1079D0004E5F5F4F9E012F5F3F4F0995882309F44B
+:1079E00081C0898190E00817190708F409830A818A
+:1079F0001B81F9808091C3019091C401009711F01F
+:107A00000E94C73882E090E09093C4018093C30144
+:107A10001093C6010093C5010F0D111D16C00FE68E
+:107A200011E08091C3019091C401009711F00E9470
+:107A3000C73882E090E09093C4018093C301109313
+:107A4000C6010093C5010F5F1F4F1093C80100933B
+:107A5000C7011092CB011092CA011092CD01109271
+:107A6000CC0183EC91E00E94A93D3AC020915101E4
+:107A700030E081E012964D915C91139742175307C5
+:107A800089F531C041814430D9F4628170E01496A7
+:107A90004D915C9115976417750789F4638170E0C7
+:107AA00012964D915C9113976417750741F4E0911C
+:107AB000BF01F091C001309799F0099511C001966E
+:107AC0004081E40FF11DE217F307E1F60BC0E091EE
+:107AD000C101F091C201309729F0CD01099503C091
+:107AE00081E001C080E00F900F900F90CF91DF9167
+:107AF0001F910F91FF900895E1EFF0E02081308118
+:107B0000932F80E030E0282B392BC9010895809114
+:107B1000E80080FFFCCF8091E30080688093E30061
+:107B20000895EF92FF920F931F938093E30083ECED
+:107B300091E062E070E040E050E020E007E81DE303
+:107B4000EE24FF240E94E93B1F910F91FF90EF90DC
+:107B50000895FC01208131812230310569F4835C74
+:107B6000914063EA7BE80E94B73F8093E9008091EF
+:107B7000F00081608093F00008951092E90089E0A0
+:107B80008093EB001092EC0080E38093ED008091F5
+:107B9000ED0082608093ED008091EE0087FFFCCFC6
+:107BA0008FE08093F0001092C4011092C30180E432
+:107BB0008093C90108951F920F920FB60F9211245E
+:107BC0002F933F934F935F936F937F938F939F93E5
+:107BD000AF93BF93EF93FF938091E10083FF0CC0BD
+:107BE000E091BD01F091BE01309709F009950E9426
+:107BF000BD3D87EF8093E100FF91EF91BF91AF9181
+:107C00009F918F917F916F915F914F913F912F91B4
+:107C10000F900FBE0F901F9018951F920F920FB6E6
+:107C20000F921124EF92FF920F931F932F933F9384
+:107C30004F935F936F937F938F939F93AF93BF9374
+:107C4000EF93FF93DF93CF93CDB7DEB72897DEBFD7
+:107C5000CDBF8091F40080FFFBC01092E9008091BD
+:107C6000E80083FF3BC01092C4011092C3018091D1
+:107C7000F200883010F40E94C7388091F1008983A7
+:107C80008091F1008A830E947C3D9C838B830E94BB
+:107C90007C3D9E838D830E947C3D98878F83CE019F
+:107CA00001960E94223C882309F4BDC0898187FD8A
+:107CB000C7C08091C3019091C401009709F0C0C072
+:107CC00083EC91E062E070E040E050E020E000E012
+:107CD00010E0EE24FF240E94E93BB2C08091E8004E
+:107CE00082FF4EC08091C3019091C4018130910503
+:107CF00009F099C06091F200262F30E08091C70111
+:107D00009091C8014091C5015091C601841B950B0B
+:107D1000821793070CF487C008C08091F10081930B
+:107D2000F093C601E093C5016150E091C501F09167
+:107D3000C601662391F78091C7019091C801E817A9
+:107D4000F90709F081C01092C4011092C301E091BB
+:107D5000CA01F091CB01309729F08091CC0190912C
+:107D6000CD01099583EC91E062E070E040E050E0E5
+:107D700020E000E010E0EE24FF240E94E93B64C014
+:107D80008091E80081FF07C01092C4011092C301E6
+:107D90008DEF8093E8008091E80080FF59C08091CA
+:107DA000C3019091C40182309105B9F58091C7015A
+:107DB0002091C5019091C901821B981708F4892F61
+:107DC000982F0CC0E091C501F091C601219120933C
+:107DD000F100F093C601E093C5019150992391F70A
+:107DE0009091C901891721F01092C4011092C3012A
+:107DF0008EEF8093E8008091C3019091C4010097B9
+:107E000039F5E091CA01F091CB01309709F18091E9
+:107E1000CC019091CD0109951BC08091F0008E7F1F
+:107E20008093F00015C081EF8093E8001092C401A8
+:107E30001092C3018091EB0080628093EB0008C038
+:107E400087EF8093E8004ACF8BE78093E80098CFD4
+:107E50002896DEBFCDBFCF91DF91FF91EF91BF910B
+:107E6000AF919F918F917F916F915F914F913F91D2
+:107E70002F911F910F91FF90EF900F900FBE0F90D9
+:107E80001F901895E0EEF0E080818160808380EDA6
+:107E900097E00197F1F7089514BEE0E6F0E08081E5
+:107EA0008061808380E18083E1E6F0E080E8808388
+:107EB00010820E94DB3808951092BA011092C90016
+:107EC0000895599A559A539A519A5298ECECF0E0C9
+:107ED0001182108280EC8093CA0088E18093C900EF
+:107EE0001182108281E08093BA0108958091BA01D5
+:107EF000882311F40E94613F599808950E94763FAB
+:107F000083EC0E94213984E00E9421390E942A39A1
+:107F100008958091D80080628093D80089B5837ECF
+:107F200089BD89B5826089BD09B400FEFDCF80910D
+:107F3000D8008F778093D8008091D8008068809394
+:107F4000D8008091D8008F7D8093D8008091E00088
+:107F50008E7F8093E00088E08093E2000E94BD3D28
+:107F6000089583E08093690081E08DBB08955527D3
+:107F7000002480FF02C0060E571F660F771F611591
+:107F8000710521F096958795009799F7952F802D8B
+:067F90000895F894FFCFF4
+:107F96002A030000000000000000000000000000AE
+:107FA60000000000000000000000000000000000CB
+:107FB6000000000000000000000004030904300176
+:107FC6004A3953396D390A3A2B3A12010001FE003B
+:107FD6000040B7204015010000000101090212000F
+:107FE60001010080140904000000FE010200006483
+:107FF6000000020009210FFFFF4000010100000000
+:040000030000700089
+:00000001FF
diff --git a/atusb/fw/descr.d b/atusb/fw/descr.d
new file mode 100644
index 0000000..cccf24c
--- /dev/null
+++ b/atusb/fw/descr.d
@@ -0,0 +1,12 @@
+descr.o: descr.c usb/usb.h usb/dfu.h usb/usb.h board.h \
+ include/atusb/atusb.h board_atusb.h
+
+descr.c:
+usb/usb.h:
+usb/dfu.h:
+usb/usb.h:
+board.h:
+
+include/atusb/atusb.h:
+board_atusb.h:
+
diff --git a/atusb/fw/dfu.d b/atusb/fw/dfu.d
new file mode 100644
index 0000000..6e0954e
--- /dev/null
+++ b/atusb/fw/dfu.d
@@ -0,0 +1,11 @@
+dfu.o: usb/dfu.c usb/usb.h usb/dfu.h board.h include/atusb/atusb.h \
+ board_atusb.h
+
+usb/dfu.c:
+usb/usb.h:
+usb/dfu.h:
+board.h:
+include/atusb/atusb.h:
+
+board_atusb.h:
+
diff --git a/atusb/fw/dfu_common.d b/atusb/fw/dfu_common.d
new file mode 100644
index 0000000..b3d986f
--- /dev/null
+++ b/atusb/fw/dfu_common.d
@@ -0,0 +1,13 @@
+dfu_common.o: usb/dfu_common.c usb/usb.h usb/dfu.h board.h \
+ include/atusb/atusb.h board_atusb.h usb/../sernum.h usb/../board.h
+
+usb/dfu_common.c:
+usb/usb.h:
+usb/dfu.h:
+board.h:
+
+include/atusb/atusb.h:
+board_atusb.h:
+usb/../sernum.h:
+usb/../board.h:
+
diff --git a/atusb/fw/ep0.d b/atusb/fw/ep0.d
new file mode 100644
index 0000000..3c719ec
--- /dev/null
+++ b/atusb/fw/ep0.d
@@ -0,0 +1,20 @@
+ep0.o: ep0.c usb/usb.h usb/dfu.h usb/usb.h include/at86rf230.h \
+ include/atusb/ep0.h include/atusb/atusb.h version.h board.h \
+ board_atusb.h sernum.h spi.h mac.h
+
+ep0.c:
+usb/usb.h:
+usb/dfu.h:
+usb/usb.h:
+include/at86rf230.h:
+
+include/atusb/ep0.h:
+include/atusb/atusb.h:
+version.h:
+board.h:
+
+board_atusb.h:
+sernum.h:
+spi.h:
+mac.h:
+
diff --git a/atusb/fw/flash.d b/atusb/fw/flash.d
new file mode 100644
index 0000000..d8e5a90
--- /dev/null
+++ b/atusb/fw/flash.d
@@ -0,0 +1,11 @@
+flash.o: flash.c usb/dfu.h usb/usb.h board.h include/atusb/atusb.h \
+ board_atusb.h
+
+flash.c:
+usb/dfu.h:
+usb/usb.h:
+board.h:
+include/atusb/atusb.h:
+
+board_atusb.h:
+
diff --git a/atusb/fw/mac.c b/atusb/fw/mac.c
index 835002c..a520887 100644
--- a/atusb/fw/mac.c
+++ b/atusb/fw/mac.c
@@ -32,8 +32,8 @@ static uint8_t tx_buf[MAX_PSDU];
 static uint8_t tx_size = 0;
 static bool txing = 0;
 static bool queued_tx_ack = 0;
-static uint8_t next_seq, this_seq, queued_seq;
-
+static uint8_t next_seq, this_seq, queued_seq, queued_tx_trac;
+static uint8_t data[2];
 
 /* ----- Receive buffer management ----------------------------------------- */
 
@@ -65,7 +65,9 @@ static void usb_next(void)
 	}
 
 	if (queued_tx_ack) {
-		usb_send(&eps[1], &queued_seq, 1, tx_ack_done, NULL);
+		data[0] = queued_seq;
+		data[1] = reg_read(REG_TRX_STATE);
+		usb_send(&eps[1], data, 2, tx_ack_done, NULL);
 		queued_tx_ack = 0;	
 	}
 }
@@ -124,10 +126,13 @@ static bool handle_irq(void)
 
 	if (txing) {
 		if (eps[1].state == EP_IDLE) {
-			usb_send(&eps[1], &this_seq, 1, tx_ack_done, NULL);
+			data[0] = this_seq;
+			data[1] = reg_read(REG_TRX_STATE);
+			usb_send(&eps[1], data, 2, tx_ack_done, NULL);
 		} else {
 			queued_tx_ack = 1;
 			queued_seq = this_seq;
+			queued_tx_trac = reg_read(REG_TRX_STATE);
 		}
 		txing = 0;
 		return 1;
diff --git a/atusb/fw/mac.d b/atusb/fw/mac.d
new file mode 100644
index 0000000..aa43423
--- /dev/null
+++ b/atusb/fw/mac.d
@@ -0,0 +1,13 @@
+mac.o: mac.c usb/usb.h include/at86rf230.h spi.h board.h \
+ include/atusb/atusb.h board_atusb.h mac.h
+
+mac.c:
+usb/usb.h:
+include/at86rf230.h:
+spi.h:
+board.h:
+
+include/atusb/atusb.h:
+board_atusb.h:
+mac.h:
+
diff --git a/atusb/fw/sernum.d b/atusb/fw/sernum.d
new file mode 100644
index 0000000..8c04153
--- /dev/null
+++ b/atusb/fw/sernum.d
@@ -0,0 +1,11 @@
+sernum.o: sernum.c usb/usb.h board.h include/atusb/atusb.h board_atusb.h \
+ sernum.h
+
+sernum.c:
+usb/usb.h:
+board.h:
+include/atusb/atusb.h:
+board_atusb.h:
+
+sernum.h:
+
diff --git a/atusb/fw/spi.d b/atusb/fw/spi.d
new file mode 100644
index 0000000..fa0b3ef
--- /dev/null
+++ b/atusb/fw/spi.d
@@ -0,0 +1,8 @@
+spi.o: spi.c board.h include/atusb/atusb.h board_atusb.h spi.h
+
+spi.c:
+board.h:
+include/atusb/atusb.h:
+board_atusb.h:
+spi.h:
+
diff --git a/atusb/fw/usb.d b/atusb/fw/usb.d
new file mode 100644
index 0000000..e420d8e
--- /dev/null
+++ b/atusb/fw/usb.d
@@ -0,0 +1,8 @@
+usb.o: usb/usb.c usb/usb.h board.h include/atusb/atusb.h board_atusb.h
+
+usb/usb.c:
+usb/usb.h:
+board.h:
+include/atusb/atusb.h:
+board_atusb.h:
+
diff --git a/atusb/fw/version.c b/atusb/fw/version.c
new file mode 100644
index 0000000..f58413c
--- /dev/null
+++ b/atusb/fw/version.c
@@ -0,0 +1,4 @@
+/* MACHINE-GENERATED. DO NOT EDIT ! */
+#include "version.h"
+const char *build_date = "lun. 05 sept. 2022 05:10:00 CEST";
+const uint16_t build_number = 26;
diff --git a/atusb/fw/version.d b/atusb/fw/version.d
new file mode 100644
index 0000000..aafbf8c
--- /dev/null
+++ b/atusb/fw/version.d
@@ -0,0 +1,5 @@
+version.o: version.c version.h
+
+version.c:
+version.h:
+
