Files
Upsilon/ion/src/device/console.h
Romain Goyet c9be15ba63 [ion/device] Add Console::peerConnected()
Change-Id: Ic6dcea692f09a3efdccaf23db4aa17ab6d6cebde
2017-04-04 15:27:32 +02:00

31 lines
614 B
C++

#ifndef ION_DEVICE_CONSOLE_H
#define ION_DEVICE_CONSOLE_H
#include <ion/console.h>
#include "regs/regs.h"
namespace Ion {
namespace Console {
namespace Device {
/* Pin | Role | Mode
* -----+-------------------+--------------------
* PC11 | UART3 RX | Alternate Function
* PD8 | UART3 TX | Alternate Function
*/
void init();
void shutdown();
bool peerConnected();
constexpr USART UARTPort = USART(3);
constexpr static GPIOPin RxPin = GPIOPin(GPIOC, 11);
constexpr static GPIOPin TxPin = GPIOPin(GPIOD, 8);
constexpr static GPIOPin Pins[] = { RxPin, TxPin };
}
}
}
#endif