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;
| ^~~~~~~~~~~~~~
7 months ago
Harald Welte
c8cb0398eb
rename relay-driver binary to directory name
...
This makes a general-purpose build upload script more simple
2 years ago
Harald Welte
3a339ee80b
rfdsatt: Add support to store/load config to/from EEPROM
2 years ago
Harald Welte
e63259baaa
rfdsatt: add low-level EEPROM read/write support
2 years ago
Harald Welte
3b39d671fe
rfdsatt: fix I2C initialization
...
* 2MHz is far enough for I2C
* we need to re-map I2C1 to PB8+PB9
2 years ago
Harald Welte
7d1c8741b8
rfdsatt: interactive help for test + interact mode
2 years ago
Harald Welte
3cfd61baa7
rfdsatt: Move to 1-based channel and stage numbers
...
This matches more with how SCPI controlled attenuators work
2 years ago
Harald Welte
60499f4ebf
rfdsatt: add 'test' command for ramping up the gain of one channel
2 years ago
Harald Welte
1adf7c0ee4
rfdsatt: fix msleep()
2 years ago
Harald Welte
627ead7b21
attenuator: Add convenience functions for setting all stages
2 years ago
Harald Welte
5d2e32e4b8
attenuator: rename functions to make them more descriptive
2 years ago
Harald Welte
6284afc23d
attenuator: split out 'execution' from 'validation' part
2 years ago
Harald Welte
73b514d793
rfdsatt: Add 'interactive' mode with single-key modifications
2 years ago
Harald Welte
e431886969
attenuator: disable GPIO debugging
2 years ago
Harald Welte
7b684307f7
attenuator: Fix stored/cached value per attenuator
2 years ago
Harald Welte
4e20a652a2
rfdsatt: abbreviate mircovty commands as we have no tab completion
2 years ago
Harald Welte
b94ed88133
rfdsatt: Add 'attenuator-show' microvty command
2 years ago
Harald Welte
cd97005150
rfdsatt: move LED and microvty to fibre/protothreads
2 years ago
Harald Welte
abfceb45f5
attenuator: set initial state of outputs to 'low'
...
otherwise they might be high, which means the latch is permanently
enabled.
2 years ago
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
2 years ago
Harald Welte
26b10f3e5d
rfdsatt: Disalbe JTAG AF on some GPIO lines overlapping LE
2 years ago
Harald Welte
f025e64a57
attenuator: Print level at time of write.
2 years ago
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
2 years ago
Harald Welte
b4781312f9
import firmware for the blue-pill relay driver board (NCV7240)
...
this usd to be in a private fork of i2c-star.git, but let's
keep all osmocom related stm32f0/f1 firmware projects here.
2 years ago
Harald Welte
3af30f0a6a
rfdsatt: use librfn/time.h instead of own systick handler
2 years ago
Harald Welte
13ae607484
rfdsatt: move away from deprecated libopencm3 APIs
...
This resolves compiler warnings about the use of deprecated APIs.
2 years ago
Harald Welte
645ed3a795
WIP: support for STM32F051 in addition to STM32F103
...
Related: SYS#5410
2 years ago
Harald Welte
8074b2cdc4
rfdsatt: Fix length of UUID string buffers
2 years ago
Harald Welte
f65f08b841
rfdsatt: Command to show firmware build version
2 years ago
Harald Welte
80c9eee3f6
move libopencm3 make rules to 'mk'
2 years ago
Harald Welte
f58fda447e
rfdsatt: add uuid and reset command; print banner at startup
2 years ago
Harald Welte
f26576f299
update erroneously copy+pasted copyright notice
2 years ago
Harald Welte
f962556911
integrate microvty
2 years ago
Harald Welte
8bcec75693
integrate picolibc and its stdio
2 years ago
Harald Welte
77eda9fcb7
rfdn: add systick
2 years ago
Harald Welte
9c3d5c0ee2
rules.mk: don't be quite as quiet
2 years ago
Harald Welte
9b21fe50db
WIP: add librfn
2 years ago
Harald Welte
84524934a2
initial checkin of rfdsatt (clone of stm32 usart example)
2 years ago