Paul Fertser
a64186d9a4
Fix key autorepeat timing
...
This constant is in scheduler ticks so needs to be changed accordingly
to keep the old timing.
Fixes: e2c5e51fe1
2020-08-28 13:13:41 +03:00
Paul Fertser
25aee6b661
Move I2CSemaphore creation outside postRToSInit
...
The code assumes that whenever scheduler is running I2CSemaphore is
available. Initialising it in a task might lead to race conditions and
is also not happening at all if the task is disabled (for debugging or
due to lack of need for a particular usecase).
The race condition can't happen with the current code though, as GUI
task has lower priority than the MOV task, and they're the only tasks
that currently use I2C. However, this might change in the future with
the code refactoring or introduction of new features.
2020-08-26 15:07:13 +03:00
Paul Fertser
c1dd88ba53
Allow SWD debugging when built with swd_enable=1
2020-08-26 11:54:29 +03:00
Paul Fertser
780f1f35ca
Make flash and bootloader sizes configurable
...
This patch makes allocating special pages automatic and flexible,
allowing flash size and application start offset specification with
linker command line arguments. It should allow easier porting to
different targets and experimentation without adding code complexity.
Many original STM32F103x8 chips have fully functional 128 kiB flash and
so this additional space might come useful for experimentation,
additional optional features etc. Tested on v2.51A board, including
writing and verifying 128 kiB of random data.
Make variables are added to control that, so to build for the full
undocumented flash size and dapboot configured to start the app from 8
kiB offset one can run:
make flash_size=128k bootldr_size=0x2000
2020-08-26 11:53:47 +03: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
9f41ac96a2
Port Pine64 base BSP package
2020-08-15 23:00:42 +10:00
Ben V. Brown
8faeb4e587
More accurate TS80P peak 12V current draw
2020-08-15 16:41:28 +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
666c250630
Setup to basically always pick 5V
2020-08-02 16:18:32 +10:00
Ben V. Brown
d73ad0d11c
No need to listen to SOP' SOP" now
2020-08-02 16:18:17 +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
9391158399
Re enable accel, fix accel flags & cleanup qc
2020-07-29 22:53:08 +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
a59d008d07
Hold off QC until PD is done
2020-07-29 22:52:20 +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
be57c4f58a
Update BSP_PD.c
2020-07-28 21:43:42 +10:00
Ben V. Brown
7b41e2fcca
Lower min spec to ~27W for 12v neg
2020-07-28 21:28:27 +10:00
Ben V. Brown
add65ead9c
Drop timer support as not used
2020-07-28 21:26:05 +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
23ce11a68f
Listen for SOP packets too to keep in sync (discard at software layer)
2020-07-28 19:59:28 +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
85decdc15b
Merge branch 'master' into supporting-FUSB302
2020-07-23 20:26:56 +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
1f6dfe5da5
MVP
2020-07-22 22:59:20 +10:00
Ben V. Brown
4441a5ca93
Handle NTC in TS80P
2020-07-22 22:54:55 +10:00
Ben V. Brown
1cebcdc42b
Works on SRC only units.. mostly
2020-07-22 22:39:35 +10:00
Ben V. Brown
6097216b24
Port unreliable but starter PD setup
2020-07-22 22:39:20 +10:00
Ben V. Brown
164c402d1c
Update I2CBB.cpp
2020-07-22 22:33:18 +10:00
Ben V. Brown
b6c61cfb52
Still testing
2020-07-21 13:39:50 +10:00
Ben V. Brown
a81511ceb9
Merge pull request #659 from paulfertser/fix-tempchange-menu
...
Fix "Temp change short/long" menu display
2020-06-21 10:25:08 +10:00
Paul Fertser
099d6b8aee
Fix scrollbar thumb position for long menus
...
Advanced settings menu has 9 entries so the thumb ends up being one
pixel high and on the 9th menu it ends up being closer to the middle of
the screen rather than the end. This patch fixes it.
2020-06-21 00:37:15 +03:00
Paul Fertser
021b8e2fc8
Fix "Temp change short/long" menu display
...
The values are only two digits so do not overwrite the end of the menu
item string.
Fixes : #658 .
2020-06-20 23:41:44 +03:00
Ben V. Brown
c70689df7d
Hook up IRQ
2020-06-17 18:22:43 +10:00
Ben V. Brown
43b7947645
Update fusbpd.cpp
2020-06-17 18:15:27 +10:00