1Hz begin

This commit is contained in:
dekunukem
2017-05-31 12:56:55 +01:00
parent e419920cee
commit 1adddf5248
13 changed files with 499 additions and 480 deletions

View File

File diff suppressed because one or more lines are too long

View File

Binary file not shown.

View File

@@ -27,9 +27,9 @@ Project File Date: 05/31/2017
<h2>Output:</h2>
*** Using Compiler 'V5.06 update 1 (build 61)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'clock_test'
compiling my_tasks.c...
compiling gps_config.c...
linking...
Program Size: Code=25912 RO-data=744 RW-data=472 ZI-data=9984
Program Size: Code=25932 RO-data=744 RW-data=472 ZI-data=9984
"clock_test\clock_test.axf" - 0 Error(s), 0 Warning(s).
<h2>Software Packages used:</h2>
@@ -48,7 +48,7 @@ Package Vendor: ARM
<h2>Collection of Component Files used:</h2>
* Component: ARM::CMSIS:CORE:4.3.0
Build Time Elapsed: 00:00:04
Build Time Elapsed: 00:00:03
</pre>
</body>
</html>

View File

@@ -3,7 +3,7 @@
<title>Static Call Graph - [clock_test\clock_test.axf]</title></head>
<body><HR>
<H1>Static Call Graph for image clock_test\clock_test.axf</H1><HR>
<BR><P>#&#060CALLGRAPH&#062# ARM Linker, 5060061: Last Updated: Wed May 31 11:30:25 2017
<BR><P>#&#060CALLGRAPH&#062# ARM Linker, 5060061: Last Updated: Wed May 31 12:53:55 2017
<BR><P>
<H3>Maximum Stack Usage = 312 bytes + Unknown(Cycles, Untraceable Function Pointers)</H3><H3>
Call chain for Maximum Stack Depth:</H3>
@@ -575,6 +575,7 @@ Global Symbols
</UL>
<BR>[Called By]<UL><LI><a href="#[122]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;setup_task
<LI><a href="#[114]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;gps_say
<LI><a href="#[113]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;gps_init
<LI><a href="#[11f]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;linear_buf_init
</UL>
@@ -1780,10 +1781,11 @@ Global Symbols
<BR>[Called By]<UL><LI><a href="#[43]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;animation_task_start
</UL>
<P><STRONG><a name="[113]"></a>gps_init</STRONG> (Thumb, 92 bytes, Stack size 8 bytes, gps_config.o(i.gps_init))
<P><STRONG><a name="[113]"></a>gps_init</STRONG> (Thumb, 98 bytes, Stack size 8 bytes, gps_config.o(i.gps_init))
<BR><BR>[Stack]<UL><LI>Max Depth = 104<LI>Call Chain = gps_init &rArr; gps_say &rArr; HAL_UART_Transmit &rArr; UART_WaitOnFlagUntilTimeout
</UL>
<BR>[Calls]<UL><LI><a href="#[114]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;gps_say
<BR>[Calls]<UL><LI><a href="#[73]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_Delay
<LI><a href="#[114]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;gps_say
</UL>
<BR>[Called By]<UL><LI><a href="#[122]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;setup_task
</UL>
@@ -1797,7 +1799,7 @@ Global Symbols
<BR>[Called By]<UL><LI><a href="#[113]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;gps_init
</UL>
<P><STRONG><a name="[45]"></a>gps_temp_parse_task_start</STRONG> (Thumb, 134 bytes, Stack size 24 bytes, my_tasks.o(i.gps_temp_parse_task_start))
<P><STRONG><a name="[45]"></a>gps_temp_parse_task_start</STRONG> (Thumb, 142 bytes, Stack size 24 bytes, my_tasks.o(i.gps_temp_parse_task_start))
<BR><BR>[Stack]<UL><LI>Max Depth = 312<LI>Call Chain = gps_temp_parse_task_start &rArr; parse_gps &rArr; minmea_parse_gsv &rArr; minmea_scan &rArr; strtol &rArr; _strtoul
</UL>
<BR>[Calls]<UL><LI><a href="#[d7]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;osDelay

View File

File diff suppressed because it is too large Load Diff

View File

@@ -495,7 +495,7 @@ I (../Inc/usbd_conf.h)(0x5926E960)
-I C:\Keil_v5\ARM\PACK\ARM\CMSIS\4.5.0\CMSIS\Include
-I C:\Keil_v5\ARM\PACK\Keil\STM32F0xx_DFP\1.5.0\Device\Include
-D__UVISION_VERSION="517" -D_RTE_ -DSTM32F072xB -DUSE_HAL_DRIVER -DSTM32F072xB
-o clock_test\helpers.o --omf_browse clock_test\helpers.crf --depend clock_test\helpers.d)
@@ -810,7 +810,7 @@ I (../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_uart_ex.h)(0x58411C82)
-I C:\Users\Allen\Desktop\nixx\firmware\clock\MDK-ARM\RTE
-I C:\Keil_v5\ARM\PACK\ARM\CMSIS\4.5.0\CMSIS\Include
-I C:\Keil_v5\ARM\PACK\ARM\CMSIS\4.5.0\CMSIS\Include
-I C:\Keil_v5\ARM\PACK\Keil\STM32F0xx_DFP\1.5.0\Device\Include

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

@@ -15,6 +15,7 @@ const uint8_t disable_sbas[] = {0xB5, 0x62, 0x06, 0x16, 0x08, 0x00, 0x00, 0x03,
const uint8_t pos_mode_stationary[] = {0xB5, 0x62, 0x06, 0x24, 0x24, 0x00, 0xFF, 0xFF, 0x02, 0x03, 0x00, 0x00, 0x00, 0x00, 0x10, 0x27, 0x00, 0x00, 0x05, 0x00, 0xFA, 0x00, 0xFA, 0x00, 0x64, 0x00, 0x2C, 0x01, 0x00, 0x3C, 0x00, 0x00, 0x00, 0x00, 0xC8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0xA0};
const uint8_t pwr_full_power[] = {0xB5, 0x62, 0x06, 0x86, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x94, 0x5A};
const uint8_t tp_50hz[] = {0xB5, 0x62, 0x06, 0x31, 0x20, 0x00, 0x00, 0x01, 0x00, 0x00, 0x32, 0x00, 0x00, 0x00, 0x32, 0x00, 0x00, 0x00, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x6F, 0x00, 0x00, 0x00, 0x5D, 0xB6};
const uint8_t tp_1hz[] = {0xB5, 0x62, 0x06, 0x31, 0x20, 0x00, 0x00, 0x01, 0x00, 0x00, 0x32, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x6F, 0x00, 0x00, 0x00, 0xFB, 0x4A};
void gps_say(const uint8_t* buf, int32_t len)
{
@@ -33,6 +34,7 @@ void gps_reset(void)
void gps_init(void)
{
// gps_reset();
HAL_Delay(200);
gps_say(disable_gll, sizeof(disable_gll));
gps_say(disable_gsa, sizeof(disable_gsa));
gps_say(disable_gsv, sizeof(disable_gsv));
@@ -42,6 +44,5 @@ void gps_init(void)
gps_say(disable_sbas, sizeof(disable_sbas));
gps_say(pos_mode_stationary, sizeof(pos_mode_stationary));
gps_say(pwr_full_power, sizeof(pwr_full_power));
gps_say(tp_50hz, sizeof(tp_50hz));
gps_say(tp_1hz, sizeof(tp_1hz));
}

View File

@@ -154,6 +154,7 @@ void gps_temp_parse_task_start(void const * argument)
{
parse_gps((char*)gps_lb.buf, &gps_rmc, &gps_gga, &gps_gsa, &gps_gll, &gps_gst, &gps_gsv);
minmea_gettime(&unix_timestamp_temp, &microsec_temp, &(gps_rmc.date), &(gps_rmc.time));
printf("%s\n", gps_lb.buf);
printf("%ld\n", unix_timestamp_temp);
linear_buf_reset(&gps_lb);
}

View File

@@ -13,6 +13,10 @@ full power:
50Hz pulse:
{0xB5, 0x62, 0x06, 0x31, 0x20, 0x00, 0x00, 0x01, 0x00, 0x00, 0x32, 0x00, 0x00, 0x00, 0x32, 0x00, 0x00, 0x00, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x6F, 0x00, 0x00, 0x00, 0x5D, 0xB6}
1Hz pulse:
{0xB5, 0x62, 0x06, 0x31, 0x20, 0x00, 0x00, 0x01, 0x00, 0x00, 0x32, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x6F, 0x00, 0x00, 0x00, 0xFB, 0x4A}
printf("%s\n", gps_lb.buf);
spi_buf[0] = SPI_CMD_UPDATE | 0x0;