Skip to content
Snippets Groups Projects
Commit 890b8275 authored by Lucas Russo's avatar Lucas Russo
Browse files

libclient/bpm_client_codes.*: add include to general SMIO codes

Now, we can simply reference the general SMIO file
that includes all other SMIO codes.

Also, removed unused code structure
parent 1a75ee9e
Branches
Tags
No related merge requests found
/*
* Copyright (C) 2014 LNLS (www.lnls.br)
* Author: Lucas Russo <lucas.russo@lnls.br>
*
* Released according to the GNU LGPL, version 3 or any later version.
*/
#include "bpm_client_codes.h"
const BPM_CLIENT_OPCODE_TYPE client_opcodes [BPM_CLIENT_OPCODE_END] = {
[0] = BPM_CLIENT_OPCODE_LEDS,
};
const BPM_CLIENT_RECODE_TYPE client_recodes [BPM_CLIENT_RECODE_END] = {
[0] = BPM_CLIENT_RECODE_OK,
[1] = BPM_CLIENT_RECODE_ERR
};
......@@ -8,29 +8,6 @@
#ifndef _BPM_CLIENT_CODES_H_
#define _BPM_CLIENT_CODES_H_
#include <inttypes.h>
/* Messaging OPCODES */
#define BPM_CLIENT_OPCODE_LEDS_SIZE (sizeof (uint32_t))
#define BPM_CLIENT_OPCODE_TYPE uint32_t
#define BPM_CLIENT_OPCODE_LEDS 0
#define BPM_CLIENT_OPCODE_END 1
typedef BPM_CLIENT_OPCODE_TYPE bpm_client_opcode_t;
extern const bpm_client_opcode_t bpm_client_opcodes [BPM_CLIENT_OPCODE_END];
/* Messaging Reply CODES */
#define BPM_CLIENT_RECODE_SIZE (sizeof(uint32_t))
#define BPM_CLIENT_RECODE_TYPE uint32_t
#define BPM_CLIENT_RECODE_OK 0
#define BPM_CLIENT_RECODE_ERR 1
#define BPM_CLIENT_RECODE_END 2
typedef BPM_CLIENT_RECODE_TYPE bpm_client_recode_t;
extern const bpm_client_recode_t bpm_client_recodes [BPM_CLIENT_RECODE_END];
#include "sm_io_codes.h"
#endif
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment