2 \author Travis Goodspeed
3 \brief STM32F407 port definitions.
9 //! Count the length of a string.
10 uint32_t strlen(const char *s){
14 //! Initialize the STM32F4xx ports and USB.
15 void stm32f4xx_init(){
20 unsigned char serial0_rx(){
24 unsigned char serial1_rx(){
28 void serial0_tx(unsigned char x){
31 void serial_tx_old(unsigned char x){
34 //! Transmit a byte on the second UART.
35 void serial1_tx(unsigned char x){
39 //! Set the baud rate.
40 void setbaud0(unsigned char rate){
41 //Ignore this, as we'll be in USB.
44 //! Set the baud rate of the second uart.
45 void setbaud1(unsigned char rate){