Inlined STM8S SPL (STM8S103) for use with SDCC
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

17 lines
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);
}
}