Your ROOT_URL in app.ini is https://git.ondrovo.com/ but you are visiting http://159.69.29.240:49153/electro/STM32L100_c_boilerplate/src/commit/b80f0c504ff099673fe1aa27af5167290d096ee5/main.c You should set ROOT_URL correctly, otherwise the web may not work correctly.
Basic vanilla C boilerplate for STM32L100xC (Discovery L100C). Uses GCC. This was some class project without much practical use
 
 
 
 
 
STM32L100_c_boilerplate/main.c

56 lines
839 B

#include <common.h>
#include <stdio.h>
#include "utils/usart.h"
#include "utils/timebase.h"
#include "utils/debounce.h"
#include "utils/str_utils.h"
#include "init.h"
#include "blink.h"
/** IRQ */
void USART2_IRQHandler(void)
{
// RXIE enables also ORE - must handle ORE.
if (USART2_SR & USART_SR_ORE) {
USART2_SR &= ~USART_SR_ORE;
}
if (USART2_SR & USART_SR_RXNE) {
blue_blink();
// handle incoming char.
char c = usart_rx_char(USART2);
// echo
usart_tx_char(USART2, c);
USART2_SR ^= USART_SR_RXNE;
}
}
/** Init peripherals; Called by startup script, before main() */
void SystemInit(void)
{
init_clock();
init_systick();
init_gpios();
init_usart();
init_adc();
init_dac();
init_pwm1();
}
int main(void)
{
usart_tx_string(USART2, "Hello.\n");
while (1) {
delay_ms(500);
green_toggle();
}
}