Skip to content

Instantly share code, notes, and snippets.

View lorsi96's full-sized avatar
🦉

lorsi96

🦉
View GitHub Profile
@lorsi96
lorsi96 / sopg_2.c
Last active August 11, 2021 23:31
[Sistemas Operativos de Propósito General] TP II
/**
* @file main.c
* @author Lucas Orsi (lorsi@itba.edu.ar)
* @version 0.1
* @date 2021-08-07
*
* @copyright Copyright (c) 2021
*
*/
@lorsi96
lorsi96 / satlib.h
Last active June 15, 2021 07:37
C Saturating Signed and Unsigned Functions
/**
* Copyright 2021 Lucas Orsi (lorsi)
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
@lorsi96
lorsi96 / x_macros_example.c
Last active May 9, 2021 01:00
X Macros Example
#include <stdio.h>
// void/void function wrapper to make code readable.
typedef void (*runnable_t)();
// Animal functions definitions.
void bark() {
printf("Guau!\n\r");
}
@lorsi96
lorsi96 / seos_pont_uart_isr.c
Last active May 3, 2021 21:26
SEOS PONT Example with UART ISR
/*=============================================================================
* Copyright (c) 2021, Lucas Orsi <lorsi@itba.edu.ar>
* All rights reserved.
* License: MIT
* Date: 2021/05/03
* Version: 1.0
*===========================================================================*/
#include "sapi.h"
#include "seos_pont_2014_isr.h"
@lorsi96
lorsi96 / Debounce.c
Last active May 3, 2021 21:01
Debouncing FSM using a FSMTable
/*=============================================================================
* Copyright (c) 2021, Lucas Orsi <lorsi@itba.edu.ar>
* All rights reserved.
* License: mit (see LICENSE.txt)
* Date: 2021/04/01
* Version: 1.0
*===========================================================================*/
/*=====[Debounce .h]=================================*/
#ifndef __DEBOUNCE_H__