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