1
0
forked from me/IronOS
Commit Graph

96 Commits

Author SHA1 Message Date
Ben V. Brown
f5644a090f Update QC to allow 20V theoretically + allow query for power source 2020-11-01 14:43:49 +11:00
Ben V. Brown
3146343bbb Split DC input and QC from being an OR :) 2020-11-01 14:28:12 +11:00
Ben V. Brown
7e4187e62d Update BSP.cpp 2020-11-01 14:05:48 +11:00
Ben V. Brown
84772266fd Adding in Watchdog 2020-11-01 14:04:26 +11:00
Ben V. Brown
34266567c9 Update Setup.c 2020-11-01 14:01:56 +11:00
Ben V. Brown
9f4bcf2875 Default timer to off in setup 2020-11-01 13:39:45 +11:00
Ben V. Brown
1b579febcd Reformat 2020-11-01 12:27:46 +11:00
Ben V. Brown
7c5c689d44 Cleanup & Mask unused functions 2020-11-01 12:24:24 +11:00
Ben V. Brown
e612c4751f Defines for time periods for cleaning up 2020-11-01 10:38:32 +11:00
Ben V. Brown
a1a7eb9e59 Hall Effect sensor working in higher range 2020-10-31 15:45:36 +11:00
Ben V. Brown
1f4ed60838 Wake Halleffect correctly helps..... 2020-10-31 00:15:30 +11:00
Ben V. Brown
ba5bd39e43 Cleanup stubs so that LTO can be used on Pinecil 2020-10-31 00:03:44 +11:00
Ben V. Brown
4496cfd41d More hooks for hall effect 2020-10-27 18:38:40 +11:00
Ben V. Brown
c8182aa192 Debugging history.hpp compiling odd 2020-10-13 22:08:30 +11:00
Ben V. Brown
40cf09a910 Add support for dual speed PWM 2020-10-13 20:23:43 +11:00
Ben V. Brown
2e4168be73 Bulk format 2020-10-13 19:04:16 +11:00
Ben V. Brown
d2ac2800d0 Merge branch 'master' into pinecil 2020-10-13 18:47:38 +11:00
Ben V. Brown
58c4ecaea6 Starting hall effect support 2020-10-13 18:46:37 +11:00
Paul Fertser
30be5e0de4 Introduce PWM freq switching so that power could be averaged on shorter intervals
With this a TS-I tip is usable with a small netbook 19 V / 30 W PSU with
power limit set to 40 W (38.9 W is reported during the heating up
stage). Without this the device just reboots on attempt to turn on the
heater (unless the power limit is set to 10 or even 5 W).

This code doesn't affect maximum power available and allows up to 73 W
when a beefy 24 V / 96 W PSU is used.

Should be useful for all models, not just TS100.

The fixed comments are based on calculations, not measurements!

Fixes #693.
2020-09-29 19:02:55 +03:00
Ben V. Brown
fc5765ad22 Merge branch 'pinecil' of https://github.com/Ralim/ts100 into pinecil 2020-09-28 21:11:52 +10:00
Ben V. Brown
ed138d8db7 Add GPIO for QC 2020-09-28 21:11:40 +10:00
Ben V. Brown
8d0addd7f1 Fix build 2020-09-26 17:09:57 +10:00
Ben V. Brown
c9172f0f9b Move to basic DMA I2C | handle poll FUSB better 2020-09-25 18:50:41 +10:00
Ben V. Brown
cd69dc1e4c Save and restore settings 2020-09-24 19:20:51 +10:00
Ben V. Brown
088516acea Working auto orientation 2020-09-24 18:06:20 +10:00
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
42f643c40f Update I2C_Wrapper.cpp 2020-09-20 17:05:36 +10:00
Ben V. Brown
89522027b7 Fix voltage on home screen 2020-09-20 16:24:39 +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
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