Shofel payloader source & prebuild for jib with some old payloads i had made
these payloads may not work , i have no clue honestly i attached them , also there are 2 helper py scripts that might work with some of these payloads
This commit is contained in:
18
depricated payloads/source/jibo_blink.c
Normal file
18
depricated payloads/source/jibo_blink.c
Normal file
@@ -0,0 +1,18 @@
|
||||
#define GPIO_BASE 0x6000d000
|
||||
|
||||
void _start() {
|
||||
*(volatile unsigned int *)(0x60006010) |= (1 << 8);
|
||||
|
||||
*(volatile unsigned int *)(GPIO_BASE + 0x500 + 0x14) = 0xFF; // Port U OE
|
||||
*(volatile unsigned int *)(GPIO_BASE + 0x600 + 0x14) = 0xFF; // Port V OE
|
||||
*(volatile unsigned int *)(GPIO_BASE + 0x500 + 0x10) = 0xFF; // Port U CNF
|
||||
*(volatile unsigned int *)(GPIO_BASE + 0x600 + 0x10) = 0xFF; // Port V CNF
|
||||
|
||||
while (1) {
|
||||
*(volatile unsigned int *)(GPIO_BASE + 0x500 + 0x18) ^= 0xFF;
|
||||
*(volatile unsigned int *)(GPIO_BASE + 0x600 + 0x18) ^= 0xFF;
|
||||
|
||||
for (volatile int i = 0; i < 200000; i++)
|
||||
; // Visible delay
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user