-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4b5828a
commit ab5059e
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
@module: UART | ||
@author: Abdullah Bagyapan | ||
@date: 18/04/2024 | ||
*/ | ||
|
||
/*================================== Libraries ==================================*/ | ||
|
||
#include "uart.h" | ||
|
||
#include "pico/stdlib.h" | ||
|
||
|
||
/*================================== Functions ==================================*/ | ||
|
||
|
||
void UART_Init(void) { | ||
|
||
stdio_uart_init_full(UART_INSTANCE, UART_BAUDRATE, UART_TX_PIN, UART_RX_PIN); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
@module: UART | ||
@author: Abdullah Bagyapan | ||
@date: 18/04/2024 | ||
*/ | ||
|
||
/*================================== Libraries ==================================*/ | ||
|
||
#include "pico/stdlib.h" | ||
|
||
|
||
/*================================== Defined Variables ==================================*/ | ||
|
||
#define UART_INSTANCE uart0 | ||
#define UART_BAUDRATE 115200 | ||
|
||
#define UART_TX_PIN 0 | ||
#define UART_RX_PIN 1 | ||
|
||
|
||
/*================================== Functions ==================================*/ | ||
|
||
|
||
/* | ||
@brief: Initialize UART module | ||
@author Abdullah Bagyapan | ||
@date 18/04/2024 | ||
@param None | ||
@return None | ||
*/ | ||
void UART_Init(void); |