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