Move bootloader_context_t and g_bootloaderContext from bl_context.h to bootloader and delete bl_context.h
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
#include "bootloader/bl_context.h"
|
||||
#include "bootloader/bootloader.h"
|
||||
#include "crc16.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user