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