set transmit rate to 10 Mbps
This commit is contained in:
parent
2edb246fdd
commit
3eae87e4bc
1 changed files with 3 additions and 3 deletions
|
|
@ -28,9 +28,9 @@ int main() {
|
||||||
printf("Transmit program loaded at %d\n", offset_tx);
|
printf("Transmit program loaded at %d\n", offset_tx);
|
||||||
printf("Receive program loaded at %d\n", offset_rx);
|
printf("Receive program loaded at %d\n", offset_rx);
|
||||||
|
|
||||||
// Configure state machines, set bit rate at 5 Mbps
|
// Configure state machines, set bit rate at 10 Mbps
|
||||||
differential_manchester_tx_program_init(pio, sm_tx, offset_tx, pin_tx, 125.f / (16 * 5));
|
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 * 5));
|
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_set_enabled(pio, sm_tx, false);
|
||||||
pio_sm_put_blocking(pio, sm_tx, 0);
|
pio_sm_put_blocking(pio, sm_tx, 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue