Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • cats/mobile-transceiver-software
  • Reed/mobile-transceiver-software
  • xanarin/mobile-transceiver-software
3 results
Show changes
Commits on Source (4)
......@@ -21,6 +21,18 @@ You may also want to add a comment:
set comment Hello World!
```
And possibly enable GPS:
```
set gps receiver
```
It may also be a good idea to look at all the settings to make sure they're how you want them:
```
get
```
Don't forget to enable transmitting and save your settings:
```
......@@ -71,7 +83,7 @@ brew install dfu-util
3. Put the transceiver into firmware flashing mode:
1. Connect the board to your computer via USB
2. Hold down the `flash` button
3. Press the `reset` button
3. Momentarily press the `reset` button
4. Release the `flash` button
5. The red LED will come on, then go off. If it stays on, it means your computer isn’t communicating with the board for some reason. Check your cable!
4. Flash the firmware:
......@@ -108,7 +120,7 @@ sudo udevadm control --reload-rules && sudo udevadm trigger
### Board setup
1. Connect the board to your computer via USB
2. Hold down the `flash` button
3. Press the `reset` button
3. Momentarily press the `reset` button
4. Release the `flash` button
The red LED will come on, then go off. If it stays on, it means your computer isn't communicating with the board for some reason. Check your cable!
......
......@@ -191,12 +191,19 @@ mod app {
hclk: clocks.hclk(),
};
unsafe {
#[allow(static_mut_refs)]
USB_BUS.replace(UsbBus::new(usb, &mut EP_MEMORY));
}
let usb_serial = usbd_serial::SerialPort::new(unsafe { USB_BUS.as_ref().unwrap() });
let usb_serial = usbd_serial::SerialPort::new(unsafe {
#[allow(static_mut_refs)]
USB_BUS.as_ref().unwrap()
});
let usb_dev = UsbDeviceBuilder::new(
unsafe { USB_BUS.as_ref().unwrap() },
unsafe {
#[allow(static_mut_refs)]
USB_BUS.as_ref().unwrap()
},
UsbVidPid(0x16c0, 0x27dd),
)
.manufacturer("cats.radio")
......