set transmit rate to 10 Mbps

This commit is contained in:
Arne Zachlod 2026-01-16 17:15:30 +01:00
parent 2edb246fdd
commit 3eae87e4bc

View file

@ -28,9 +28,9 @@ int main() {
printf("Transmit program loaded at %d\n", offset_tx);
printf("Receive program loaded at %d\n", offset_rx);
// Configure state machines, set bit rate at 5 Mbps
differential_manchester_tx_program_init(pio, sm_tx, offset_tx, pin_tx, 125.f / (16 * 5));
differential_manchester_rx_program_init(pio, sm_rx, offset_rx, pin_rx, 125.f / (16 * 5));
// Configure state machines, set bit rate at 10 Mbps
differential_manchester_tx_program_init(pio, sm_tx, offset_tx, pin_tx, 125.f / (16 * 10));
differential_manchester_rx_program_init(pio, sm_rx, offset_rx, pin_rx, 125.f / (16 * 10));
pio_sm_set_enabled(pio, sm_tx, false);
pio_sm_put_blocking(pio, sm_tx, 0);