Commit graph

2,154 commits

Author SHA1 Message Date
stephan
de52b8304e uartterm wait_for_usb: verbosity, timeout
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda/arm@9136 bc5caf13-1734-44f8-af43-603852e9ee25
2024-12-20 12:29:15 +01:00
Stephan I. Böttcher
2d853d7804 uartterm: ucmd() and raise_e 2024-12-20 12:18:26 +01:00
Stephan I. Böttcher
c29c5a4a74 armlib: do not wait for Altera (DLRENA) 2024-12-20 12:17:40 +01:00
Stephan I. Böttcher
e07084356a ssp_isr: fix ssp_match.frame_count match 2024-12-18 22:28:51 +01:00
Stephan I. Böttcher
7473c73be6 ssp_run_batch: move ssp_b_job up, for speed 2024-12-11 21:12:51 +01:00
Stephan I. Böttcher
2174022a93 ads8688, ssp: fix ssp_buffer ?! 2024-12-10 13:40:24 +01:00
Stephan I. Böttcher
480574d902 ads8688: fix (de)assert_ssl 2024-12-10 12:02:29 +01:00
Stephan I. Böttcher
dd6bf3ef40 ads8688: fixes
- ads8688_readings: do not count first twice
- status bits allocation
- read_cb: more frame fixes
- read_cb_auto: mask aidx when counting ch
2024-12-09 20:35:49 +01:00
Stephan I. Böttcher
38a2b0ac29 ssp/status: fix message 2024-12-09 20:30:39 +01:00
Stephan I. Böttcher
41cceb7365 ads8688: read_cd: fix man_ch encoding 2024-12-09 17:57:14 +01:00
Stephan I. Böttcher
afd92db0e2 ssp_busy: print ssel and mode 2024-12-09 17:56:14 +01:00
Stephan I. Böttcher
a4ef98473e ads8688: gain_cb: advance c
- advance the channel number, instead of running an infinite loop
- store the channel number in the proper bits.
2024-12-09 14:48:05 +01:00
Stephan I. Böttcher
2c779c8e48 ssp_busy: return status bits when batch is active 2024-12-09 13:58:37 +01:00
Stephan I. Böttcher
0affc4aa8c ads8688: fixes
read_auto_cb: fix test of frame value
gains_cb: fix tcnh_cb condition, fix return value
ads8688_batch: change deasserts
ads8688_start: cmd_count parameter
adc_gains_cmd, adc_read_cmd: ads8688_start(w,s,r)
2024-12-09 13:08:40 +01:00
Stephan I. Böttcher
9ef3a9e879 pressure: fix callback return (implement new specs) 2024-12-09 13:08:16 +01:00
Stephan I. Böttcher
7cc586f8be ssp_run_batch: fix callback, whilebuf
A callback shall return

  0: to return 0, a continuation was triggered,
  -1: to advance in the batch,
  else: to abort the batch and return that value.

A repeat and whilebuf will be honoured with all actions.
A whilebuf skips any entry when there is no space in the buffer.
2024-12-09 12:58:55 +01:00
Stephan I. Böttcher
bc0d3da4b8 ms5534c readout fix
turbo_weather does CPOL=0 for cmd write and CPOL=1 for read clocks,
as seems to be required by the device. CPOL=0 for read clocks will work
too, but the captured frames are shifted by one bit towards the
following frame.

- add one frame to the last (D2) readout, to capture the last bit.
- shift the data in place in bate_callback()
- (cosmetic change) use ssp_b_scratch to setup the buffer
2024-12-06 20:42:40 +01:00
Stephan I. Böttcher
4d4b4d635f ssp_isr review
- enable SSP_INT_RT to drain the Rx fifo
- fix ssp_match.  Without _mask, do not trigger on fr >= fc
- batch, use second union for goto offset
- batch use wait.pclk, ->value for delay
- batch flags bits are now all orthogonal, i.e., ssel delays.
- fix ssp_b_whilebuf
- numeric job members are now all uint32, to speed up the _isr
- fix ssp_b_delay bit overlap
2024-12-06 15:49:12 +01:00
Stephan I. Böttcher
8b4d150b43 timer: enable T1 after ccr config, hit on any int 2024-12-04 23:30:58 +01:00
Stephan I. Böttcher
38accb7f35 pressure: wait_conversion via pclk, ccr1, fix buf_count 2024-12-04 22:54:57 +01:00
Stephan I. Böttcher
4b15e960ef timer/message 2024-12-04 22:33:10 +01:00
Stephan I. Böttcher
9f30b24b7f timer: reset VIC in _isr() 2024-12-04 22:14:08 +01:00
Stephan I. Böttcher
36527e1cdf timer_cmd: fix _init() 2024-12-03 21:50:48 +01:00
Stephan I. Böttcher
6e276bc3f3 timer: ccr1 status, ccr1 default timeout 10s 2024-12-03 21:24:29 +01:00
Stephan I. Böttcher
f235c3ac84 timer_cmd: new 2024-12-03 21:10:16 +01:00
Stephan I. Böttcher
4589e8745e pressure: const wait_conversion 2024-12-03 21:09:39 +01:00
Stephan I. Böttcher
3889d8d82f ssp batch: fix timer_wait 2024-12-03 21:08:08 +01:00
Stephan I. Böttcher
a3bf7a7275 ssp_run_batch: fix repeat (op precedence, logic), support init w/o assert 2024-12-02 22:20:02 +01:00
Stephan I. Böttcher
0265ee85a2 pressure/hash: fix keyword entry 2024-12-02 22:18:01 +01:00
Stephan I. Böttcher
87c50652ff bate: increase timeout 2024-12-02 19:54:39 +01:00
Stephan I. Böttcher
c2ed5387d5 ssp config dac: slow down to 5MHz 2024-12-02 19:53:52 +01:00
Stephan I. Böttcher
bb296e17a6 ssp_busy: ignore SSP_INT_RX 2024-12-02 19:52:28 +01:00
Stephan I. Böttcher
9fc36c938c fix adc/frame/continue 2024-12-02 19:50:22 +01:00
Stephan I. Böttcher
494ec955c5 ssp_assert_ssel: actually set the ssel to low 2024-11-29 12:49:32 +01:00
Stephan I. Böttcher
5c9dfe072a new: dlrena.py 2024-11-22 22:34:08 +01:00
Stephan I. Böttcher
f47fb57243 mainloop: fix adc vars order, echo/uart1 sends nl 2024-11-22 22:33:35 +01:00
stephan
89e699e4d1 isr: call usb_reset() in stop()
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda/arm@9144 bc5caf13-1734-44f8-af43-603852e9ee25
2024-11-15 21:13:28 +01:00
stephan
64fc546a9d isr: stop_stack() calls in stop()
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda/arm@9145 bc5caf13-1734-44f8-af43-603852e9ee25
2024-11-15 21:13:28 +01:00
Stephan I. Böttcher
cbd60728e9 .gitignore oops.txt 2024-11-15 17:53:34 +01:00
Stephan I. Böttcher
a4a0898c48 Merge branch 'dlrena' of forge.bexus.org:Stephan/irena-arm into dlrena 2024-11-15 17:52:13 +01:00
Stephan I. Böttcher
db69642f35 armlib.py: --serialr= reverse uart RESET polarity 2024-11-15 17:50:32 +01:00
Stephan I. Böttcher
ca2c37e3ef oops.py: python3 2024-11-15 17:48:48 +01:00
Stephan I. Böttcher
21217d00a9 ssp_variable_names: fix termination 2024-11-15 15:04:51 +01:00
Stephan Boettcher
ad63785861 armlib: ipython3 2024-11-15 15:02:45 +01:00
Stephan I. Böttcher
a75d940be5 new command gpio1 2024-11-08 22:46:39 +01:00
Stephan I. Böttcher
a1ea3d45d5 ssp: minor fix 2024-11-08 22:34:22 +01:00
Stephan I. Böttcher
5fbc49e6b5 ads8688: reuse ssp_resp_kw, timeout 2024-11-08 21:11:12 +01:00
Stephan I. Böttcher
99af9d8e52 ssp/response 2024-11-08 21:04:53 +01:00
Stephan I. Böttcher
d2510b344b fix adc/status 2024-11-08 21:02:43 +01:00
Stephan I. Böttcher
142da6bbb0 ads8688: fixes
- read_auto: disable readout after auto_sel
- gains: single word buffer for a single frame
- `read_cmd`: initialize `->nbuf`
- `adc/status`
2024-11-08 16:33:48 +01:00