rdp1-bypass/target.c
Daniele Lacamera c6350f2f65 Initial commit
2018-07-26 08:08:29 +02:00

33 lines
574 B
C

/*
* 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 ;
}