Inlined STM8S SPL (STM8S103) for use with SDCC
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
stm8s_inline_spl/User/main.c

17 satır
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);
}
}