diff options
author | root <root@lamia.panaceas.james.local> | 2016-08-20 20:55:43 +0100 |
---|---|---|
committer | root <root@lamia.panaceas.james.local> | 2016-08-20 20:55:43 +0100 |
commit | e696ed2427fe036a0dcfe50f209e22a9f273d100 (patch) | |
tree | 837ac9421102a7b83a4d55b72e22fce5f6033214 /app/main.c | |
parent | b063a2da3024a2e3175e1ba9b0a87cb6c7470765 (diff) | |
download | candlestick-e696ed2427fe036a0dcfe50f209e22a9f273d100.tar.gz candlestick-e696ed2427fe036a0dcfe50f209e22a9f273d100.tar.bz2 candlestick-e696ed2427fe036a0dcfe50f209e22a9f273d100.zip |
working calls
Diffstat (limited to 'app/main.c')
-rw-r--r-- | app/main.c | 27 |
1 files changed, 25 insertions, 2 deletions
@@ -19,19 +19,42 @@ main (void) rcc_periph_clock_enable (RCC_GPIOB); rcc_periph_clock_enable (RCC_GPIOC); rcc_periph_clock_enable (RCC_AFIO); +rcc_periph_clock_enable(RCC_TIM1); + + nvic_set_priority (NVIC_USART1_IRQ, 0x40); + nvic_set_priority (NVIC_USART2_IRQ, 0x40); + nvic_set_priority (NVIC_SYSTICK_IRQ, 0xff); ticker_init (); led_init (); + usart_init(); + + gpio_init(); + buzzer_init(); + + modem_init(); + + #if 0 i2c_bb_init (); lcd_init (); #endif - usb_init (); - usb_run (); + //usb_init (); + + /*Reset the GSM module*/ + gpio_clear(GPIOA,GPIO1); + delay_ms(100); + gpio_set(GPIOA,GPIO1); + + + //usb_run (); + for (;;) { + serial_poll(); + } return 0; } |