250x250
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- npm moment
- evernote
- __attribute__
- 기름보일러
- rasppi3
- EditText
- anydo
- node.js
- 린나이온도조절기
- 난방비절약
- REACT
- Node
- 나비엔
- todoist
- ReactNative
- xcode11
- Raspberry Pi
- nodejs
- 온도센서
- 가스비절약
- 네모안
- 온도조절기
- 경동
- 가스요금폭탄
- 에버노트
- debounce
- 라온익스
- react-native
- Swipes
- IOT
Archives
- Today
- Total
어허
IAR 에서 printf 사용하기. stm32, printf, putchar 본문
728x90
putchar 함수만 디파인 다시 해주면 된다.
함수 안의 내용은 물론 넣어주어야 하고,
IAR Embedded Workbench, stm32f051 기준
int putchar(int ch)
{
while (USART_GetFlagStatus(USART1, USART_FLAG_TXE) == RESET);
USART_SendData(USART1, ch);
return ch;
}
int main(void)
{
printf("Test printf\n");
while(1);
}
끝.
728x90
'개발' 카테고리의 다른 글
big-endian and little-endian (0) | 2011.11.22 |
---|
Comments