Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * mainProject.c
- *
- * Created: 2016/12/13 δΈε 09:18:58
- * Author : Bryant
- */
- #include "Definitions.h"
- int main(void)
- {
- Initialization();
- while (1)
- {
- //wait for RXC flag
- if(rxcount >= 8)
- {
- rxcount = 0;
- if( (receiveSuccess = analyzePackage()) )
- {
- //Execute command
- exeCommand(R_Pack->Command , R_Pack->Data);
- enableUDRI0();
- }
- else
- {
- //Response
- //writeTpkg();
- enableUDRI0();
- }
- //clearGPIO(); //Be used if it only needs to open one port at a time
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment