Move bootloader_context_t and g_bootloaderContext from bl_context.h to bootloader and delete bl_context.h

This commit is contained in:
László Monda
2017-04-13 01:01:26 +02:00
parent d8e465c406
commit c7365eb6b0
3 changed files with 8 additions and 13 deletions

View File

@@ -1,12 +0,0 @@
#ifndef __CONTEXT_H__
#define __CONTEXT_H__
#include "command.h"
typedef struct _bootloaderContext {
const peripheral_descriptor_t *activePeripheral;
} bootloader_context_t;
extern bootloader_context_t g_bootloaderContext;
#endif

View File

@@ -1,6 +1,8 @@
#ifndef __BOOTLOADER_H__
#define __BOOTLOADER_H__
#include "command.h"
enum _bootloader_status {
kStatus_UnknownCommand = MAKE_STATUS(kStatusGroup_Bootloader, 0),
kStatus_SecurityViolation = MAKE_STATUS(kStatusGroup_Bootloader, 1),
@@ -10,4 +12,10 @@ enum _bootloader_status {
kStatus_NoResponseExpected = MAKE_STATUS(kStatusGroup_Bootloader, 5),
};
typedef struct _bootloaderContext {
const peripheral_descriptor_t *activePeripheral;
} bootloader_context_t;
extern bootloader_context_t g_bootloaderContext;
#endif

View File

@@ -1,4 +1,3 @@
#include "bootloader/bl_context.h"
#include "bootloader/bootloader.h"
#include "crc16.h"