Ben V. Brown
b961311a5c
Fix ifdef for inverted accel in TS80/TS80P
...
This should fix #768
2021-01-16 16:03:35 +11:00
Ben V. Brown
5379838f2c
Allow P64 i2c before rtos
2021-01-16 11:22:11 +11:00
Ben V. Brown
25e4abee7d
Split power work into own thread
...
Completely forseeable issue.
Now that we have _more_ ram available, this is a good option to split power related items out into their own thread.
2021-01-16 09:20:23 +11:00
Ben V. Brown
df2f97a1de
Link into MOV thread
2021-01-15 22:07:26 +11:00
Ben V. Brown
ad9f2a4f95
Link MSA301 into normal MOV handler
2021-01-04 21:02:24 +11:00
Ben V. Brown
3696e08dde
Return max rather than 0 for handle temp if outside of temp range [TS80P]
2020-12-29 12:16:29 +11:00
Ben V. Brown
c6fd646ee5
Update Pins.h
2020-12-29 10:58:39 +11:00
Ben V. Brown
53deac02e7
Bring in ADC timing a tad
2020-12-28 16:12:18 +11:00
Ben V. Brown
627c491998
Fix broken ADC sampling was ignoring ADC2 readings
2020-12-28 15:59:43 +11:00
Ben V. Brown
f20ce0a446
Fix PWM sometimes stepping on end of ADC
2020-12-28 15:59:03 +11:00
Ben V. Brown
a2df40417e
Add extra handle temp values for TS80P
2020-12-28 15:58:46 +11:00
Ben V. Brown
f512c4f2ac
Address PR comments
2020-12-17 21:42:33 +11:00
Ben V. Brown
cdeb972593
Cleanup timings in I2C Driver
2020-12-13 16:08:59 +11:00
Ben V. Brown
d509a3df87
Cleanup
2020-12-13 12:54:28 +11:00
Ben V. Brown
c0925a0aed
set sections
2020-12-11 20:30:14 +11:00
Ben V. Brown
d203b14502
WiP
2020-12-11 20:13:25 +11:00
Ben V. Brown
b63f02d033
Reset some encodings
2020-12-11 19:11:23 +11:00
Ben V. Brown
120a0502d6
The basic NMSIS port
2020-12-10 16:18:44 +11:00
Ben V. Brown
fdec7bc0a3
Collapse asm into one file
...
Working across 4 files was a pain to figure out _exactly_ what was used.
Collapsed all into one file for ease
2020-11-08 22:10:43 +11:00
Ben V. Brown
f465d17bb3
Fix QC 20V support
2020-11-01 15:42:36 +11:00
Ben V. Brown
9fd1c957ce
Update QC_GPIO.cpp
2020-11-01 14:52:55 +11:00
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