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 |
Tags
- rasppi3
- 나비엔
- xcode11
- anydo
- react-native
- 가스비절약
- evernote
- IOT
- 온도센서
- 기름보일러
- npm moment
- 린나이온도조절기
- __attribute__
- REACT
- node.js
- ReactNative
- 가스요금폭탄
- 온도조절기
- 네모안
- todoist
- EditText
- 라온익스
- 경동
- 에버노트
- 난방비절약
- Raspberry Pi
- nodejs
- Node
- Swipes
- debounce
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