peanut_gb.h
void gb_init_serial(struct gb_s *gb,
		    void (*gb_serial_tx)(struct gb_s*, const uint8_t),
		    enum gb_serial_rx_ret_e (*gb_serial_rx)(struct gb_s*,
			    uint8_t*))
{
	gb->gb_serial_tx = gb_serial_tx;
	gb->gb_serial_rx = gb_serial_rx;
}
/**
 * Set the function used to handle serial transfer in the front-end. This is
 * optional.
 * gb_serial_transfer takes a byte to transmit and returns the received byte. If
 * no cable is connected to the console, return 0xFF.
 */
Set the function used to handle serial transfer in the front-end. This is
optional.
gb_serial_transfer takes a byte to transmit and returns the received byte. If
no cable is connected to the console, return 0xFF.
Set the function used to handle serial transfer in the front - end . This is optional . gb_serial_transfer takes a byte to transmit and returns the received byte . If no cable is connected to the console return 0xFF .
void gb_init_serial(struct gb_s *gb,
		    void (*gb_serial_tx)(struct gb_s*, const uint8_t),
		    enum gb_serial_rx_ret_e (*gb_serial_rx)(struct gb_s*,
			    uint8_t*))
{
	gb->gb_serial_tx = gb_serial_tx;
	gb->gb_serial_rx = gb_serial_rx;
}
void gb_init_serial ( struct gb_s * gb , void ( * gb_serial_tx ) ( struct gb_s * , const uint8_t ) , enum gb_serial_rx_ret_e ( * gb_serial_rx ) ( struct gb_s * , uint8_t * ) ) { gb -> gb_serial_tx = gb_serial_tx ; gb -> gb_serial_rx = gb_serial_rx ; }
Set the function used to handle serial transfer in the front-end.
Set the function used to handle serial transfer in the front - end .