728x90
반응형
#define RCC_APB2ENR ( *(( ( volatile unsigned int * )( 0x40021018 ) )) )
#define GPIO_CRH ( *(( ( volatile unsigned int * )( 0x40011004 ) )) )
#define GPIO_ODR ( *(( ( volatile unsigned int * )( 0x4001100C ) )) )
#define GPIO_BSRR ( *(( ( volatile unsigned int * )( 0x40011010 ) )) )
#define GPIO_BRR ( *(( ( volatile unsigned int * )( 0x40011014 ) )) )
volatile unsigned int iCnt;
RCC_APB2ENR = 0x01 << 4;
GPIO_CRH = 0x03 << 16;
GPIO_ODR = 0x01 << 12;
while( 1 )
{
GPIO_BRR = 0x01 << 12;
for( iCnt=0; iCnt<2000000; iCnt++ );
GPIO_BSRR = 0x01 << 12;
for( iCnt=0; iCnt<2000000; iCnt++ );
}
//while( 1 );
//return 0;
프로그램 넣을 때 Global Erase 체크해주어야 합니다...
어제 딱 여기까지 해놓고 아무리 노력해도 안되서 짜증나서 점심밥먹으러 갔는데...ㅎㅎ...되는거였네요
하하
하하하
하하하하하하
728x90
'코스웨어 > 13년 스마트컨트롤러' 카테고리의 다른 글
Cortex-ARM USART_BRR 값 구하는 과정 (0) | 2013.10.25 |
---|---|
비트맵 색 이래저래 바꾸어 출력하기 - 조유진 (0) | 2013.10.23 |
Cortex-M3 로 캐릭터 LCD 제어하기 (0) | 2013.10.23 |
소코반 - 손초롱 (1) | 2013.10.22 |
Cortex-M3 LED 켜기 (0) | 2013.10.22 |
WndProc (0) | 2013.10.21 |
2013.10.21_ARM Cortex-M3 _ 메뉴얼 (2) | 2013.10.21 |
Cortex-M3 예제소스 (0) | 2013.10.18 |