본문 바로가기
반응형

코스웨어/14년 스마트컨트롤러287

2014 Smart Controller 2014. 12. 1.
확실하지 않지만 The C++ Standard Library, 2nd Edition.pdf 2014. 11. 12.
20141112 업무일지 출석번호 10번 김화린 C++641 page reinterpret_cast:상관없는 자료형으로 형 변환int main() { SimpleCar* car = new Cae; BestFriend * fren = reinterpret_cast(car); } 객체 타입을 완전히 바꾸는 것을 reinterpret_cast 라고한다. 642_ReinterpretCasting.cpp#include using namespace std; int main() { int num = 0x010203; char * ptr = reinterpret_cast(&num); for(int i =0; i 2014. 11. 12.
2014.11.11 출석번호 8번 김진철 일일보고서 ARM(STM32F103ZE) 소스코드와 실행순서 먼저 보겠다 main.c #define RCC_APB2ENR (*(volatile unsigned int *)0x40021018) // power supply? #define USART_SR (*(volatile unsigned int *)0x40013800) #define USART_DR (*(volatile unsigned int *)0x40013804) #define USART1_BRR (*(volatile unsigned int *)0x40013808) #define USART1_CR1 (*(volatile unsigned int *)0x4001380C) #define USART1_CR2 (*(volatile unsigned int *)0x4001.. 2014. 11. 11.
assert 함수 설명 Jo assertassert는 디버깅을 위해서 사용하는 함수로, 정해진 조건을 위반하는지를 검사하기 위한 목적으로 사용한다. 예컨데 객체의 할당 여부, 분모가 0이 되는 것 같은 잘못된 값 입력등이 그것이다. #include #include using namespace std; int foo(int a, int b) { assert(b !=0 ); cout 2014. 11. 11.
2014.11.10 usart/assert분석 2014. 11. 11.
usart 소스 분석 bsp_init_irq_usart1 함수 void bsp_init_irq_usart1(void/*isr_function usart1_isr*/) { GPIO_InitTypeDef GPIO_InitStructure; // GPIO 관련 구조체 선언 USART_InitTypeDef USART_InitStructure; //usart 관련 구조체 선언 NVIC_InitTypeDef NVIC_InitStructure; //NVIC 관련 구조체 선언 init_usart1_buffer(); /* Enable the USART1 Interrupt */ //usart 인터럽트 설정 NVIC_InitStructure.NVIC_IRQChannel = USART1_IRQn; NVIC_InitStructure.NVIC_IRQ.. 2014. 11. 10.
20141110 일일보고 김재성 빼빼로 많이 드세요. USARTx(1번)을 설정해보자 인터럽트, GPIO는 건너뛰고 USART부터 Configuration해보자. USART_Init에 들어가보면 USART1의 기본 베이스 레지스터는 0x4001 3800 확인 할 수 있다. 인터럽터랑 GPIO는 각자하는거지. 2014. 11. 10.
2014.11.10 USART / ASSERT() 2014. 11. 10.
728x90
반응형