| Matt Spinler | ea3d8a4 | 2018-08-07 13:29:34 -0500 | [diff] [blame] | 1 | #ifndef __GPIO_JSON_H__ |
| 2 | #define __GPIO_JSON_H__ | ||||
| 3 | |||||
| 4 | #include <cjson/cJSON.h> | ||||
| 5 | |||||
| 6 | /** | ||||
| 7 | * Loads the GPIO definitions from JSON into a cJSON structure. | ||||
| 8 | * | ||||
| 9 | * @return cjSON* - The structure with the GPIO info. Should be freed | ||||
| 10 | * with cJSON_Delete() when done. NULL is returned | ||||
| 11 | * if there was an error. | ||||
| 12 | */ | ||||
| 13 | cJSON* load_json(); | ||||
| 14 | |||||
| 15 | #endif | ||||