Commit 3548d7cd authored by Grzegorz Daniluk's avatar Grzegorz Daniluk Committed by Alessandro Rubini

spec-startup: update to use syscon for gpio handling

parent d4d320e5
......@@ -4,9 +4,10 @@
#include <pptp/pptp.h>
#include <pptp/diag.h>
#include "spec.h"
#include "include/gpio.h"
#include "include/syscon.h"
static struct pp_instance ppi_static;
int pp_diag_verbosity = 0;
void pptp_main(void)
{
......@@ -17,9 +18,9 @@ void pptp_main(void)
pp_puts("Spec: starting. Compiled on " __DATE__ "\n");
/* leds are off and button is input */
gpio_dir(GPIO_PIN_BTN1, 0);
gpio_dir(GPIO_PIN_LED_LINK, 1);
gpio_dir(GPIO_PIN_LED_STATUS, 1);
//gpio_dir(GPIO_PIN_BTN1, 0);
//gpio_dir(GPIO_PIN_LED_LINK, 1);
//gpio_dir(GPIO_PIN_LED_STATUS, 1);
gpio_out(GPIO_PIN_LED_LINK, 0);
gpio_out(GPIO_PIN_LED_STATUS, 0);
......
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