Remove SDUClass and SDU instance
This commit is contained in:
parent
a15d190ada
commit
1616917a51
3 changed files with 1 additions and 22 deletions
|
|
@ -12,8 +12,6 @@ SDU KEYWORD1
|
|||
# Methods and Functions (KEYWORD2)
|
||||
#######################################
|
||||
|
||||
reset KEYWORD2
|
||||
|
||||
#######################################
|
||||
# Constants (LITERAL1)
|
||||
#######################################
|
||||
|
|
|
|||
|
|
@ -32,15 +32,3 @@ unsigned char sduBoot[0x4000] = {
|
|||
#error "Unsupported board!"
|
||||
#endif
|
||||
};
|
||||
|
||||
SDUClass::SDUClass() {
|
||||
}
|
||||
|
||||
void SDUClass::reset() {
|
||||
// Reset the device
|
||||
NVIC_SystemReset() ;
|
||||
|
||||
while (true);
|
||||
}
|
||||
|
||||
SDUClass SDU;
|
||||
|
|
|
|||
|
|
@ -19,13 +19,6 @@
|
|||
#ifndef _SDU_H_INCLUDED
|
||||
#define _SDU_H_INCLUDED
|
||||
|
||||
class SDUClass {
|
||||
public:
|
||||
SDUClass();
|
||||
|
||||
void reset();
|
||||
};
|
||||
|
||||
extern SDUClass SDU;
|
||||
// nothing for now
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue