603c0ebbb78e59f68feed946bd072914da8260e8
[goodfet] / firmware / lib / stm32f407.c
1 /*! \file stm32f407.h
2   \author Travis Goodspeed
3   \brief STM32F407 port definitions.
4 */
5
6 #include "platform.h"
7
8
9 //! Initialize the STM32F4xx ports and USB.
10 void stm32f4xx_init(){
11   
12 }
13
14 //! Receive a byte.
15 unsigned char serial0_rx(){
16 }
17
18 //! Receive a byte.
19 unsigned char serial1_rx(){
20 }
21
22 //! Transmit a byte.
23 void serial0_tx(unsigned char x){
24 }
25 //! Transmit a byte.
26 void serial_tx_old(unsigned char x){
27 }
28
29 //! Transmit a byte on the second UART.
30 void serial1_tx(unsigned char x){
31
32 }
33
34 //! Set the baud rate.
35 void setbaud0(unsigned char rate){
36   //Ignore this, as we'll be in USB.
37 }
38
39 //! Set the baud rate of the second uart.
40 void setbaud1(unsigned char rate){
41
42 }
43
44