Commit 25258f85 authored by Alan Wood's avatar Alan Wood

updated clcok comments

parent ff6a03d6
......@@ -15,7 +15,7 @@
******************************************************************************/
#include "mystorm.h"
/* use this to enable external clock, mbed + nucleo_l476rg doesn't use highspeed xtal
/* use this to enable external xtal (12Mhz), mbed + nucleo_l476rg doesn't use highspeed xtal
/* you also have to modify ~/.platformio/packages/framework-mbed/hal/targets/cmsis/TARGET_STML4/TARGET_NUCLEO_L476RG/system_stm32l4xx.c
/* line 135 #define USE_PLL_HSE_XTAL (1) // Use external xtal
/* Lines 430 - 434:
......@@ -34,13 +34,14 @@ extern uint8_t _binary_bitmap_bin_start;
extern uint8_t _binary_bitmap_bin_end;
int main() {
// optional clock reconfigure see notes above for external Xtal 12Mhz use
#ifdef EXTCLK
SystemCoreClockUpdate();
#endif
//Lets get the bit image size
uint32_t len = &_binary_bitmap_bin_end - &_binary_bitmap_bin_start;
//Initialise anfd program Ice40
ms.ice_prog(&_binary_bitmap_bin_start, len);
//Lets get the bit image size
uint32_t len = &_binary_bitmap_bin_end - &_binary_bitmap_bin_start;
//Initialise anfd program Ice40
ms.ice_prog(&_binary_bitmap_bin_start, len);
wait_ms(10);
//Lets light up some leds!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment