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
/* | |
* main.c | |
*/ | |
#include "ossibeacon.h" | |
#include "printf.h" | |
unsigned int RxByteCtr; | |
unsigned int RxWord; |
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
/* | |
* aclkuart.c | |
* | |
* Created on: 2012. 12. 19. | |
* Author: OSSI | |
*/ | |
#include "aclkuart.h" | |
static volatile uint8_t uart_rx_flag = 0; | |
static volatile uint8_t rx_byte = '\0'; |
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
/* | |
* aclkuart.c | |
* | |
* Created on: 2012. 12. 19. | |
* Author: OSSI | |
*/ | |
#include "aclkuart.h" | |
static volatile uint8_t uart_rx_flag = 0; | |
static volatile uint8_t rx_byte = '\0'; |
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
/* | |
* aclkuart.c | |
* | |
* Created on: 2012. 12. 19. | |
* Author: OSSI | |
*/ | |
#include "aclkuart.h" | |
static volatile uint8_t uart_rx_flag = 0; | |
static volatile uint8_t rx_byte = '\0'; |
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
/* | |
* aclkuart.c | |
* | |
* Created on: 2012. 12. 19. | |
* Author: OSSI | |
*/ | |
#include "aclkuart.h" | |
static volatile uint8_t uart_rx_flag = 0; | |
static volatile uint8_t rx_byte = '\0'; |
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
/* | |
* i2c.c | |
* | |
* Created on: 2012. 12. 30. | |
* Author: OSSI | |
*/ | |
// we implement I2C as below: | |
// | |
// 7 bit addressing mode |
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
/* | |
* aclkuart.c | |
* | |
* Created on: 2012. 12. 19. | |
* Author: OSSI | |
*/ | |
#include "aclkuart.h" | |
static volatile uint8_t uart_rx_flag = 0; | |
static volatile uint8_t rx_byte = '\0'; |
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
#include "msp430f1611.h" | |
#include "ossitypes.h" | |
/* | |
* main.c | |
*/ | |
uint8_t RXData = 0; | |
uint8_t TestData[64] = {0}; | |
volatile uint8_t cnt; | |
int main (void) | |
{ |
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
/* | |
* aclkuart.c | |
* | |
* Created on: 2012. 12. 19. | |
* Author: OSSI | |
*/ | |
#include "aclkuart.h" | |
static volatile uint8_t uart_rx_flag = 0; | |
static volatile uint8_t rx_byte = '\0'; |
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
#include "msp430f1611.h" | |
#include "ossitypes.h" | |
/* | |
* main.c | |
*/ | |
uint8_t RXData = 0; | |
uint8_t TxData[9] = {0}; | |
uint8_t RxData[8] = {0}; | |
volatile uint8_t cnt; | |
volatile uint8_t flag; |