rdp1-bypass/target.c

34 lines
574 B
C
Raw Normal View History

2018-07-26 08:08:29 +02:00
/*
* This Source Code Form is subject to the terms of the MIT License.
* If a copy of the MIT License was not distributed with this file,
* you can obtain one at https://opensource.org/licenses/MIT
*/
#include "target.h"
#include "system.h"
void targetSysReset( void )
{
GPIOA_BSRR = (1 << (PIN_RESET + 16));
return ;
}
void targetSysUnReset( void )
{
GPIOA_BSRR = (1 << (PIN_RESET));
return ;
}
void targetSysOff( void )
{
GPIOA_BSRR = (1 << (PIN_POWER + 16));
return ;
}
void targetSysOn( void )
{
GPIOA_BSRR = (1 << (PIN_POWER));
return ;
}