Inlined STM8S SPL (STM8S103) for use with SDCC
No puede seleccionar más de 25 temas
Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
|
#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);
|
|
}
|
|
}
|
|
|