PropWare
C++ objects and CMake build system for Parallax Propeller
Home
Download
Getting Started
Documentation
Reference
About
Related Links
Namespace List
Class List
File List
Examples
Build System
File List
File Members
simple
cogend.c
1
/*
2
* @file cogend.c
3
*
4
* @author Andy Lindsay
5
*
6
* @copyright
7
* Copyright (C) Parallax, Inc. 2014. All Rights MIT Licensed.
8
*
9
* @brief Source code for cog_end function.
10
*/
11
12
13
#include "simpletools.h"
14
15
void
cog_end(
int
*coginfo)
16
{
17
int
cog = *coginfo - 1;
18
if
(cog > -1)
19
{
20
if
(cog == cogid())
21
{
22
free(coginfo);
23
cogstop(cog);
24
}
25
else
26
{
27
cogstop(cog);
28
free(coginfo);
29
}
30
}
31
*coginfo = 0;
32
}
33
34
Generated on Sat Aug 27 2016 00:58:09 for PropWare by
1.8.12