Inlined STM8S SPL (STM8S103) for use with SDCC
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 

17 行
298 B

#include "stm8s.h"
#include <stdio.h>
#include "bootstrap.h"
void main(void)
{
SimpleInit();
// clear screen, hide cursor
printf("\033c\033[?25lClock freq = \033[32m%lu Hz\033[0m\r\n", CLK_GetClockFreq());
while (1) {
LED_Toggle();
printf("Time = %lu ms\r", time_ms);
Delay(500);
}
}