-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUARTHandler.h
More file actions
62 lines (37 loc) · 2.81 KB
/
Copy pathUARTHandler.h
File metadata and controls
62 lines (37 loc) · 2.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
## Custom License Agreement
This project includes software, hardware, and system integration and is licensed under the following terms:
### License Overview
- **Non-Commercial Use**: You are free to use, modify, and distribute the software, hardware designs, and integration components for non-commercial purposes, provided that you comply with the conditions outlined below.
- **Commercial Use**: If you wish to use, modify, or distribute the software, hardware designs, or integration components for commercial purposes, including but not limited to incorporating them into products or services for sale, you must obtain explicit permission from the author.
### Terms for Non-Commercial Use
1. **Attribution**: You must provide appropriate credit, including a link to the original repository and a notice indicating any changes made.
2. **Non-Commercial Use**: The use, modification, and distribution of this project are permitted only for non-commercial purposes. Commercial use requires obtaining a separate license.
### Terms for Commercial Use
1. **Contact Requirement**: To use the software, hardware designs, or integration components for commercial purposes, you must contact the author at [arshiakeshvariasl@gmail.com] to obtain permission and discuss licensing terms.
2. **Additional Licensing**: Commercial use will be subject to additional terms agreed upon between you and the author. This may include financial arrangements or other conditions.
### Integration with Other Projects
1. **Commercial Integration**: If you wish to integrate the software, hardware designs, or other components with other commercial projects or products, you must contact the author for permission and to discuss any additional licensing terms.
2. **Non-Commercial Integration**: Integration with non-commercial projects is permitted under the same terms as outlined for non-commercial use.
### Disclaimer
This project is provided "as-is" without warranty of any kind. The author is not liable for any damages arising from the use of this project, whether commercial or non-commercial. By using this project, you acknowledge that you assume all risks associated with its use.
### How to Contact
For commercial use inquiries or any other questions regarding this license, please contact the author at [arshiakeshvariasl@gmail.com].
By using this project, you agree to abide by the terms set forth in this license.
*/
/*
* UARTHandler.h
*
* Created on: May 13, 2024
* Author: Arshia Keshvari
*/
#ifndef UARTHANDLER_H_
#define UARTHANDLER_H_
#include "main.h"
#include "RingBuffer.h"
extern UART_HandleTypeDef huart2;
void UARTInit(void);
void UARTRXHandler(UART_HandleTypeDef *h);
uint8_t UARTGetChar(uint8_t uart, char *c);
void UARTFlush(uint8_t uart);
#endif /* UARTHANDLER_H_ */