-
Notifications
You must be signed in to change notification settings - Fork 814
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: armink <[email protected]>
- Loading branch information
Showing
29 changed files
with
4,666 additions
and
3,103 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
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
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
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,26 @@ | ||
/* | ||
* File : usart.h | ||
* This file is part of RT-Thread RTOS | ||
* COPYRIGHT (C) 2009, RT-Thread Development Team | ||
* | ||
* The license and distribution terms for this file may be | ||
* found in the file LICENSE in this distribution or at | ||
* http:https://www.rt-thread.org/license/LICENSE | ||
* | ||
* Change Logs: | ||
* Date Author Notes | ||
* 2009-01-05 Bernard the first version | ||
*/ | ||
|
||
#ifndef __USART_H__ | ||
#define __USART_H__ | ||
|
||
#include <rthw.h> | ||
#include <rtthread.h> | ||
|
||
#define UART_ENABLE_IRQ(n) NVIC_EnableIRQ((n)) | ||
#define UART_DISABLE_IRQ(n) NVIC_DisableIRQ((n)) | ||
|
||
void rt_hw_usart_init(void); | ||
|
||
#endif |
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
Oops, something went wrong.