Browse Source

AP_SerialManager: remove checks for HAL_BOARD_APM2 and HAL_BOARD_APM1

master
Lucas De Marchi 9 years ago committed by Andrew Tridgell
parent
commit
3ba00feda4
  1. 7
      libraries/AP_SerialManager/AP_SerialManager.cpp
  2. 1
      libraries/AP_SerialManager/AP_SerialManager.h

7
libraries/AP_SerialManager/AP_SerialManager.cpp

@ -257,7 +257,6 @@ void AP_SerialManager::set_blocking_writes_all(bool blocking)
} }
// set_console_baud - sets the console's baud rate to the rate specified by the protocol // set_console_baud - sets the console's baud rate to the rate specified by the protocol
// used on APM2 to switch the console between the console baud rate (115200) and the SERIAL1 baud rate (user configurable)
void AP_SerialManager::set_console_baud(enum SerialProtocol protocol, uint8_t instance) const void AP_SerialManager::set_console_baud(enum SerialProtocol protocol, uint8_t instance) const
{ {
uint8_t found_instance = 0; uint8_t found_instance = 0;
@ -276,10 +275,8 @@ void AP_SerialManager::set_console_baud(enum SerialProtocol protocol, uint8_t in
} }
/* /*
* map from a 16 bit EEPROM baud rate to a real baud rate * map from a 16 bit EEPROM baud rate to a real baud rate.
* The practical rates for APM1/APM2 are up to 500kbaud, although * For PX4 we can do 1.5MBit, although 921600 is more reliable.
* beyond 115200 isn't recommended. For PX4 we can do 1.5MBit,
* although 921600 is more reliable
*/ */
uint32_t AP_SerialManager::map_baudrate(int32_t rate) const uint32_t AP_SerialManager::map_baudrate(int32_t rate) const
{ {

1
libraries/AP_SerialManager/AP_SerialManager.h

@ -112,7 +112,6 @@ public:
void set_blocking_writes_all(bool blocking); void set_blocking_writes_all(bool blocking);
// set_console_baud - sets the console's baud rate to the rate specified by the protocol // set_console_baud - sets the console's baud rate to the rate specified by the protocol
// used on APM2 to switch the console between the console baud rate (115200) and the SERIAL1 baud rate (user configurable)
void set_console_baud(enum SerialProtocol protocol, uint8_t instance) const; void set_console_baud(enum SerialProtocol protocol, uint8_t instance) const;
// parameter var table // parameter var table

Loading…
Cancel
Save