Files
RP2350_MIDI_Lighter/Firmware/UART0.h
Chris 128d42c586 - Fixed drawing of round objects (Circles, Rounded Rects) using a lookup table
- Added function to read out the display_buffer via USB-Serial
 - Added basic structure and files for later complete firmware (still in progress)
 - Added Doc folder with schematic in it
 - Added Python script and batch file to read out the display buffer and open the image in gimp
2025-09-07 08:55:39 +02:00

41 lines
1.1 KiB
C

/*
* UART0.h
*
* Created: Mon May 03 2021 19:57:01
* Author Chris
*/
#ifndef UART0_H_
#define UART0_H_
// ============================================================================================
// Includes
#include <stdint.h>
#include "pico/types.h"
// ============================================================================================
// Defines
#define UART0_TERMINATOR 0x0D
#define UART0_SEND_STRING( _str_ ) UART0_Send_Array( _str_ , sizeof( _str_ )-1)
#define UART0_SEND_TERMINATOR() UART0_Send_Byte(UART0_TERMINATOR)
// ============================================================================================
// Datatypes
// ============================================================================================
// Function Declarations
void UART0_Init(void);
uint UART0_Get_Actual_Baudrate(void);
void UART0_Send_Byte (uint8_t byte);
void UART0_Send_Array (uint8_t* array, uint length);
void UART0_Send_Int_Dec (uint val, uint8_t numbers);
void UART0_Send_Int_Hex (uint val, uint8_t numbers, uint8_t Send_0x);
uint UART0_Data_Available(void);
uint8_t UART0_Get_Byte (void);
#endif /* UART0_H_ */