Files
Jibo-Platform-Tools-OLD/depricated payloads/source/jibo_blink.c
Kevin a83ea3324f 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
2026-03-03 22:16:28 +02:00

19 lines
632 B
C

#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
}
}