Use GPIO2 for led_debug.S

This commit is contained in:
Angus Gratton 2015-09-14 17:19:09 +10:00
parent 45d4e0da2d
commit 0432ae3745
3 changed files with 11 additions and 4 deletions

View file

@ -121,6 +121,10 @@ void test_string(const char *string, char *label, bool evict_cache)
void user_init(void)
{
sdk_uart_div_modify(0, UART_CLK_FREQ / 115200);
gpio_enable(2, GPIO_OUTPUT); /* used for LED debug */
gpio_write(2, 1); /* active low */
printf("\r\n\r\nSDK version:%s\r\n", sdk_system_get_sdk_version());
test_string(dramtest, "DRAM", 0);
test_string(iramtest, "IRAM", 0);