Added macros for SD CS pin, fixed warnings