1
0
forked from me/IronOS
Commit Graph

57 Commits

Author SHA1 Message Date
Ben V. Brown
e38da13306 Rework _all_ of the I2C
This moves all of the I2C code to IRQ based (not DMA _yet_).
But it does drastically improve reliability, especially of reads.
2020-09-22 21:03:09 +10:00
Ben V. Brown
60e3616c79 Fix PD IRQ 2020-09-20 16:15:55 +10:00
Ben V. Brown
470cae2459 Remove I2C lock2 2020-09-20 16:11:19 +10:00
Ben V. Brown
e6445491bb Move OLED to use bulk setup 2020-09-20 16:09:59 +10:00
Ben V. Brown
ad8df08bb8 Rough pass updating to add BMA223 support 2020-09-18 21:58:36 +10:00
Ben V. Brown
f374787564 Simplify I2C initalisation 2020-09-18 19:50:50 +10:00
Ben V. Brown
adc58ffecf Merge branch 'master' into pinecil 2020-09-17 19:07:55 +10:00
Ben V. Brown
8074255b9e Backport some master changes 2020-09-17 19:05:55 +10:00
Ben V. Brown
023e176c87 Update int_n.cpp 2020-09-05 20:29:57 +10:00
Ben V. Brown
8bacbe49fc Bring back PD 3.0 2020-09-05 20:26:07 +10:00
Ben V. Brown
12cf202338 Remove reset handler 2020-09-05 20:19:12 +10:00
Ben V. Brown
d48b27928a Move I2C initalisations into more logical spots 2020-09-05 20:10:10 +10:00
Ben V. Brown
d9c05db058 I2C wrapper cleanup 2020-09-05 20:04:07 +10:00
Ben V. Brown
275708ee25 Mimimum Buildable 2020-08-18 19:14:15 +10:00
Ben V. Brown
2becaa5eab Further work on Pinecil compile 2020-08-18 18:58:00 +10:00
Ben V. Brown
b370fcfa6f Fix warnings 2020-08-02 16:36:52 +10:00
Ben V. Brown
e4aab8aa91 Update pd.h 2020-08-02 16:27:34 +10:00
Ben V. Brown
c066ec8ae5 Setup delay not required anymore 2020-08-02 16:18:50 +10:00
Ben V. Brown
026e5cc9c5 NULL pointer checks for race 2020-08-02 16:18:43 +10:00
Ben V. Brown
0d03650726 Correct timings 2020-08-02 16:17:51 +10:00
Ben V. Brown
d47c28b760 Use mutex for priority inversion prevention 2020-08-02 16:17:41 +10:00
Ben V. Brown
e2c5e51fe1 Refactor to 1khz RToS 2020-08-01 21:16:23 +10:00
Ben V. Brown
a39185315d Allow query PD for status and remove more cruft from PPS 2020-07-29 22:52:36 +10:00
Ben V. Brown
d68eb95f50 Cleanup more unrequired logic 2020-07-28 22:27:14 +10:00
Ben V. Brown
b6ee4207dd Dont need to soft reset if timing gives SOP' without SOP following
Easier to wait again and let timeout handle reset
2020-07-28 21:56:50 +10:00
Ben V. Brown
0b2311e001 Update config and clean up debugging calls 2020-07-28 21:20:36 +10:00
Ben V. Brown
8f395e2294 Update protocol_tx.cpp 2020-07-28 20:28:36 +10:00
Ben V. Brown
9832b97248 Header updates to match 2020-07-28 20:10:34 +10:00
Ben V. Brown
d35b2bf115 Update protocol_rx.cpp 2020-07-28 20:05:58 +10:00
Ben V. Brown
dd340d3a2b Port from test env cleanups 2020-07-28 20:05:47 +10:00
Ben V. Brown
8eacf50a5b mask stacked reset if another message recieved at the same time 2020-07-28 20:02:32 +10:00
Ben V. Brown
c9a8794fb9 Policy handle already pending message 2020-07-28 20:01:56 +10:00
Ben V. Brown
e6d1249c91 Cleanup model selection 2020-07-25 22:28:38 +10:00
Ben V. Brown
f36e78f664 . 2020-07-23 22:49:05 +10:00
Ben V. Brown
ff65e6437b Shrink flash usage _just_ enough 2020-07-23 22:45:00 +10:00
Ben V. Brown
b40a21470b Update fusbpd.cpp 2020-07-22 23:09:46 +10:00
Ben V. Brown
9b0a071e9a Cleaning up a bit for ease of integration 2020-07-22 23:06:59 +10:00
Ben V. Brown
1cebcdc42b Works on SRC only units.. mostly 2020-07-22 22:39:35 +10:00
Ben V. Brown
b6c61cfb52 Still testing 2020-07-21 13:39:50 +10:00
Ben V. Brown
43b7947645 Update fusbpd.cpp 2020-06-17 18:15:27 +10:00
Ben V. Brown
12e8d2a93d Update hard_reset.cpp 2020-06-17 18:15:22 +10:00
Ben V. Brown
c55b91af6a static state 2020-06-17 18:15:16 +10:00
Ben V. Brown
6d23617670 IRQ int 2020-06-17 18:14:17 +10:00
Ben V. Brown
4c2fb11d32 Filter returned WFE 2020-06-16 21:25:28 +10:00
Ben V. Brown
2fd06887e8 Better messages flowing 2020-06-16 20:21:26 +10:00
Ben V. Brown
61f991e423 Fix watchdog timeouts && get unit to boot 2020-06-14 21:12:25 +10:00
Ben V. Brown
f196c5f1c9 Moving PD framework + big thread cleanup 2020-06-14 16:32:11 +10:00
Ben V. Brown
2c0b14edd4 Culling until fits in code
Does _not_ negotiate correctly :(
2020-06-12 22:13:40 +10:00
Ben V. Brown
34ae57ee58 Bitbang I2C setup + detect test 2020-06-12 21:10:03 +10:00
Ben V. Brown
450ce17935 Import existing FUSB302 library 2020-06-11 23:30:06 +10:00