用的GPS和GPRS例程,
GSM卡在gsm_init()函数中,用的是GPS的模板如果用GSM的模板,就会卡在 nmea_decode_test();
真的是懵逼了,毕设最后一下了,调不出来了
中断:
void SysTick_Handler(void)
{
TimingDelay_Decrement();
}
void GPS_DMA_IRQHANDLER(void)
{
GPS_ProcessDMAIRQ();
}
void DEBUG_USART_IRQHandler(void)
{
#if 0
bsp_DEBUG_USART_IRQHandler();
#else
uint8_t ch;
if(USART_GetITStatus(DEBUG_USART, USART_IT_RXNE) != RESET)
{
//ch = USART1->DR;
ch = USART_ReceiveData(DEBUG_USART);
printf( "%c", ch ); //将接受到的数据直接返回打印
}
#endif
}
void GSM_USART_IRQHandler(void)
{
bsp_GSM_USART_IRQHandler();
}
还有堆栈的代码:
Stack_Size EQU 0x000000400
AREA STACK, NOINIT, READWRITE, ALIGN=3
Stack_Mem SPACE Stack_Size
__initial_sp
; <h> Heap Configuration
; <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
; </h>
Heap_Size EQU 0x00001000
AREA HEAP, NOINIT, READWRITE, ALIGN=3
__heap_base
Heap_Mem SPACE Heap_Size
__heap_limit
PRESERVE8
THUMB |