Harald Welte
63c07a8bd1
rfdsatt: remove redundant redeclaration of microvty_fibre
...
rfdsatt.c:501:16: warning: redundant redeclaration of 'microvty_fibre' [-Wredundant-decls]
501 | extern fibre_t microvty_fibre;
| ^~~~~~~~~~~~~~
In file included from rfdsatt.c:35:
../../libcommon/include/libcommon/microvty.h:48:16: note: previous declaration of 'microvty_fibre' was here
48 | extern fibre_t microvty_fibre;
| ^~~~~~~~~~~~~~
2022-07-11 17:33:55 +02:00
Harald Welte
3a339ee80b
rfdsatt: Add support to store/load config to/from EEPROM
2021-05-07 20:05:12 +02:00
Harald Welte
e63259baaa
rfdsatt: add low-level EEPROM read/write support
2021-05-07 20:04:53 +02:00
Harald Welte
3b39d671fe
rfdsatt: fix I2C initialization
...
* 2MHz is far enough for I2C
* we need to re-map I2C1 to PB8+PB9
2021-05-07 16:23:30 +02:00
Harald Welte
7d1c8741b8
rfdsatt: interactive help for test + interact mode
2021-05-07 12:28:30 +02:00
Harald Welte
3cfd61baa7
rfdsatt: Move to 1-based channel and stage numbers
...
This matches more with how SCPI controlled attenuators work
2021-05-07 12:22:28 +02:00
Harald Welte
60499f4ebf
rfdsatt: add 'test' command for ramping up the gain of one channel
2021-05-06 08:33:01 +02:00
Harald Welte
1adf7c0ee4
rfdsatt: fix msleep()
2021-05-06 08:32:48 +02:00
Harald Welte
627ead7b21
attenuator: Add convenience functions for setting all stages
2021-05-06 08:26:46 +02:00
Harald Welte
5d2e32e4b8
attenuator: rename functions to make them more descriptive
2021-05-06 08:20:03 +02:00
Harald Welte
6284afc23d
attenuator: split out 'execution' from 'validation' part
2021-05-06 08:16:18 +02:00
Harald Welte
73b514d793
rfdsatt: Add 'interactive' mode with single-key modifications
2021-05-05 23:00:14 +02:00
Harald Welte
e431886969
attenuator: disable GPIO debugging
2021-05-05 23:00:14 +02:00
Harald Welte
7b684307f7
attenuator: Fix stored/cached value per attenuator
2021-05-05 23:00:14 +02:00
Harald Welte
4e20a652a2
rfdsatt: abbreviate mircovty commands as we have no tab completion
2021-05-05 23:00:14 +02:00
Harald Welte
b94ed88133
rfdsatt: Add 'attenuator-show' microvty command
2021-05-05 23:00:14 +02:00
Harald Welte
cd97005150
rfdsatt: move LED and microvty to fibre/protothreads
2021-05-05 23:00:14 +02:00
Harald Welte
abfceb45f5
attenuator: set initial state of outputs to 'low'
...
otherwise they might be high, which means the latch is permanently
enabled.
2021-04-13 19:02:20 +02:00
Harald Welte
e8849c28ea
rfdsatt: re-maip HSE pins to PD0/PD1
...
STM32F1 uses those pins as HSE by default, we need to explicitly
re-map them to PD0/PD1
2021-04-13 18:57:40 +02:00
Harald Welte
26b10f3e5d
rfdsatt: Disalbe JTAG AF on some GPIO lines overlapping LE
2021-04-13 18:42:14 +02:00
Harald Welte
f025e64a57
attenuator: Print level at time of write.
2021-04-13 17:21:04 +02:00
Harald Welte
2a91fc857b
attenuator.c: DAT-31A-S+ has 6th unused bit
...
So In reality DAT-31A-S+ seems to have steps of 0.5dB, but the LSB
is "defined" to be alwasy 0. This means we have to multiply the
dB value by 2 (shift one left) to make sure the LSB in 0.5dB steps
remains 0, and to make sure we actually step n steps of 1dB
2021-04-13 17:19:08 +02:00
Harald Welte
3af30f0a6a
rfdsatt: use librfn/time.h instead of own systick handler
2021-04-11 16:24:33 +02:00
Harald Welte
13ae607484
rfdsatt: move away from deprecated libopencm3 APIs
...
This resolves compiler warnings about the use of deprecated APIs.
2021-03-28 22:08:20 +02:00
Harald Welte
645ed3a795
WIP: support for STM32F051 in addition to STM32F103
...
Related: SYS#5410
2021-03-28 18:43:25 +02:00
Harald Welte
8074b2cdc4
rfdsatt: Fix length of UUID string buffers
2021-03-28 18:06:59 +02:00
Harald Welte
f65f08b841
rfdsatt: Command to show firmware build version
2021-03-28 16:53:54 +02:00
Harald Welte
80c9eee3f6
move libopencm3 make rules to 'mk'
2021-03-28 16:48:52 +02:00
Harald Welte
f58fda447e
rfdsatt: add uuid and reset command; print banner at startup
2021-03-28 16:46:53 +02:00
Harald Welte
f26576f299
update erroneously copy+pasted copyright notice
2021-03-28 16:46:33 +02:00
Harald Welte
f962556911
integrate microvty
2021-03-28 16:16:16 +02:00
Harald Welte
8bcec75693
integrate picolibc and its stdio
2021-03-28 15:29:48 +02:00
Harald Welte
77eda9fcb7
rfdn: add systick
2021-03-28 12:16:21 +02:00
Harald Welte
9b21fe50db
WIP: add librfn
2021-03-28 12:14:44 +02:00
Harald Welte
84524934a2
initial checkin of rfdsatt (clone of stm32 usart example)
2021-03-27 23:34:43 +01:00