Skip to content

Instantly share code, notes, and snippets.

View ossicode's full-sized avatar

OSSI ossicode

View GitHub Profile
@ossicode
ossicode / aclkuart.c
Created January 5, 2013 09:58
Slave Rx and Tx MSP430F2132: 자체적으로 64바이트 버퍼가 있고 총 8개 내부주소로 (0x00~0x07) 8바이트식 내부주소로 쓰거나 읽기 접근 가능 code
/*
* 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';
@ossicode
ossicode / debug.h
Created January 7, 2013 13:33
MSP430F1611 USART I2C Master / Slave without Timeout working verstion
/* --COPYRIGHT--,BSD
* Copyright (c) 2012, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
@ossicode
ossicode / aclkuart.c
Created January 7, 2013 13:34
MSP430F2132 USCI I2C Master /Slave without Timeout working verstion
/*
* 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';
@ossicode
ossicode / main.c
Created January 7, 2013 14:05
전체 프로그램 개요 아이디어, 어떻게 task를 스케쥴링 할것인가?
#include "ossiobc.h"
#include "etc.h"
uint8_t global;
main()
{
clock_configure();
watchdog_configure();
@ossicode
ossicode / debug.h
Created January 8, 2013 01:38
MSP430F1611 system file with clock_setup()
/* --COPYRIGHT--,BSD
* Copyright (c) 2012, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
@ossicode
ossicode / debug.h
Created January 8, 2013 13:39
MSP430F1611 USART I2C Master / Slave / Master with timeout function working verstion
/* --COPYRIGHT--,BSD
* Copyright (c) 2012, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
@ossicode
ossicode / aclkuart.c
Created January 8, 2013 13:40
MSP430F2132 USCI I2C / Master Slave / Slave working version
/*
* 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';
@ossicode
ossicode / debug.h
Created January 11, 2013 01:16
MSP430F1611 USART I2C Master / Slave timeout with bust check interrupt version. not perfect yet. I2CBUSY - > I2CBB
/* --COPYRIGHT--,BSD
* Copyright (c) 2012, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
@ossicode
ossicode / i2c.c
Created January 11, 2013 03:08
MSP430F1611 USART I2C I2CBB check passes as generating START condition takes long time while main executed
/*
* i2c.c
*
* Created on: 2013. 1. 6.
* Author: OSSI
*/
#include "i2c.h"
#define I2C_MASTER_RX_BUFFER_SIZE 16
#define I2C_MASTER_TX_BUFFER_SIZE 16
@ossicode
ossicode / debug.h
Created January 11, 2013 13:51
MSP430F1611 USART I2C Master Using Polling with timeout / Working / LPM0
/* --COPYRIGHT--,BSD
* Copyright (c) 2012, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.