Ben V. Brown
23b5452670
Port across init reg helper
2020-09-18 21:59:38 +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
65ae7c8b13
Cleanup ADC
2020-09-18 19:09:59 +10:00
Ben V. Brown
13a9159470
.
2020-09-17 19:38:40 +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
b4c8fc2aab
Update configs for newer pinout
2020-09-17 18:37:57 +10:00
Ben V. Brown
11e583be63
Fix interrupt race
2020-09-05 20:19:03 +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
3d3799d414
Prepare v2.11 release
2020-08-29 14:38:56 +10: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
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
9391158399
Re enable accel, fix accel flags & cleanup qc
2020-07-29 22:53:08 +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
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
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
ff65e6437b
Shrink flash usage _just_ enough
2020-07-23 22:45:00 +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
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
c70689df7d
Hook up IRQ
2020-06-17 18:22:43 +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
54a8aa7ac6
I2C protection
2020-06-16 20:19:06 +10:00
Ben V. Brown
9ea92a3c17
Disable i2c slave code (shaves off a few hundred bytes)
2020-06-14 21:12:41 +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
64d5e8b1af
Fix mixtake in I2C probe check
2020-05-30 18:35:15 +10:00
Ben V. Brown
441ac7f83a
Move IRQ's for easier tracing
2020-05-30 18:34:49 +10:00
Ben V. Brown
7cff1cdf3b
Update Power.cpp
2020-05-30 12:43:49 +10:00