1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-14 03:30:02 +00:00
trezor-firmware/micropython/loader/main.c

33 lines
446 B
C
Raw Normal View History

2017-03-20 14:41:21 +00:00
#include STM32_HAL_H
#include "common.h"
2017-03-20 14:41:21 +00:00
#include "display.h"
void mp_hal_stdout_tx_str(const char *str) {
}
void periph_init(void)
{
HAL_Init();
SystemClock_Config();
__GPIOA_CLK_ENABLE();
__GPIOB_CLK_ENABLE();
__GPIOC_CLK_ENABLE();
__GPIOD_CLK_ENABLE();
display_init();
display_clear();
display_backlight(255);
}
int main(void)
{
periph_init();
__fatal_error("end reached");
return 0;
}